From 4a6d23e973e280fa98dbd1e5a20820a96797fe0b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 19 Oct 2021 16:32:06 +0000 Subject: [PATCH] docs: recommend AnalyzeContent for future users PiperOrigin-RevId: 402401837 Source-Link: https://github.com/googleapis/googleapis/commit/16ff8131d5ee3aac50018069e91f80b60ee3caaa Source-Link: https://github.com/googleapis/googleapis-gen/commit/c9e6ac25d5e309170f1805bf8ea382a8b23dee65 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzllNmFjMjVkNWUzMDkxNzBmMTgwNWJmOGVhMzgyYThiMjNkZWU2NSJ9 --- .../dialogflow/v2/AnswerRecordsGrpc.java | 485 - .../cloud/dialogflow/v2/ContextsGrpc.java | 925 - .../v2/ConversationProfilesGrpc.java | 902 - .../cloud/dialogflow/v2/EnvironmentsGrpc.java | 991 - .../cloud/dialogflow/v2/FulfillmentsGrpc.java | 476 - .../dialogflow/v2/KnowledgeBasesGrpc.java | 842 - .../cloud/dialogflow/v2/ParticipantsGrpc.java | 1103 - .../dialogflow/v2/SessionEntityTypesGrpc.java | 932 - .../cloud/dialogflow/v2/SessionsGrpc.java | 496 - .../cloud/dialogflow/v2/VersionsGrpc.java | 825 - .../dialogflow/v2beta1/AnswerRecordsGrpc.java | 617 - .../dialogflow/v2beta1/ContextsGrpc.java | 928 - .../v2beta1/ConversationProfilesGrpc.java | 905 - .../dialogflow/v2beta1/ConversationsGrpc.java | 1052 - .../dialogflow/v2beta1/EnvironmentsGrpc.java | 1000 - .../dialogflow/v2beta1/FulfillmentsGrpc.java | 481 - .../v2beta1/KnowledgeBasesGrpc.java | 889 - .../dialogflow/v2beta1/ParticipantsGrpc.java | 1594 - .../v2beta1/SessionEntityTypesGrpc.java | 938 - .../dialogflow/v2beta1/SessionsGrpc.java | 499 - .../dialogflow/v2beta1/VersionsGrpc.java | 828 - .../cloud/dialogflow/v2/AgentsClient.java | 16 +- .../cloud/dialogflow/v2/AgentsSettings.java | 7 +- .../dialogflow/v2/AnswerRecordsClient.java | 20 +- .../dialogflow/v2/AnswerRecordsSettings.java | 7 +- .../cloud/dialogflow/v2/ContextsClient.java | 16 +- .../cloud/dialogflow/v2/ContextsSettings.java | 7 +- .../v2/ConversationProfilesClient.java | 36 +- .../v2/ConversationProfilesSettings.java | 13 +- .../dialogflow/v2/ConversationsClient.java | 30 +- .../dialogflow/v2/ConversationsSettings.java | 7 +- .../cloud/dialogflow/v2/DocumentsClient.java | 16 +- .../dialogflow/v2/DocumentsSettings.java | 7 +- .../dialogflow/v2/EntityTypesClient.java | 16 +- .../dialogflow/v2/EntityTypesSettings.java | 7 +- .../dialogflow/v2/EnvironmentsClient.java | 34 +- .../dialogflow/v2/EnvironmentsSettings.java | 7 +- .../dialogflow/v2/FulfillmentsClient.java | 6 +- .../dialogflow/v2/FulfillmentsSettings.java | 7 +- .../cloud/dialogflow/v2/IntentsClient.java | 16 +- .../cloud/dialogflow/v2/IntentsSettings.java | 7 +- .../dialogflow/v2/KnowledgeBasesClient.java | 24 +- .../dialogflow/v2/KnowledgeBasesSettings.java | 7 +- .../dialogflow/v2/ParticipantsClient.java | 16 +- .../dialogflow/v2/ParticipantsSettings.java | 7 +- .../v2/SessionEntityTypesClient.java | 24 +- .../v2/SessionEntityTypesSettings.java | 13 +- .../cloud/dialogflow/v2/SessionsClient.java | 36 +- .../cloud/dialogflow/v2/SessionsSettings.java | 7 +- .../cloud/dialogflow/v2/VersionsClient.java | 16 +- .../cloud/dialogflow/v2/VersionsSettings.java | 7 +- .../cloud/dialogflow/v2/gapic_metadata.json | 0 .../cloud/dialogflow/v2/package-info.java | 0 .../cloud/dialogflow/v2/stub/AgentsStub.java | 0 .../v2/stub/AgentsStubSettings.java | 6 +- .../dialogflow/v2/stub/AnswerRecordsStub.java | 0 .../v2/stub/AnswerRecordsStubSettings.java | 9 +- .../dialogflow/v2/stub/ContextsStub.java | 0 .../v2/stub/ContextsStubSettings.java | 6 +- .../v2/stub/ConversationProfilesStub.java | 0 .../ConversationProfilesStubSettings.java | 30 +- .../dialogflow/v2/stub/ConversationsStub.java | 0 .../v2/stub/ConversationsStubSettings.java | 9 +- .../dialogflow/v2/stub/DocumentsStub.java | 0 .../v2/stub/DocumentsStubSettings.java | 6 +- .../dialogflow/v2/stub/EntityTypesStub.java | 0 .../v2/stub/EntityTypesStubSettings.java | 6 +- .../dialogflow/v2/stub/EnvironmentsStub.java | 0 .../v2/stub/EnvironmentsStubSettings.java | 9 +- .../dialogflow/v2/stub/FulfillmentsStub.java | 0 .../v2/stub/FulfillmentsStubSettings.java | 6 +- .../v2/stub/GrpcAgentsCallableFactory.java | 0 .../dialogflow/v2/stub/GrpcAgentsStub.java | 1 + .../GrpcAnswerRecordsCallableFactory.java | 0 .../v2/stub/GrpcAnswerRecordsStub.java | 1 + .../v2/stub/GrpcContextsCallableFactory.java | 0 .../dialogflow/v2/stub/GrpcContextsStub.java | 1 + ...pcConversationProfilesCallableFactory.java | 0 .../v2/stub/GrpcConversationProfilesStub.java | 1 + .../GrpcConversationsCallableFactory.java | 0 .../v2/stub/GrpcConversationsStub.java | 1 + .../v2/stub/GrpcDocumentsCallableFactory.java | 0 .../dialogflow/v2/stub/GrpcDocumentsStub.java | 1 + .../stub/GrpcEntityTypesCallableFactory.java | 0 .../v2/stub/GrpcEntityTypesStub.java | 1 + .../stub/GrpcEnvironmentsCallableFactory.java | 0 .../v2/stub/GrpcEnvironmentsStub.java | 1 + .../stub/GrpcFulfillmentsCallableFactory.java | 0 .../v2/stub/GrpcFulfillmentsStub.java | 1 + .../v2/stub/GrpcIntentsCallableFactory.java | 0 .../dialogflow/v2/stub/GrpcIntentsStub.java | 1 + .../GrpcKnowledgeBasesCallableFactory.java | 0 .../v2/stub/GrpcKnowledgeBasesStub.java | 1 + .../stub/GrpcParticipantsCallableFactory.java | 0 .../v2/stub/GrpcParticipantsStub.java | 1 + ...GrpcSessionEntityTypesCallableFactory.java | 0 .../v2/stub/GrpcSessionEntityTypesStub.java | 1 + .../v2/stub/GrpcSessionsCallableFactory.java | 0 .../dialogflow/v2/stub/GrpcSessionsStub.java | 1 + .../v2/stub/GrpcVersionsCallableFactory.java | 0 .../dialogflow/v2/stub/GrpcVersionsStub.java | 1 + .../cloud/dialogflow/v2/stub/IntentsStub.java | 0 .../v2/stub/IntentsStubSettings.java | 6 +- .../v2/stub/KnowledgeBasesStub.java | 0 .../v2/stub/KnowledgeBasesStubSettings.java | 9 +- .../dialogflow/v2/stub/ParticipantsStub.java | 0 .../v2/stub/ParticipantsStubSettings.java | 6 +- .../v2/stub/SessionEntityTypesStub.java | 0 .../stub/SessionEntityTypesStubSettings.java | 27 +- .../dialogflow/v2/stub/SessionsStub.java | 0 .../v2/stub/SessionsStubSettings.java | 6 +- .../dialogflow/v2/stub/VersionsStub.java | 0 .../v2/stub/VersionsStubSettings.java | 6 +- .../cloud/dialogflow/v2/AgentsClientTest.java | 0 .../v2/AnswerRecordsClientTest.java | 0 .../dialogflow/v2/ContextsClientTest.java | 0 .../v2/ConversationProfilesClientTest.java | 0 .../v2/ConversationsClientTest.java | 0 .../dialogflow/v2/DocumentsClientTest.java | 0 .../dialogflow/v2/EntityTypesClientTest.java | 0 .../dialogflow/v2/EnvironmentsClientTest.java | 0 .../dialogflow/v2/FulfillmentsClientTest.java | 0 .../dialogflow/v2/IntentsClientTest.java | 0 .../v2/KnowledgeBasesClientTest.java | 0 .../cloud/dialogflow/v2/MockAgents.java | 0 .../cloud/dialogflow/v2/MockAgentsImpl.java | 0 .../dialogflow/v2/MockAnswerRecords.java | 0 .../dialogflow/v2/MockAnswerRecordsImpl.java | 0 .../cloud/dialogflow/v2/MockContexts.java | 0 .../cloud/dialogflow/v2/MockContextsImpl.java | 0 .../v2/MockConversationProfiles.java | 0 .../v2/MockConversationProfilesImpl.java | 0 .../dialogflow/v2/MockConversations.java | 0 .../dialogflow/v2/MockConversationsImpl.java | 0 .../cloud/dialogflow/v2/MockDocuments.java | 0 .../dialogflow/v2/MockDocumentsImpl.java | 0 .../cloud/dialogflow/v2/MockEntityTypes.java | 0 .../dialogflow/v2/MockEntityTypesImpl.java | 0 .../cloud/dialogflow/v2/MockEnvironments.java | 0 .../dialogflow/v2/MockEnvironmentsImpl.java | 0 .../cloud/dialogflow/v2/MockFulfillments.java | 0 .../dialogflow/v2/MockFulfillmentsImpl.java | 0 .../cloud/dialogflow/v2/MockIntents.java | 0 .../cloud/dialogflow/v2/MockIntentsImpl.java | 0 .../dialogflow/v2/MockKnowledgeBases.java | 0 .../dialogflow/v2/MockKnowledgeBasesImpl.java | 0 .../cloud/dialogflow/v2/MockParticipants.java | 0 .../dialogflow/v2/MockParticipantsImpl.java | 0 .../dialogflow/v2/MockSessionEntityTypes.java | 0 .../v2/MockSessionEntityTypesImpl.java | 0 .../cloud/dialogflow/v2/MockSessions.java | 0 .../cloud/dialogflow/v2/MockSessionsImpl.java | 0 .../cloud/dialogflow/v2/MockVersions.java | 0 .../cloud/dialogflow/v2/MockVersionsImpl.java | 0 .../dialogflow/v2/ParticipantsClientTest.java | 0 .../v2/SessionEntityTypesClientTest.java | 0 .../dialogflow/v2/SessionsClientTest.java | 0 .../dialogflow/v2/VersionsClientTest.java | 0 .../cloud/dialogflow/v2/AgentsGrpc.java | 926 +- .../dialogflow/v2/AnswerRecordsGrpc.java | 392 + .../cloud/dialogflow/v2/ContextsGrpc.java | 736 + .../v2/ConversationProfilesGrpc.java | 670 + .../dialogflow/v2/ConversationsGrpc.java | 626 +- .../cloud/dialogflow/v2/DocumentsGrpc.java | 670 +- .../cloud/dialogflow/v2/EntityTypesGrpc.java | 1077 +- .../cloud/dialogflow/v2/EnvironmentsGrpc.java | 772 + .../cloud/dialogflow/v2/FulfillmentsGrpc.java | 388 + .../cloud/dialogflow/v2/IntentsGrpc.java | 770 +- .../dialogflow/v2/KnowledgeBasesGrpc.java | 646 + .../cloud/dialogflow/v2/ParticipantsGrpc.java | 842 + .../dialogflow/v2/SessionEntityTypesGrpc.java | 714 + .../cloud/dialogflow/v2/SessionsGrpc.java | 446 + .../cloud/dialogflow/v2/VersionsGrpc.java | 662 + .../com/google/cloud/dialogflow/v2/Agent.java | 1433 +- .../dialogflow/v2/AgentAssistantFeedback.java | 764 +- .../v2/AgentAssistantFeedbackOrBuilder.java | 63 +- .../dialogflow/v2/AgentAssistantRecord.java | 600 +- .../v2/AgentAssistantRecordOrBuilder.java | 65 + .../google/cloud/dialogflow/v2/AgentName.java | 0 .../cloud/dialogflow/v2/AgentOrBuilder.java | 164 +- .../cloud/dialogflow/v2/AgentProto.java | 315 + .../dialogflow/v2/AnalyzeContentRequest.java | 876 +- .../v2/AnalyzeContentRequestOrBuilder.java | 76 +- .../dialogflow/v2/AnalyzeContentResponse.java | 1224 +- .../v2/AnalyzeContentResponseOrBuilder.java | 118 +- .../dialogflow/v2/AnnotatedMessagePart.java | 488 +- .../v2/AnnotatedMessagePartOrBuilder.java | 44 +- .../cloud/dialogflow/v2/AnswerFeedback.java | 846 +- .../v2/AnswerFeedbackOrBuilder.java | 66 +- .../cloud/dialogflow/v2/AnswerRecord.java | 655 +- .../cloud/dialogflow/v2/AnswerRecordName.java | 0 .../dialogflow/v2/AnswerRecordOrBuilder.java | 67 +- .../dialogflow/v2/AnswerRecordsProto.java | 220 + .../cloud/dialogflow/v2/ArticleAnswer.java | 872 +- .../dialogflow/v2/ArticleAnswerOrBuilder.java | 98 +- .../cloud/dialogflow/v2/AudioConfigProto.java | 186 + .../cloud/dialogflow/v2/AudioEncoding.java | 115 +- .../dialogflow/v2/AutomatedAgentConfig.java | 339 +- .../v2/AutomatedAgentConfigOrBuilder.java | 35 +- .../dialogflow/v2/AutomatedAgentReply.java | 560 +- .../v2/AutomatedAgentReplyOrBuilder.java | 46 +- .../v2/BatchCreateEntitiesRequest.java | 661 +- .../BatchCreateEntitiesRequestOrBuilder.java | 82 +- .../v2/BatchDeleteEntitiesRequest.java | 534 +- .../BatchDeleteEntitiesRequestOrBuilder.java | 62 +- .../v2/BatchDeleteEntityTypesRequest.java | 460 +- ...atchDeleteEntityTypesRequestOrBuilder.java | 53 +- .../v2/BatchDeleteIntentsRequest.java | 582 +- .../BatchDeleteIntentsRequestOrBuilder.java | 80 + .../v2/BatchUpdateEntitiesRequest.java | 791 +- .../BatchUpdateEntitiesRequestOrBuilder.java | 99 +- .../v2/BatchUpdateEntityTypesRequest.java | 814 +- ...atchUpdateEntityTypesRequestOrBuilder.java | 84 +- .../v2/BatchUpdateEntityTypesResponse.java | 395 +- ...tchUpdateEntityTypesResponseOrBuilder.java | 36 +- .../v2/BatchUpdateIntentsRequest.java | 887 +- .../BatchUpdateIntentsRequestOrBuilder.java | 98 +- .../v2/BatchUpdateIntentsResponse.java | 383 +- .../BatchUpdateIntentsResponseOrBuilder.java | 36 +- .../v2/CompleteConversationRequest.java | 342 +- .../CompleteConversationRequestOrBuilder.java | 33 + .../google/cloud/dialogflow/v2/Context.java | 441 +- .../cloud/dialogflow/v2/ContextName.java | 0 .../cloud/dialogflow/v2/ContextOrBuilder.java | 38 +- .../cloud/dialogflow/v2/ContextProto.java | 258 + .../cloud/dialogflow/v2/Conversation.java | 1126 +- .../dialogflow/v2/ConversationEvent.java | 690 +- .../v2/ConversationEventOrBuilder.java | 49 +- .../dialogflow/v2/ConversationEventProto.java | 70 + .../cloud/dialogflow/v2/ConversationName.java | 0 .../dialogflow/v2/ConversationOrBuilder.java | 118 +- .../v2/ConversationPhoneNumber.java | 314 +- .../v2/ConversationPhoneNumberOrBuilder.java | 27 +- .../dialogflow/v2/ConversationProfile.java | 1659 +- .../v2/ConversationProfileName.java | 0 .../v2/ConversationProfileOrBuilder.java | 171 +- .../v2/ConversationProfileProto.java | 531 + .../dialogflow/v2/ConversationProto.java | 250 + .../dialogflow/v2/CreateContextRequest.java | 488 +- .../v2/CreateContextRequestOrBuilder.java | 55 +- .../v2/CreateConversationProfileRequest.java | 528 +- ...teConversationProfileRequestOrBuilder.java | 58 + .../v2/CreateConversationRequest.java | 567 +- .../CreateConversationRequestOrBuilder.java | 64 +- .../dialogflow/v2/CreateDocumentRequest.java | 488 +- .../v2/CreateDocumentRequestOrBuilder.java | 60 + .../v2/CreateEntityTypeRequest.java | 567 +- .../v2/CreateEntityTypeRequestOrBuilder.java | 64 +- .../v2/CreateEnvironmentRequest.java | 567 +- .../v2/CreateEnvironmentRequestOrBuilder.java | 64 +- .../dialogflow/v2/CreateIntentRequest.java | 650 +- .../v2/CreateIntentRequestOrBuilder.java | 75 +- .../v2/CreateKnowledgeBaseRequest.java | 488 +- .../CreateKnowledgeBaseRequestOrBuilder.java | 58 + .../v2/CreateParticipantRequest.java | 488 +- .../v2/CreateParticipantRequestOrBuilder.java | 60 + .../v2/CreateSessionEntityTypeRequest.java | 502 +- ...eateSessionEntityTypeRequestOrBuilder.java | 55 +- .../dialogflow/v2/CreateVersionRequest.java | 488 +- .../v2/CreateVersionRequestOrBuilder.java | 62 + .../dialogflow/v2/DeleteAgentRequest.java | 339 +- .../v2/DeleteAgentRequestOrBuilder.java | 31 + .../v2/DeleteAllContextsRequest.java | 342 +- .../v2/DeleteAllContextsRequestOrBuilder.java | 35 +- .../dialogflow/v2/DeleteContextRequest.java | 339 +- .../v2/DeleteContextRequestOrBuilder.java | 35 +- .../v2/DeleteConversationProfileRequest.java | 366 +- ...teConversationProfileRequestOrBuilder.java | 33 + .../dialogflow/v2/DeleteDocumentRequest.java | 339 +- .../v2/DeleteDocumentRequestOrBuilder.java | 33 + .../v2/DeleteEntityTypeRequest.java | 342 +- .../v2/DeleteEntityTypeRequestOrBuilder.java | 31 + .../v2/DeleteEnvironmentRequest.java | 342 +- .../v2/DeleteEnvironmentRequestOrBuilder.java | 35 +- .../dialogflow/v2/DeleteIntentRequest.java | 339 +- .../v2/DeleteIntentRequestOrBuilder.java | 33 + .../v2/DeleteKnowledgeBaseRequest.java | 379 +- .../DeleteKnowledgeBaseRequestOrBuilder.java | 38 +- .../v2/DeleteSessionEntityTypeRequest.java | 353 +- ...leteSessionEntityTypeRequestOrBuilder.java | 35 +- .../dialogflow/v2/DeleteVersionRequest.java | 339 +- .../v2/DeleteVersionRequestOrBuilder.java | 37 + .../dialogflow/v2/DetectIntentRequest.java | 825 +- .../v2/DetectIntentRequestOrBuilder.java | 82 +- .../dialogflow/v2/DetectIntentResponse.java | 631 +- .../v2/DetectIntentResponseOrBuilder.java | 54 +- .../google/cloud/dialogflow/v2/Document.java | 1822 +- .../cloud/dialogflow/v2/DocumentName.java | 0 .../dialogflow/v2/DocumentOrBuilder.java | 156 +- .../cloud/dialogflow/v2/DocumentProto.java | 298 + .../cloud/dialogflow/v2/DtmfParameters.java | 262 +- .../v2/DtmfParametersOrBuilder.java | 19 + .../cloud/dialogflow/v2/EntityType.java | 1400 +- .../cloud/dialogflow/v2/EntityTypeBatch.java | 371 +- .../v2/EntityTypeBatchOrBuilder.java | 36 +- .../cloud/dialogflow/v2/EntityTypeName.java | 0 .../dialogflow/v2/EntityTypeOrBuilder.java | 105 +- .../cloud/dialogflow/v2/EntityTypeProto.java | 388 + .../cloud/dialogflow/v2/Environment.java | 1096 +- .../dialogflow/v2/EnvironmentHistory.java | 1128 +- .../v2/EnvironmentHistoryOrBuilder.java | 74 +- .../cloud/dialogflow/v2/EnvironmentName.java | 0 .../dialogflow/v2/EnvironmentOrBuilder.java | 124 +- .../cloud/dialogflow/v2/EnvironmentProto.java | 307 + .../cloud/dialogflow/v2/EventInput.java | 468 +- .../dialogflow/v2/EventInputOrBuilder.java | 44 +- .../dialogflow/v2/ExportAgentRequest.java | 418 +- .../v2/ExportAgentRequestOrBuilder.java | 44 +- .../dialogflow/v2/ExportAgentResponse.java | 427 +- .../v2/ExportAgentResponseOrBuilder.java | 36 +- .../google/cloud/dialogflow/v2/FaqAnswer.java | 836 +- .../dialogflow/v2/FaqAnswerOrBuilder.java | 89 +- .../cloud/dialogflow/v2/Fulfillment.java | 2112 +- .../cloud/dialogflow/v2/FulfillmentName.java | 0 .../dialogflow/v2/FulfillmentOrBuilder.java | 88 +- .../cloud/dialogflow/v2/FulfillmentProto.java | 174 + .../google/cloud/dialogflow/v2/GcsProto.java | 46 + .../cloud/dialogflow/v2/GetAgentRequest.java | 329 +- .../v2/GetAgentRequestOrBuilder.java | 31 + .../dialogflow/v2/GetContextRequest.java | 336 +- .../v2/GetContextRequestOrBuilder.java | 35 +- .../v2/GetConversationProfileRequest.java | 349 +- ...etConversationProfileRequestOrBuilder.java | 33 + .../dialogflow/v2/GetConversationRequest.java | 342 +- .../v2/GetConversationRequestOrBuilder.java | 33 + .../dialogflow/v2/GetDocumentRequest.java | 339 +- .../v2/GetDocumentRequestOrBuilder.java | 33 + .../dialogflow/v2/GetEntityTypeRequest.java | 418 +- .../v2/GetEntityTypeRequestOrBuilder.java | 44 +- .../v2/GetEnvironmentHistoryRequest.java | 455 +- ...GetEnvironmentHistoryRequestOrBuilder.java | 47 +- .../dialogflow/v2/GetEnvironmentRequest.java | 339 +- .../v2/GetEnvironmentRequestOrBuilder.java | 35 +- .../dialogflow/v2/GetFulfillmentRequest.java | 339 +- .../v2/GetFulfillmentRequestOrBuilder.java | 31 + .../cloud/dialogflow/v2/GetIntentRequest.java | 501 +- .../v2/GetIntentRequestOrBuilder.java | 58 +- .../v2/GetKnowledgeBaseRequest.java | 342 +- .../v2/GetKnowledgeBaseRequestOrBuilder.java | 33 + .../dialogflow/v2/GetParticipantRequest.java | 339 +- .../v2/GetParticipantRequestOrBuilder.java | 33 + .../v2/GetSessionEntityTypeRequest.java | 342 +- .../GetSessionEntityTypeRequestOrBuilder.java | 35 +- .../v2/GetValidationResultRequest.java | 421 +- .../GetValidationResultRequestOrBuilder.java | 44 +- .../dialogflow/v2/GetVersionRequest.java | 336 +- .../v2/GetVersionRequestOrBuilder.java | 37 + .../v2/HumanAgentAssistantConfig.java | 7684 ++-- .../HumanAgentAssistantConfigOrBuilder.java | 104 +- .../v2/HumanAgentAssistantEvent.java | 528 +- .../v2/HumanAgentAssistantEventOrBuilder.java | 54 +- .../v2/HumanAgentAssistantEventProto.java | 62 + .../v2/HumanAgentHandoffConfig.java | 1783 +- .../v2/HumanAgentHandoffConfigOrBuilder.java | 65 + .../dialogflow/v2/ImportAgentRequest.java | 531 +- .../v2/ImportAgentRequestOrBuilder.java | 53 +- .../cloud/dialogflow/v2/InputAudioConfig.java | 922 +- .../v2/InputAudioConfigOrBuilder.java | 104 +- .../google/cloud/dialogflow/v2/Intent.java | 25163 ++++------- .../cloud/dialogflow/v2/IntentBatch.java | 370 +- .../dialogflow/v2/IntentBatchOrBuilder.java | 36 +- .../cloud/dialogflow/v2/IntentName.java | 0 .../cloud/dialogflow/v2/IntentOrBuilder.java | 361 +- .../cloud/dialogflow/v2/IntentProto.java | 836 + .../cloud/dialogflow/v2/IntentView.java | 75 +- .../cloud/dialogflow/v2/KnowledgeBase.java | 459 +- .../dialogflow/v2/KnowledgeBaseName.java | 0 .../dialogflow/v2/KnowledgeBaseOrBuilder.java | 45 +- .../dialogflow/v2/KnowledgeBaseProto.java | 214 + .../v2/KnowledgeOperationMetadata.java | 410 +- .../KnowledgeOperationMetadataOrBuilder.java | 28 + .../v2/ListAnswerRecordsRequest.java | 536 +- .../v2/ListAnswerRecordsRequestOrBuilder.java | 56 +- .../v2/ListAnswerRecordsResponse.java | 456 +- .../ListAnswerRecordsResponseOrBuilder.java | 45 +- .../dialogflow/v2/ListContextsRequest.java | 452 +- .../v2/ListContextsRequestOrBuilder.java | 47 +- .../dialogflow/v2/ListContextsResponse.java | 459 +- .../v2/ListContextsResponseOrBuilder.java | 45 +- .../v2/ListConversationProfilesRequest.java | 476 +- ...tConversationProfilesRequestOrBuilder.java | 47 +- .../v2/ListConversationProfilesResponse.java | 568 +- ...ConversationProfilesResponseOrBuilder.java | 57 +- .../v2/ListConversationsRequest.java | 536 +- .../v2/ListConversationsRequestOrBuilder.java | 56 +- .../v2/ListConversationsResponse.java | 456 +- .../ListConversationsResponseOrBuilder.java | 45 +- .../dialogflow/v2/ListDocumentsRequest.java | 452 +- .../v2/ListDocumentsRequestOrBuilder.java | 47 +- .../dialogflow/v2/ListDocumentsResponse.java | 460 +- .../v2/ListDocumentsResponseOrBuilder.java | 45 +- .../dialogflow/v2/ListEntityTypesRequest.java | 536 +- .../v2/ListEntityTypesRequestOrBuilder.java | 56 +- .../v2/ListEntityTypesResponse.java | 463 +- .../v2/ListEntityTypesResponseOrBuilder.java | 45 +- .../v2/ListEnvironmentsRequest.java | 455 +- .../v2/ListEnvironmentsRequestOrBuilder.java | 47 +- .../v2/ListEnvironmentsResponse.java | 464 +- .../v2/ListEnvironmentsResponseOrBuilder.java | 45 +- .../dialogflow/v2/ListIntentsRequest.java | 621 +- .../v2/ListIntentsRequestOrBuilder.java | 70 +- .../dialogflow/v2/ListIntentsResponse.java | 459 +- .../v2/ListIntentsResponseOrBuilder.java | 45 +- .../v2/ListKnowledgeBasesRequest.java | 455 +- .../ListKnowledgeBasesRequestOrBuilder.java | 47 +- .../v2/ListKnowledgeBasesResponse.java | 441 +- .../ListKnowledgeBasesResponseOrBuilder.java | 45 +- .../dialogflow/v2/ListMessagesRequest.java | 533 +- .../v2/ListMessagesRequestOrBuilder.java | 56 +- .../dialogflow/v2/ListMessagesResponse.java | 459 +- .../v2/ListMessagesResponseOrBuilder.java | 45 +- .../v2/ListParticipantsRequest.java | 455 +- .../v2/ListParticipantsRequestOrBuilder.java | 47 +- .../v2/ListParticipantsResponse.java | 464 +- .../v2/ListParticipantsResponseOrBuilder.java | 45 +- .../v2/ListSessionEntityTypesRequest.java | 462 +- ...istSessionEntityTypesRequestOrBuilder.java | 47 +- .../v2/ListSessionEntityTypesResponse.java | 461 +- ...stSessionEntityTypesResponseOrBuilder.java | 42 +- .../dialogflow/v2/ListVersionsRequest.java | 452 +- .../v2/ListVersionsRequestOrBuilder.java | 47 +- .../dialogflow/v2/ListVersionsResponse.java | 459 +- .../v2/ListVersionsResponseOrBuilder.java | 45 +- .../cloud/dialogflow/v2/LocationName.java | 0 .../cloud/dialogflow/v2/LoggingConfig.java | 262 +- .../dialogflow/v2/LoggingConfigOrBuilder.java | 21 +- .../google/cloud/dialogflow/v2/Message.java | 911 +- .../dialogflow/v2/MessageAnnotation.java | 415 +- .../v2/MessageAnnotationOrBuilder.java | 39 +- .../cloud/dialogflow/v2/MessageName.java | 0 .../cloud/dialogflow/v2/MessageOrBuilder.java | 105 +- .../dialogflow/v2/NotificationConfig.java | 456 +- .../v2/NotificationConfigOrBuilder.java | 33 +- .../v2/OriginalDetectIntentRequest.java | 480 +- .../OriginalDetectIntentRequestOrBuilder.java | 44 +- .../cloud/dialogflow/v2/OutputAudio.java | 356 +- .../dialogflow/v2/OutputAudioConfig.java | 477 +- .../v2/OutputAudioConfigOrBuilder.java | 46 +- .../dialogflow/v2/OutputAudioEncoding.java | 98 +- .../dialogflow/v2/OutputAudioOrBuilder.java | 29 +- .../cloud/dialogflow/v2/Participant.java | 535 +- .../cloud/dialogflow/v2/ParticipantName.java | 0 .../dialogflow/v2/ParticipantOrBuilder.java | 50 +- .../cloud/dialogflow/v2/ParticipantProto.java | 509 + .../cloud/dialogflow/v2/ProjectName.java | 0 .../cloud/dialogflow/v2/QueryInput.java | 595 +- .../dialogflow/v2/QueryInputOrBuilder.java | 42 +- .../cloud/dialogflow/v2/QueryParameters.java | 1242 +- .../v2/QueryParametersOrBuilder.java | 134 +- .../cloud/dialogflow/v2/QueryResult.java | 1580 +- .../dialogflow/v2/QueryResultOrBuilder.java | 163 +- .../dialogflow/v2/ReloadDocumentRequest.java | 472 +- .../v2/ReloadDocumentRequestOrBuilder.java | 47 +- .../dialogflow/v2/RestoreAgentRequest.java | 531 +- .../v2/RestoreAgentRequestOrBuilder.java | 53 +- .../dialogflow/v2/SearchAgentsRequest.java | 452 +- .../v2/SearchAgentsRequestOrBuilder.java | 47 +- .../dialogflow/v2/SearchAgentsResponse.java | 459 +- .../v2/SearchAgentsResponseOrBuilder.java | 46 +- .../google/cloud/dialogflow/v2/Sentiment.java | 296 +- .../v2/SentimentAnalysisRequestConfig.java | 286 +- ...ntimentAnalysisRequestConfigOrBuilder.java | 21 + .../v2/SentimentAnalysisResult.java | 338 +- .../v2/SentimentAnalysisResultOrBuilder.java | 26 +- .../dialogflow/v2/SentimentOrBuilder.java | 24 +- .../dialogflow/v2/SessionEntityType.java | 718 +- .../dialogflow/v2/SessionEntityTypeName.java | 0 .../v2/SessionEntityTypeOrBuilder.java | 79 +- .../dialogflow/v2/SessionEntityTypeProto.java | 256 + .../cloud/dialogflow/v2/SessionName.java | 0 .../cloud/dialogflow/v2/SessionProto.java | 360 + .../cloud/dialogflow/v2/SetAgentRequest.java | 486 +- .../v2/SetAgentRequestOrBuilder.java | 52 +- .../cloud/dialogflow/v2/SpeechContext.java | 370 +- .../dialogflow/v2/SpeechContextOrBuilder.java | 39 +- .../dialogflow/v2/SpeechModelVariant.java | 87 +- .../dialogflow/v2/SpeechToTextConfig.java | 328 +- .../v2/SpeechToTextConfigOrBuilder.java | 32 +- .../cloud/dialogflow/v2/SpeechWordInfo.java | 520 +- .../v2/SpeechWordInfoOrBuilder.java | 46 +- .../cloud/dialogflow/v2/SsmlVoiceGender.java | 89 +- .../v2/StreamingDetectIntentRequest.java | 875 +- ...StreamingDetectIntentRequestOrBuilder.java | 88 +- .../v2/StreamingDetectIntentResponse.java | 758 +- ...treamingDetectIntentResponseOrBuilder.java | 65 +- .../v2/StreamingRecognitionResult.java | 861 +- .../StreamingRecognitionResultOrBuilder.java | 80 +- .../dialogflow/v2/SuggestArticlesRequest.java | 455 +- .../v2/SuggestArticlesRequestOrBuilder.java | 47 +- .../v2/SuggestArticlesResponse.java | 475 +- .../v2/SuggestArticlesResponseOrBuilder.java | 48 +- .../v2/SuggestFaqAnswersRequest.java | 455 +- .../v2/SuggestFaqAnswersRequestOrBuilder.java | 47 +- .../v2/SuggestFaqAnswersResponse.java | 500 +- .../SuggestFaqAnswersResponseOrBuilder.java | 48 +- .../dialogflow/v2/SuggestionFeature.java | 363 +- .../v2/SuggestionFeatureOrBuilder.java | 24 +- .../cloud/dialogflow/v2/SuggestionResult.java | 710 +- .../v2/SuggestionResultOrBuilder.java | 60 +- .../dialogflow/v2/SynthesizeSpeechConfig.java | 562 +- .../v2/SynthesizeSpeechConfigOrBuilder.java | 53 +- .../google/cloud/dialogflow/v2/TextInput.java | 377 +- .../dialogflow/v2/TextInputOrBuilder.java | 36 +- .../dialogflow/v2/TextToSpeechSettings.java | 719 +- .../v2/TextToSpeechSettingsOrBuilder.java | 84 +- .../dialogflow/v2/TrainAgentRequest.java | 336 +- .../v2/TrainAgentRequestOrBuilder.java | 31 + .../v2/UpdateAnswerRecordRequest.java | 516 +- .../UpdateAnswerRecordRequestOrBuilder.java | 55 +- .../dialogflow/v2/UpdateContextRequest.java | 516 +- .../v2/UpdateContextRequestOrBuilder.java | 55 +- .../v2/UpdateConversationProfileRequest.java | 556 +- ...teConversationProfileRequestOrBuilder.java | 55 +- .../dialogflow/v2/UpdateDocumentRequest.java | 516 +- .../v2/UpdateDocumentRequestOrBuilder.java | 55 +- .../v2/UpdateEntityTypeRequest.java | 592 +- .../v2/UpdateEntityTypeRequestOrBuilder.java | 64 +- .../v2/UpdateEnvironmentRequest.java | 572 +- .../v2/UpdateEnvironmentRequestOrBuilder.java | 62 +- .../v2/UpdateFulfillmentRequest.java | 516 +- .../v2/UpdateFulfillmentRequestOrBuilder.java | 55 +- .../dialogflow/v2/UpdateIntentRequest.java | 675 +- .../v2/UpdateIntentRequestOrBuilder.java | 75 +- .../v2/UpdateKnowledgeBaseRequest.java | 516 +- .../UpdateKnowledgeBaseRequestOrBuilder.java | 55 +- .../v2/UpdateParticipantRequest.java | 516 +- .../v2/UpdateParticipantRequestOrBuilder.java | 55 +- .../v2/UpdateSessionEntityTypeRequest.java | 530 +- ...dateSessionEntityTypeRequestOrBuilder.java | 55 +- .../dialogflow/v2/UpdateVersionRequest.java | 516 +- .../v2/UpdateVersionRequestOrBuilder.java | 55 +- .../cloud/dialogflow/v2/ValidationError.java | 562 +- .../v2/ValidationErrorOrBuilder.java | 51 +- .../cloud/dialogflow/v2/ValidationResult.java | 356 +- .../v2/ValidationResultOrBuilder.java | 36 +- .../dialogflow/v2/ValidationResultProto.java | 73 + .../google/cloud/dialogflow/v2/Version.java | 717 +- .../cloud/dialogflow/v2/VersionName.java | 0 .../cloud/dialogflow/v2/VersionOrBuilder.java | 70 +- .../cloud/dialogflow/v2/VersionProto.java | 208 + .../dialogflow/v2/VoiceSelectionParams.java | 375 +- .../v2/VoiceSelectionParamsOrBuilder.java | 33 +- .../cloud/dialogflow/v2/WebhookProto.java | 109 + .../cloud/dialogflow/v2/WebhookRequest.java | 650 +- .../v2/WebhookRequestOrBuilder.java | 67 +- .../cloud/dialogflow/v2/WebhookResponse.java | 1036 +- .../v2/WebhookResponseOrBuilder.java | 103 +- .../google/cloud/dialogflow/v2/agent.proto | 0 .../cloud/dialogflow/v2/answer_record.proto | 0 .../cloud/dialogflow/v2/audio_config.proto | 0 .../google/cloud/dialogflow/v2/context.proto | 0 .../cloud/dialogflow/v2/conversation.proto | 0 .../dialogflow/v2/conversation_event.proto | 0 .../dialogflow/v2/conversation_profile.proto | 0 .../google/cloud/dialogflow/v2/document.proto | 0 .../cloud/dialogflow/v2/entity_type.proto | 0 .../cloud/dialogflow/v2/environment.proto | 0 .../cloud/dialogflow/v2/fulfillment.proto | 0 .../google/cloud/dialogflow/v2/gcs.proto | 0 .../v2/human_agent_assistant_event.proto | 0 .../google/cloud/dialogflow/v2/intent.proto | 0 .../cloud/dialogflow/v2/knowledge_base.proto | 0 .../cloud/dialogflow/v2/participant.proto | 0 .../google/cloud/dialogflow/v2/session.proto | 14 + .../dialogflow/v2/session_entity_type.proto | 0 .../dialogflow/v2/validation_result.proto | 0 .../google/cloud/dialogflow/v2/version.proto | 0 .../google/cloud/dialogflow/v2/webhook.proto | 0 .../dialogflow/v2beta1/AgentsClient.java | 16 +- .../dialogflow/v2beta1/AgentsSettings.java | 7 +- .../v2beta1/AnswerRecordsClient.java | 20 +- .../v2beta1/AnswerRecordsSettings.java | 7 +- .../dialogflow/v2beta1/ContextsClient.java | 16 +- .../dialogflow/v2beta1/ContextsSettings.java | 7 +- .../v2beta1/ConversationProfilesClient.java | 36 +- .../v2beta1/ConversationProfilesSettings.java | 13 +- .../v2beta1/ConversationsClient.java | 30 +- .../v2beta1/ConversationsSettings.java | 7 +- .../dialogflow/v2beta1/DocumentsClient.java | 16 +- .../dialogflow/v2beta1/DocumentsSettings.java | 7 +- .../dialogflow/v2beta1/EntityTypesClient.java | 16 +- .../v2beta1/EntityTypesSettings.java | 7 +- .../v2beta1/EnvironmentsClient.java | 34 +- .../v2beta1/EnvironmentsSettings.java | 7 +- .../v2beta1/FulfillmentsClient.java | 6 +- .../v2beta1/FulfillmentsSettings.java | 7 +- .../dialogflow/v2beta1/IntentsClient.java | 16 +- .../dialogflow/v2beta1/IntentsSettings.java | 7 +- .../v2beta1/KnowledgeBasesClient.java | 24 +- .../v2beta1/KnowledgeBasesSettings.java | 7 +- .../v2beta1/ParticipantsClient.java | 26 +- .../v2beta1/ParticipantsSettings.java | 7 +- .../v2beta1/SessionEntityTypesClient.java | 24 +- .../v2beta1/SessionEntityTypesSettings.java | 13 +- .../dialogflow/v2beta1/SessionsClient.java | 36 +- .../dialogflow/v2beta1/SessionsSettings.java | 7 +- .../dialogflow/v2beta1/VersionsClient.java | 16 +- .../dialogflow/v2beta1/VersionsSettings.java | 7 +- .../dialogflow/v2beta1/gapic_metadata.json | 0 .../dialogflow/v2beta1/package-info.java | 0 .../dialogflow/v2beta1/stub/AgentsStub.java | 0 .../v2beta1/stub/AgentsStubSettings.java | 6 +- .../v2beta1/stub/AnswerRecordsStub.java | 0 .../stub/AnswerRecordsStubSettings.java | 9 +- .../dialogflow/v2beta1/stub/ContextsStub.java | 0 .../v2beta1/stub/ContextsStubSettings.java | 6 +- .../stub/ConversationProfilesStub.java | 0 .../ConversationProfilesStubSettings.java | 30 +- .../v2beta1/stub/ConversationsStub.java | 0 .../stub/ConversationsStubSettings.java | 9 +- .../v2beta1/stub/DocumentsStub.java | 0 .../v2beta1/stub/DocumentsStubSettings.java | 6 +- .../v2beta1/stub/EntityTypesStub.java | 0 .../v2beta1/stub/EntityTypesStubSettings.java | 6 +- .../v2beta1/stub/EnvironmentsStub.java | 0 .../stub/EnvironmentsStubSettings.java | 9 +- .../v2beta1/stub/FulfillmentsStub.java | 0 .../stub/FulfillmentsStubSettings.java | 6 +- .../stub/GrpcAgentsCallableFactory.java | 0 .../v2beta1/stub/GrpcAgentsStub.java | 1 + .../GrpcAnswerRecordsCallableFactory.java | 0 .../v2beta1/stub/GrpcAnswerRecordsStub.java | 1 + .../stub/GrpcContextsCallableFactory.java | 0 .../v2beta1/stub/GrpcContextsStub.java | 1 + ...pcConversationProfilesCallableFactory.java | 0 .../stub/GrpcConversationProfilesStub.java | 1 + .../GrpcConversationsCallableFactory.java | 0 .../v2beta1/stub/GrpcConversationsStub.java | 1 + .../stub/GrpcDocumentsCallableFactory.java | 0 .../v2beta1/stub/GrpcDocumentsStub.java | 1 + .../stub/GrpcEntityTypesCallableFactory.java | 0 .../v2beta1/stub/GrpcEntityTypesStub.java | 1 + .../stub/GrpcEnvironmentsCallableFactory.java | 0 .../v2beta1/stub/GrpcEnvironmentsStub.java | 1 + .../stub/GrpcFulfillmentsCallableFactory.java | 0 .../v2beta1/stub/GrpcFulfillmentsStub.java | 1 + .../stub/GrpcIntentsCallableFactory.java | 0 .../v2beta1/stub/GrpcIntentsStub.java | 1 + .../GrpcKnowledgeBasesCallableFactory.java | 0 .../v2beta1/stub/GrpcKnowledgeBasesStub.java | 1 + .../stub/GrpcParticipantsCallableFactory.java | 0 .../v2beta1/stub/GrpcParticipantsStub.java | 1 + ...GrpcSessionEntityTypesCallableFactory.java | 0 .../stub/GrpcSessionEntityTypesStub.java | 1 + .../stub/GrpcSessionsCallableFactory.java | 0 .../v2beta1/stub/GrpcSessionsStub.java | 1 + .../stub/GrpcVersionsCallableFactory.java | 0 .../v2beta1/stub/GrpcVersionsStub.java | 1 + .../dialogflow/v2beta1/stub/IntentsStub.java | 0 .../v2beta1/stub/IntentsStubSettings.java | 6 +- .../v2beta1/stub/KnowledgeBasesStub.java | 0 .../stub/KnowledgeBasesStubSettings.java | 9 +- .../v2beta1/stub/ParticipantsStub.java | 0 .../stub/ParticipantsStubSettings.java | 6 +- .../v2beta1/stub/SessionEntityTypesStub.java | 0 .../stub/SessionEntityTypesStubSettings.java | 27 +- .../dialogflow/v2beta1/stub/SessionsStub.java | 0 .../v2beta1/stub/SessionsStubSettings.java | 6 +- .../dialogflow/v2beta1/stub/VersionsStub.java | 0 .../v2beta1/stub/VersionsStubSettings.java | 6 +- .../dialogflow/v2beta1/AgentsClientTest.java | 12 +- .../v2beta1/AnswerRecordsClientTest.java | 0 .../v2beta1/ContextsClientTest.java | 0 .../ConversationProfilesClientTest.java | 0 .../v2beta1/ConversationsClientTest.java | 0 .../v2beta1/DocumentsClientTest.java | 0 .../v2beta1/EntityTypesClientTest.java | 20 +- .../v2beta1/EnvironmentsClientTest.java | 4 +- .../v2beta1/FulfillmentsClientTest.java | 0 .../dialogflow/v2beta1/IntentsClientTest.java | 28 +- .../v2beta1/KnowledgeBasesClientTest.java | 0 .../cloud/dialogflow/v2beta1/MockAgents.java | 0 .../dialogflow/v2beta1/MockAgentsImpl.java | 0 .../dialogflow/v2beta1/MockAnswerRecords.java | 0 .../v2beta1/MockAnswerRecordsImpl.java | 0 .../dialogflow/v2beta1/MockContexts.java | 0 .../dialogflow/v2beta1/MockContextsImpl.java | 0 .../v2beta1/MockConversationProfiles.java | 0 .../v2beta1/MockConversationProfilesImpl.java | 0 .../dialogflow/v2beta1/MockConversations.java | 0 .../v2beta1/MockConversationsImpl.java | 0 .../dialogflow/v2beta1/MockDocuments.java | 0 .../dialogflow/v2beta1/MockDocumentsImpl.java | 0 .../dialogflow/v2beta1/MockEntityTypes.java | 0 .../v2beta1/MockEntityTypesImpl.java | 0 .../dialogflow/v2beta1/MockEnvironments.java | 0 .../v2beta1/MockEnvironmentsImpl.java | 0 .../dialogflow/v2beta1/MockFulfillments.java | 0 .../v2beta1/MockFulfillmentsImpl.java | 0 .../cloud/dialogflow/v2beta1/MockIntents.java | 0 .../dialogflow/v2beta1/MockIntentsImpl.java | 0 .../v2beta1/MockKnowledgeBases.java | 0 .../v2beta1/MockKnowledgeBasesImpl.java | 0 .../dialogflow/v2beta1/MockParticipants.java | 0 .../v2beta1/MockParticipantsImpl.java | 0 .../v2beta1/MockSessionEntityTypes.java | 0 .../v2beta1/MockSessionEntityTypesImpl.java | 0 .../dialogflow/v2beta1/MockSessions.java | 0 .../dialogflow/v2beta1/MockSessionsImpl.java | 0 .../dialogflow/v2beta1/MockVersions.java | 0 .../dialogflow/v2beta1/MockVersionsImpl.java | 0 .../v2beta1/ParticipantsClientTest.java | 0 .../v2beta1/SessionEntityTypesClientTest.java | 0 .../v2beta1/SessionsClientTest.java | 0 .../v2beta1/VersionsClientTest.java | 8 +- .../cloud/dialogflow/v2beta1/AgentsGrpc.java | 948 +- .../dialogflow/v2beta1/AnswerRecordsGrpc.java | 486 + .../dialogflow/v2beta1/ContextsGrpc.java | 736 + .../v2beta1/ConversationProfilesGrpc.java | 670 + .../dialogflow/v2beta1/ConversationsGrpc.java | 808 + .../dialogflow/v2beta1/DocumentsGrpc.java | 779 +- .../dialogflow/v2beta1/EntityTypesGrpc.java | 1100 +- .../dialogflow/v2beta1/EnvironmentsGrpc.java | 772 + .../dialogflow/v2beta1/FulfillmentsGrpc.java | 388 + .../cloud/dialogflow/v2beta1/IntentsGrpc.java | 781 +- .../v2beta1/KnowledgeBasesGrpc.java | 686 + .../dialogflow/v2beta1/ParticipantsGrpc.java | 1212 + .../v2beta1/SessionEntityTypesGrpc.java | 714 + .../dialogflow/v2beta1/SessionsGrpc.java | 446 + .../dialogflow/v2beta1/VersionsGrpc.java | 662 + .../cloud/dialogflow/v2beta1/Agent.java | 1358 +- .../v2beta1/AgentAssistantFeedback.java | 1597 +- .../AgentAssistantFeedbackOrBuilder.java | 92 +- .../v2beta1/AgentAssistantRecord.java | 605 +- .../AgentAssistantRecordOrBuilder.java | 65 + .../cloud/dialogflow/v2beta1/AgentName.java | 44 +- .../dialogflow/v2beta1/AgentOrBuilder.java | 134 +- .../cloud/dialogflow/v2beta1/AgentProto.java | 334 + .../v2beta1/AnalyzeContentRequest.java | 990 +- .../AnalyzeContentRequestOrBuilder.java | 84 +- .../v2beta1/AnalyzeContentResponse.java | 1273 +- .../AnalyzeContentResponseOrBuilder.java | 138 +- .../v2beta1/AnnotatedMessagePart.java | 491 +- .../AnnotatedMessagePartOrBuilder.java | 44 +- .../dialogflow/v2beta1/AnswerFeedback.java | 890 +- .../v2beta1/AnswerFeedbackOrBuilder.java | 78 +- .../dialogflow/v2beta1/AnswerRecord.java | 599 +- .../dialogflow/v2beta1/AnswerRecordName.java | 0 .../v2beta1/AnswerRecordOrBuilder.java | 46 +- .../v2beta1/AnswerRecordsProto.java | 257 + .../dialogflow/v2beta1/ArticleAnswer.java | 845 +- .../v2beta1/ArticleAnswerOrBuilder.java | 95 +- .../dialogflow/v2beta1/AudioConfigProto.java | 211 + .../dialogflow/v2beta1/AudioEncoding.java | 119 +- .../v2beta1/AutomatedAgentConfig.java | 342 +- .../AutomatedAgentConfigOrBuilder.java | 35 +- .../v2beta1/AutomatedAgentReply.java | 1267 +- .../v2beta1/AutomatedAgentReplyOrBuilder.java | 116 +- .../v2beta1/BatchCreateEntitiesRequest.java | 670 +- .../BatchCreateEntitiesRequestOrBuilder.java | 82 +- .../v2beta1/BatchCreateMessagesRequest.java | 605 +- .../BatchCreateMessagesRequestOrBuilder.java | 73 +- .../v2beta1/BatchCreateMessagesResponse.java | 402 +- .../BatchCreateMessagesResponseOrBuilder.java | 36 +- .../v2beta1/BatchDeleteEntitiesRequest.java | 552 +- .../BatchDeleteEntitiesRequestOrBuilder.java | 62 +- .../BatchDeleteEntityTypesRequest.java | 482 +- ...atchDeleteEntityTypesRequestOrBuilder.java | 53 +- .../v2beta1/BatchDeleteIntentsRequest.java | 591 +- .../BatchDeleteIntentsRequestOrBuilder.java | 84 + .../v2beta1/BatchUpdateEntitiesRequest.java | 764 +- .../BatchUpdateEntitiesRequestOrBuilder.java | 90 +- .../BatchUpdateEntityTypesRequest.java | 847 +- ...atchUpdateEntityTypesRequestOrBuilder.java | 84 +- .../BatchUpdateEntityTypesResponse.java | 415 +- ...tchUpdateEntityTypesResponseOrBuilder.java | 36 +- .../v2beta1/BatchUpdateIntentsRequest.java | 832 +- .../BatchUpdateIntentsRequestOrBuilder.java | 81 +- .../v2beta1/BatchUpdateIntentsResponse.java | 402 +- .../BatchUpdateIntentsResponseOrBuilder.java | 36 +- .../v2beta1/CompileSuggestionRequest.java | 435 +- .../CompileSuggestionRequestOrBuilder.java | 40 +- .../v2beta1/CompileSuggestionResponse.java | 457 +- .../CompileSuggestionResponseOrBuilder.java | 39 +- .../v2beta1/CompleteConversationRequest.java | 363 +- .../CompleteConversationRequestOrBuilder.java | 33 + .../cloud/dialogflow/v2beta1/Context.java | 421 +- .../cloud/dialogflow/v2beta1/ContextName.java | 0 .../dialogflow/v2beta1/ContextOrBuilder.java | 38 +- .../dialogflow/v2beta1/ContextProto.java | 262 + .../dialogflow/v2beta1/Conversation.java | 1158 +- .../dialogflow/v2beta1/ConversationEvent.java | 695 +- .../v2beta1/ConversationEventOrBuilder.java | 49 +- .../v2beta1/ConversationEventProto.java | 70 + .../dialogflow/v2beta1/ConversationName.java | 0 .../v2beta1/ConversationOrBuilder.java | 124 +- .../v2beta1/ConversationPhoneNumber.java | 314 +- .../ConversationPhoneNumberOrBuilder.java | 27 +- .../v2beta1/ConversationProfile.java | 1885 +- .../v2beta1/ConversationProfileName.java | 0 .../v2beta1/ConversationProfileOrBuilder.java | 198 +- .../v2beta1/ConversationProfileProto.java | 529 + .../dialogflow/v2beta1/ConversationProto.java | 319 + .../v2beta1/CreateContextRequest.java | 491 +- .../CreateContextRequestOrBuilder.java | 55 +- .../CreateConversationProfileRequest.java | 541 +- ...teConversationProfileRequestOrBuilder.java | 58 + .../v2beta1/CreateConversationRequest.java | 575 +- .../CreateConversationRequestOrBuilder.java | 64 +- .../v2beta1/CreateDocumentRequest.java | 525 +- .../CreateDocumentRequestOrBuilder.java | 58 +- .../v2beta1/CreateEntityTypeRequest.java | 567 +- .../CreateEntityTypeRequestOrBuilder.java | 64 +- .../v2beta1/CreateEnvironmentRequest.java | 574 +- .../CreateEnvironmentRequestOrBuilder.java | 64 +- .../v2beta1/CreateIntentRequest.java | 632 +- .../v2beta1/CreateIntentRequestOrBuilder.java | 70 +- .../v2beta1/CreateKnowledgeBaseRequest.java | 507 +- .../CreateKnowledgeBaseRequestOrBuilder.java | 58 + .../v2beta1/CreateMessageRequest.java | 491 +- .../CreateMessageRequestOrBuilder.java | 55 +- .../v2beta1/CreateParticipantRequest.java | 495 +- .../CreateParticipantRequestOrBuilder.java | 60 + .../CreateSessionEntityTypeRequest.java | 540 +- ...eateSessionEntityTypeRequestOrBuilder.java | 55 +- .../v2beta1/CreateVersionRequest.java | 491 +- .../CreateVersionRequestOrBuilder.java | 62 + .../v2beta1/DeleteAgentRequest.java | 342 +- .../v2beta1/DeleteAgentRequestOrBuilder.java | 33 + .../v2beta1/DeleteAllContextsRequest.java | 349 +- .../DeleteAllContextsRequestOrBuilder.java | 35 +- .../v2beta1/DeleteContextRequest.java | 342 +- .../DeleteContextRequestOrBuilder.java | 35 +- .../DeleteConversationProfileRequest.java | 378 +- ...teConversationProfileRequestOrBuilder.java | 33 + .../v2beta1/DeleteDocumentRequest.java | 342 +- .../DeleteDocumentRequestOrBuilder.java | 33 + .../v2beta1/DeleteEntityTypeRequest.java | 342 +- .../DeleteEntityTypeRequestOrBuilder.java | 35 +- .../v2beta1/DeleteEnvironmentRequest.java | 349 +- .../DeleteEnvironmentRequestOrBuilder.java | 35 +- .../v2beta1/DeleteIntentRequest.java | 342 +- .../v2beta1/DeleteIntentRequestOrBuilder.java | 35 +- .../v2beta1/DeleteKnowledgeBaseRequest.java | 397 +- .../DeleteKnowledgeBaseRequestOrBuilder.java | 38 +- .../DeleteSessionEntityTypeRequest.java | 378 +- ...leteSessionEntityTypeRequestOrBuilder.java | 35 +- .../v2beta1/DeleteVersionRequest.java | 342 +- .../DeleteVersionRequestOrBuilder.java | 37 + .../v2beta1/DetectIntentRequest.java | 842 +- .../v2beta1/DetectIntentRequestOrBuilder.java | 82 +- .../v2beta1/DetectIntentResponse.java | 880 +- .../DetectIntentResponseOrBuilder.java | 84 +- .../cloud/dialogflow/v2beta1/Document.java | 1957 +- .../dialogflow/v2beta1/DocumentName.java | 0 .../dialogflow/v2beta1/DocumentOrBuilder.java | 181 +- .../dialogflow/v2beta1/DocumentProto.java | 381 + .../dialogflow/v2beta1/DtmfParameters.java | 272 +- .../v2beta1/DtmfParametersOrBuilder.java | 19 + .../cloud/dialogflow/v2beta1/EntityType.java | 1404 +- .../dialogflow/v2beta1/EntityTypeBatch.java | 376 +- .../v2beta1/EntityTypeBatchOrBuilder.java | 36 +- .../dialogflow/v2beta1/EntityTypeName.java | 0 .../v2beta1/EntityTypeOrBuilder.java | 105 +- .../dialogflow/v2beta1/EntityTypeProto.java | 395 + .../cloud/dialogflow/v2beta1/Environment.java | 1110 +- .../v2beta1/EnvironmentHistory.java | 1162 +- .../v2beta1/EnvironmentHistoryOrBuilder.java | 71 +- .../dialogflow/v2beta1/EnvironmentName.java | 0 .../v2beta1/EnvironmentOrBuilder.java | 127 +- .../dialogflow/v2beta1/EnvironmentProto.java | 312 + .../cloud/dialogflow/v2beta1/EventInput.java | 468 +- .../v2beta1/EventInputOrBuilder.java | 44 +- .../v2beta1/ExportAgentRequest.java | 421 +- .../v2beta1/ExportAgentRequestOrBuilder.java | 44 +- .../v2beta1/ExportAgentResponse.java | 430 +- .../v2beta1/ExportAgentResponseOrBuilder.java | 36 +- .../cloud/dialogflow/v2beta1/FaqAnswer.java | 839 +- .../v2beta1/FaqAnswerOrBuilder.java | 89 +- .../cloud/dialogflow/v2beta1/Fulfillment.java | 2019 +- .../dialogflow/v2beta1/FulfillmentName.java | 0 .../v2beta1/FulfillmentOrBuilder.java | 77 +- .../dialogflow/v2beta1/FulfillmentProto.java | 176 + .../cloud/dialogflow/v2beta1/GcsProto.java | 75 + .../cloud/dialogflow/v2beta1/GcsSource.java | 301 +- .../v2beta1/GcsSourceOrBuilder.java | 27 +- .../cloud/dialogflow/v2beta1/GcsSources.java | 333 +- .../v2beta1/GcsSourcesOrBuilder.java | 36 +- .../dialogflow/v2beta1/GetAgentRequest.java | 339 +- .../v2beta1/GetAgentRequestOrBuilder.java | 33 + .../v2beta1/GetAnswerRecordRequest.java | 314 +- .../GetAnswerRecordRequestOrBuilder.java | 27 +- .../dialogflow/v2beta1/GetContextRequest.java | 342 +- .../v2beta1/GetContextRequestOrBuilder.java | 35 +- .../GetConversationProfileRequest.java | 371 +- ...etConversationProfileRequestOrBuilder.java | 33 + .../v2beta1/GetConversationRequest.java | 342 +- .../GetConversationRequestOrBuilder.java | 33 + .../v2beta1/GetDocumentRequest.java | 342 +- .../v2beta1/GetDocumentRequestOrBuilder.java | 33 + .../v2beta1/GetEntityTypeRequest.java | 421 +- .../GetEntityTypeRequestOrBuilder.java | 44 +- .../v2beta1/GetEnvironmentHistoryRequest.java | 476 +- ...GetEnvironmentHistoryRequestOrBuilder.java | 47 +- .../v2beta1/GetEnvironmentRequest.java | 342 +- .../GetEnvironmentRequestOrBuilder.java | 35 +- .../v2beta1/GetFulfillmentRequest.java | 342 +- .../GetFulfillmentRequestOrBuilder.java | 35 + .../dialogflow/v2beta1/GetIntentRequest.java | 480 +- .../v2beta1/GetIntentRequestOrBuilder.java | 50 +- .../v2beta1/GetKnowledgeBaseRequest.java | 342 +- .../GetKnowledgeBaseRequestOrBuilder.java | 33 + .../v2beta1/GetParticipantRequest.java | 342 +- .../GetParticipantRequestOrBuilder.java | 33 + .../v2beta1/GetSessionEntityTypeRequest.java | 363 +- .../GetSessionEntityTypeRequestOrBuilder.java | 35 +- .../v2beta1/GetValidationResultRequest.java | 439 +- .../GetValidationResultRequestOrBuilder.java | 44 +- .../dialogflow/v2beta1/GetVersionRequest.java | 342 +- .../v2beta1/GetVersionRequestOrBuilder.java | 37 + .../v2beta1/HumanAgentAssistantConfig.java | 7859 ++-- .../HumanAgentAssistantConfigOrBuilder.java | 104 +- .../v2beta1/HumanAgentAssistantEvent.java | 607 +- .../HumanAgentAssistantEventOrBuilder.java | 51 +- .../HumanAgentAssistantEventProto.java | 63 + .../v2beta1/HumanAgentHandoffConfig.java | 1869 +- .../HumanAgentHandoffConfigOrBuilder.java | 65 + .../v2beta1/ImportAgentRequest.java | 534 +- .../v2beta1/ImportAgentRequestOrBuilder.java | 53 +- .../v2beta1/ImportDocumentTemplate.java | 792 +- .../ImportDocumentTemplateOrBuilder.java | 100 +- .../v2beta1/ImportDocumentsRequest.java | 684 +- .../ImportDocumentsRequestOrBuilder.java | 69 +- .../v2beta1/ImportDocumentsResponse.java | 386 +- .../ImportDocumentsResponseOrBuilder.java | 37 +- .../dialogflow/v2beta1/InputAudioConfig.java | 945 +- .../v2beta1/InputAudioConfigOrBuilder.java | 104 +- .../cloud/dialogflow/v2beta1/Intent.java | 36023 ++++++---------- .../cloud/dialogflow/v2beta1/IntentBatch.java | 374 +- .../v2beta1/IntentBatchOrBuilder.java | 36 +- .../cloud/dialogflow/v2beta1/IntentName.java | 0 .../dialogflow/v2beta1/IntentOrBuilder.java | 353 +- .../cloud/dialogflow/v2beta1/IntentProto.java | 1068 + .../cloud/dialogflow/v2beta1/IntentView.java | 75 +- .../dialogflow/v2beta1/KnowledgeAnswers.java | 1119 +- .../v2beta1/KnowledgeAnswersOrBuilder.java | 33 +- .../dialogflow/v2beta1/KnowledgeBase.java | 469 +- .../dialogflow/v2beta1/KnowledgeBaseName.java | 0 .../v2beta1/KnowledgeBaseOrBuilder.java | 45 +- .../v2beta1/KnowledgeBaseProto.java | 219 + .../v2beta1/KnowledgeOperationMetadata.java | 431 +- .../KnowledgeOperationMetadataOrBuilder.java | 28 + .../v2beta1/ListAnswerRecordsRequest.java | 434 +- .../ListAnswerRecordsRequestOrBuilder.java | 39 +- .../v2beta1/ListAnswerRecordsResponse.java | 451 +- .../ListAnswerRecordsResponseOrBuilder.java | 45 +- .../v2beta1/ListContextsRequest.java | 455 +- .../v2beta1/ListContextsRequestOrBuilder.java | 47 +- .../v2beta1/ListContextsResponse.java | 460 +- .../ListContextsResponseOrBuilder.java | 45 +- .../ListConversationProfilesRequest.java | 491 +- ...tConversationProfilesRequestOrBuilder.java | 47 +- .../ListConversationProfilesResponse.java | 618 +- ...ConversationProfilesResponseOrBuilder.java | 56 +- .../v2beta1/ListConversationsRequest.java | 543 +- .../ListConversationsRequestOrBuilder.java | 56 +- .../v2beta1/ListConversationsResponse.java | 451 +- .../ListConversationsResponseOrBuilder.java | 45 +- .../v2beta1/ListDocumentsRequest.java | 536 +- .../ListDocumentsRequestOrBuilder.java | 56 +- .../v2beta1/ListDocumentsResponse.java | 464 +- .../ListDocumentsResponseOrBuilder.java | 45 +- .../v2beta1/ListEntityTypesRequest.java | 536 +- .../ListEntityTypesRequestOrBuilder.java | 56 +- .../v2beta1/ListEntityTypesResponse.java | 458 +- .../ListEntityTypesResponseOrBuilder.java | 45 +- .../v2beta1/ListEnvironmentsRequest.java | 455 +- .../ListEnvironmentsRequestOrBuilder.java | 47 +- .../v2beta1/ListEnvironmentsResponse.java | 453 +- .../ListEnvironmentsResponseOrBuilder.java | 45 +- .../v2beta1/ListIntentsRequest.java | 596 +- .../v2beta1/ListIntentsRequestOrBuilder.java | 62 +- .../v2beta1/ListIntentsResponse.java | 463 +- .../v2beta1/ListIntentsResponseOrBuilder.java | 45 +- .../v2beta1/ListKnowledgeBasesRequest.java | 544 +- .../ListKnowledgeBasesRequestOrBuilder.java | 56 +- .../v2beta1/ListKnowledgeBasesResponse.java | 465 +- .../ListKnowledgeBasesResponseOrBuilder.java | 45 +- .../v2beta1/ListMessagesRequest.java | 536 +- .../v2beta1/ListMessagesRequestOrBuilder.java | 56 +- .../v2beta1/ListMessagesResponse.java | 460 +- .../ListMessagesResponseOrBuilder.java | 45 +- .../v2beta1/ListParticipantsRequest.java | 455 +- .../ListParticipantsRequestOrBuilder.java | 47 +- .../v2beta1/ListParticipantsResponse.java | 453 +- .../ListParticipantsResponseOrBuilder.java | 45 +- .../ListSessionEntityTypesRequest.java | 484 +- ...istSessionEntityTypesRequestOrBuilder.java | 47 +- .../ListSessionEntityTypesResponse.java | 584 +- ...stSessionEntityTypesResponseOrBuilder.java | 57 +- .../v2beta1/ListSuggestionsRequest.java | 509 +- .../ListSuggestionsRequestOrBuilder.java | 49 +- .../v2beta1/ListSuggestionsResponse.java | 459 +- .../ListSuggestionsResponseOrBuilder.java | 46 +- .../v2beta1/ListVersionsRequest.java | 455 +- .../v2beta1/ListVersionsRequestOrBuilder.java | 47 +- .../v2beta1/ListVersionsResponse.java | 460 +- .../ListVersionsResponseOrBuilder.java | 45 +- .../dialogflow/v2beta1/LocationName.java | 0 .../dialogflow/v2beta1/LoggingConfig.java | 272 +- .../v2beta1/LoggingConfigOrBuilder.java | 21 +- .../cloud/dialogflow/v2beta1/Message.java | 1228 +- .../dialogflow/v2beta1/MessageAnnotation.java | 419 +- .../v2beta1/MessageAnnotationOrBuilder.java | 39 +- .../cloud/dialogflow/v2beta1/MessageName.java | 0 .../dialogflow/v2beta1/MessageOrBuilder.java | 145 +- .../v2beta1/NotificationConfig.java | 482 +- .../v2beta1/NotificationConfigOrBuilder.java | 39 +- .../v2beta1/OriginalDetectIntentRequest.java | 501 +- .../OriginalDetectIntentRequestOrBuilder.java | 44 +- .../cloud/dialogflow/v2beta1/OutputAudio.java | 360 +- .../dialogflow/v2beta1/OutputAudioConfig.java | 519 +- .../v2beta1/OutputAudioConfigOrBuilder.java | 55 +- .../v2beta1/OutputAudioEncoding.java | 102 +- .../v2beta1/OutputAudioOrBuilder.java | 29 +- .../cloud/dialogflow/v2beta1/Participant.java | 570 +- .../dialogflow/v2beta1/ParticipantName.java | 0 .../v2beta1/ParticipantOrBuilder.java | 50 +- .../dialogflow/v2beta1/ParticipantProto.java | 815 + .../cloud/dialogflow/v2beta1/ProjectName.java | 0 .../cloud/dialogflow/v2beta1/QueryInput.java | 709 +- .../v2beta1/QueryInputOrBuilder.java | 50 +- .../dialogflow/v2beta1/QueryParameters.java | 1613 +- .../v2beta1/QueryParametersOrBuilder.java | 188 +- .../cloud/dialogflow/v2beta1/QueryResult.java | 1775 +- .../v2beta1/QueryResultOrBuilder.java | 168 +- .../v2beta1/ReloadDocumentRequest.java | 521 +- .../ReloadDocumentRequestOrBuilder.java | 46 +- .../dialogflow/v2beta1/ResponseMessage.java | 2653 +- .../v2beta1/ResponseMessageOrBuilder.java | 100 +- .../v2beta1/RestoreAgentRequest.java | 534 +- .../v2beta1/RestoreAgentRequestOrBuilder.java | 53 +- .../v2beta1/SearchAgentsRequest.java | 455 +- .../v2beta1/SearchAgentsRequestOrBuilder.java | 47 +- .../v2beta1/SearchAgentsResponse.java | 463 +- .../SearchAgentsResponseOrBuilder.java | 45 +- .../cloud/dialogflow/v2beta1/Sentiment.java | 299 +- .../SentimentAnalysisRequestConfig.java | 311 +- ...ntimentAnalysisRequestConfigOrBuilder.java | 21 + .../v2beta1/SentimentAnalysisResult.java | 338 +- .../SentimentAnalysisResultOrBuilder.java | 26 +- .../v2beta1/SentimentOrBuilder.java | 24 +- .../dialogflow/v2beta1/SessionEntityType.java | 627 +- .../v2beta1/SessionEntityTypeName.java | 0 .../v2beta1/SessionEntityTypeOrBuilder.java | 59 +- .../v2beta1/SessionEntityTypeProto.java | 261 + .../cloud/dialogflow/v2beta1/SessionName.java | 0 .../dialogflow/v2beta1/SessionProto.java | 417 + .../dialogflow/v2beta1/SetAgentRequest.java | 476 +- .../v2beta1/SetAgentRequestOrBuilder.java | 46 +- .../dialogflow/v2beta1/SmartReplyAnswer.java | 427 +- .../v2beta1/SmartReplyAnswerOrBuilder.java | 39 +- .../dialogflow/v2beta1/SpeechContext.java | 380 +- .../v2beta1/SpeechContextOrBuilder.java | 39 +- .../v2beta1/SpeechModelVariant.java | 91 +- .../v2beta1/SpeechToTextConfig.java | 338 +- .../v2beta1/SpeechToTextConfigOrBuilder.java | 32 +- .../dialogflow/v2beta1/SpeechWordInfo.java | 530 +- .../v2beta1/SpeechWordInfoOrBuilder.java | 46 +- .../dialogflow/v2beta1/SsmlVoiceGender.java | 93 +- .../v2beta1/StreamingDetectIntentRequest.java | 910 +- ...StreamingDetectIntentRequestOrBuilder.java | 88 +- .../StreamingDetectIntentResponse.java | 1063 +- ...treamingDetectIntentResponseOrBuilder.java | 104 +- .../v2beta1/StreamingRecognitionResult.java | 1051 +- .../StreamingRecognitionResultOrBuilder.java | 91 +- .../cloud/dialogflow/v2beta1/SubAgent.java | 380 +- .../dialogflow/v2beta1/SubAgentOrBuilder.java | 36 +- .../v2beta1/SuggestArticlesRequest.java | 483 +- .../SuggestArticlesRequestOrBuilder.java | 55 +- .../v2beta1/SuggestArticlesResponse.java | 481 +- .../SuggestArticlesResponseOrBuilder.java | 48 +- .../v2beta1/SuggestFaqAnswersRequest.java | 490 +- .../SuggestFaqAnswersRequestOrBuilder.java | 55 +- .../v2beta1/SuggestFaqAnswersResponse.java | 503 +- .../SuggestFaqAnswersResponseOrBuilder.java | 48 +- .../v2beta1/SuggestSmartRepliesRequest.java | 569 +- .../SuggestSmartRepliesRequestOrBuilder.java | 55 +- .../v2beta1/SuggestSmartRepliesResponse.java | 591 +- .../SuggestSmartRepliesResponseOrBuilder.java | 60 +- .../cloud/dialogflow/v2beta1/Suggestion.java | 2578 +- .../dialogflow/v2beta1/SuggestionFeature.java | 382 +- .../v2beta1/SuggestionFeatureOrBuilder.java | 24 +- .../v2beta1/SuggestionOrBuilder.java | 78 +- .../dialogflow/v2beta1/SuggestionResult.java | 969 +- .../v2beta1/SuggestionResultOrBuilder.java | 95 +- .../v2beta1/SynthesizeSpeechConfig.java | 562 +- .../SynthesizeSpeechConfigOrBuilder.java | 53 +- .../dialogflow/v2beta1/TelephonyDtmf.java | 182 +- .../v2beta1/TelephonyDtmfEvents.java | 369 +- .../v2beta1/TelephonyDtmfEventsOrBuilder.java | 36 +- .../cloud/dialogflow/v2beta1/TextInput.java | 380 +- .../v2beta1/TextInputOrBuilder.java | 36 +- .../v2beta1/TextToSpeechSettings.java | 756 +- .../TextToSpeechSettingsOrBuilder.java | 81 +- .../dialogflow/v2beta1/TrainAgentRequest.java | 342 +- .../v2beta1/TrainAgentRequestOrBuilder.java | 33 + .../v2beta1/UpdateAnswerRecordRequest.java | 488 +- .../UpdateAnswerRecordRequestOrBuilder.java | 46 +- .../v2beta1/UpdateContextRequest.java | 519 +- .../UpdateContextRequestOrBuilder.java | 55 +- .../UpdateConversationProfileRequest.java | 569 +- ...teConversationProfileRequestOrBuilder.java | 58 +- .../v2beta1/UpdateDocumentRequest.java | 516 +- .../UpdateDocumentRequestOrBuilder.java | 55 +- .../v2beta1/UpdateEntityTypeRequest.java | 592 +- .../UpdateEntityTypeRequestOrBuilder.java | 64 +- .../v2beta1/UpdateEnvironmentRequest.java | 579 +- .../UpdateEnvironmentRequestOrBuilder.java | 62 +- .../v2beta1/UpdateFulfillmentRequest.java | 523 +- .../UpdateFulfillmentRequestOrBuilder.java | 55 +- .../v2beta1/UpdateIntentRequest.java | 621 +- .../v2beta1/UpdateIntentRequestOrBuilder.java | 61 +- .../v2beta1/UpdateKnowledgeBaseRequest.java | 535 +- .../UpdateKnowledgeBaseRequestOrBuilder.java | 55 +- .../v2beta1/UpdateParticipantRequest.java | 523 +- .../UpdateParticipantRequestOrBuilder.java | 55 +- .../UpdateSessionEntityTypeRequest.java | 532 +- ...dateSessionEntityTypeRequestOrBuilder.java | 46 +- .../v2beta1/UpdateVersionRequest.java | 519 +- .../UpdateVersionRequestOrBuilder.java | 55 +- .../dialogflow/v2beta1/ValidationError.java | 576 +- .../v2beta1/ValidationErrorOrBuilder.java | 51 +- .../dialogflow/v2beta1/ValidationResult.java | 375 +- .../v2beta1/ValidationResultOrBuilder.java | 33 +- .../v2beta1/ValidationResultProto.java | 74 + .../cloud/dialogflow/v2beta1/Version.java | 724 +- .../cloud/dialogflow/v2beta1/VersionName.java | 0 .../dialogflow/v2beta1/VersionOrBuilder.java | 70 +- .../dialogflow/v2beta1/VersionProto.java | 211 + .../v2beta1/VoiceSelectionParams.java | 386 +- .../VoiceSelectionParamsOrBuilder.java | 33 +- .../dialogflow/v2beta1/WebhookProto.java | 114 + .../dialogflow/v2beta1/WebhookRequest.java | 902 +- .../v2beta1/WebhookRequestOrBuilder.java | 97 +- .../dialogflow/v2beta1/WebhookResponse.java | 1234 +- .../v2beta1/WebhookResponseOrBuilder.java | 121 +- .../cloud/dialogflow/v2beta1/agent.proto | 0 .../dialogflow/v2beta1/answer_record.proto | 0 .../dialogflow/v2beta1/audio_config.proto | 0 .../cloud/dialogflow/v2beta1/context.proto | 0 .../dialogflow/v2beta1/conversation.proto | 0 .../v2beta1/conversation_event.proto | 0 .../v2beta1/conversation_profile.proto | 0 .../cloud/dialogflow/v2beta1/document.proto | 0 .../dialogflow/v2beta1/entity_type.proto | 0 .../dialogflow/v2beta1/environment.proto | 0 .../dialogflow/v2beta1/fulfillment.proto | 0 .../google/cloud/dialogflow/v2beta1/gcs.proto | 0 .../v2beta1/human_agent_assistant_event.proto | 0 .../cloud/dialogflow/v2beta1/intent.proto | 0 .../dialogflow/v2beta1/knowledge_base.proto | 0 .../dialogflow/v2beta1/participant.proto | 0 .../cloud/dialogflow/v2beta1/session.proto | 14 + .../v2beta1/session_entity_type.proto | 0 .../v2beta1/validation_result.proto | 0 .../cloud/dialogflow/v2beta1/version.proto | 0 .../cloud/dialogflow/v2beta1/webhook.proto | 0 .../v2/AgentAssistantRecordOrBuilder.java | 109 - .../cloud/dialogflow/v2/AgentProto.java | 352 - .../dialogflow/v2/AnswerRecordsProto.java | 247 - .../cloud/dialogflow/v2/AudioConfigProto.java | 216 - .../BatchDeleteIntentsRequestOrBuilder.java | 123 - .../CompleteConversationRequestOrBuilder.java | 58 - .../cloud/dialogflow/v2/ContextProto.java | 280 - .../dialogflow/v2/ConversationEventProto.java | 85 - .../v2/ConversationProfileProto.java | 618 - .../dialogflow/v2/ConversationProto.java | 279 - ...teConversationProfileRequestOrBuilder.java | 97 - .../v2/CreateDocumentRequestOrBuilder.java | 99 - .../CreateKnowledgeBaseRequestOrBuilder.java | 97 - .../v2/CreateParticipantRequestOrBuilder.java | 99 - .../v2/CreateVersionRequestOrBuilder.java | 101 - .../v2/DeleteAgentRequestOrBuilder.java | 56 - ...teConversationProfileRequestOrBuilder.java | 58 - .../v2/DeleteDocumentRequestOrBuilder.java | 58 - .../v2/DeleteEntityTypeRequestOrBuilder.java | 56 - .../v2/DeleteIntentRequestOrBuilder.java | 58 - .../v2/DeleteVersionRequestOrBuilder.java | 62 - .../cloud/dialogflow/v2/DocumentProto.java | 332 - .../v2/DtmfParametersOrBuilder.java | 38 - .../cloud/dialogflow/v2/EntityTypeProto.java | 427 - .../cloud/dialogflow/v2/EnvironmentProto.java | 346 - .../cloud/dialogflow/v2/FulfillmentProto.java | 196 - .../google/cloud/dialogflow/v2/GcsProto.java | 59 - .../v2/GetAgentRequestOrBuilder.java | 56 - ...etConversationProfileRequestOrBuilder.java | 58 - .../v2/GetConversationRequestOrBuilder.java | 58 - .../v2/GetDocumentRequestOrBuilder.java | 58 - .../v2/GetFulfillmentRequestOrBuilder.java | 56 - .../v2/GetKnowledgeBaseRequestOrBuilder.java | 58 - .../v2/GetParticipantRequestOrBuilder.java | 58 - .../v2/GetVersionRequestOrBuilder.java | 62 - .../v2/HumanAgentAssistantEventProto.java | 77 - .../v2/HumanAgentHandoffConfigOrBuilder.java | 113 - .../cloud/dialogflow/v2/IntentProto.java | 996 - .../dialogflow/v2/KnowledgeBaseProto.java | 235 - .../KnowledgeOperationMetadataOrBuilder.java | 54 - .../cloud/dialogflow/v2/ParticipantProto.java | 564 - ...ntimentAnalysisRequestConfigOrBuilder.java | 40 - .../dialogflow/v2/SessionEntityTypeProto.java | 277 - .../cloud/dialogflow/v2/SessionProto.java | 434 - .../v2/TrainAgentRequestOrBuilder.java | 56 - .../dialogflow/v2/ValidationResultProto.java | 89 - .../cloud/dialogflow/v2/VersionProto.java | 229 - .../cloud/dialogflow/v2/WebhookProto.java | 132 - .../AgentAssistantRecordOrBuilder.java | 109 - .../cloud/dialogflow/v2beta1/AgentProto.java | 372 - .../v2beta1/AnswerRecordsProto.java | 291 - .../dialogflow/v2beta1/AudioConfigProto.java | 242 - .../BatchDeleteIntentsRequestOrBuilder.java | 127 - .../CompleteConversationRequestOrBuilder.java | 58 - .../dialogflow/v2beta1/ContextProto.java | 284 - .../v2beta1/ConversationEventProto.java | 85 - .../v2beta1/ConversationProfileProto.java | 617 - .../dialogflow/v2beta1/ConversationProto.java | 351 - ...teConversationProfileRequestOrBuilder.java | 98 - .../CreateKnowledgeBaseRequestOrBuilder.java | 97 - .../CreateParticipantRequestOrBuilder.java | 99 - .../CreateVersionRequestOrBuilder.java | 101 - .../v2beta1/DeleteAgentRequestOrBuilder.java | 58 - ...teConversationProfileRequestOrBuilder.java | 58 - .../DeleteDocumentRequestOrBuilder.java | 58 - .../DeleteVersionRequestOrBuilder.java | 62 - .../dialogflow/v2beta1/DocumentProto.java | 422 - .../v2beta1/DtmfParametersOrBuilder.java | 38 - .../dialogflow/v2beta1/EntityTypeProto.java | 436 - .../dialogflow/v2beta1/EnvironmentProto.java | 351 - .../dialogflow/v2beta1/FulfillmentProto.java | 202 - .../cloud/dialogflow/v2beta1/GcsProto.java | 91 - .../v2beta1/GetAgentRequestOrBuilder.java | 58 - ...etConversationProfileRequestOrBuilder.java | 58 - .../GetConversationRequestOrBuilder.java | 58 - .../v2beta1/GetDocumentRequestOrBuilder.java | 58 - .../GetFulfillmentRequestOrBuilder.java | 60 - .../GetKnowledgeBaseRequestOrBuilder.java | 58 - .../GetParticipantRequestOrBuilder.java | 58 - .../v2beta1/GetVersionRequestOrBuilder.java | 62 - .../HumanAgentAssistantEventProto.java | 78 - .../HumanAgentHandoffConfigOrBuilder.java | 114 - .../cloud/dialogflow/v2beta1/IntentProto.java | 1275 - .../v2beta1/KnowledgeBaseProto.java | 240 - .../KnowledgeOperationMetadataOrBuilder.java | 54 - .../dialogflow/v2beta1/ParticipantProto.java | 928 - ...ntimentAnalysisRequestConfigOrBuilder.java | 40 - .../v2beta1/SessionEntityTypeProto.java | 282 - .../dialogflow/v2beta1/SessionProto.java | 506 - .../v2beta1/TrainAgentRequestOrBuilder.java | 58 - .../v2beta1/ValidationResultProto.java | 90 - .../dialogflow/v2beta1/VersionProto.java | 232 - .../dialogflow/v2beta1/WebhookProto.java | 143 - 1251 files changed, 140261 insertions(+), 235935 deletions(-) delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java delete mode 100644 grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java (88%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/gapic_metadata.json (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/package-info.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/AgentsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/AnswerRecordsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/ContextsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/DocumentsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/EntityTypesClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/EnvironmentsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/FulfillmentsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/IntentsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockAgents.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecords.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecordsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockContexts.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfiles.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfilesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockConversations.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockConversationsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockDocuments.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockDocumentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypes.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironments.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironmentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillments.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillmentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockIntents.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBases.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBasesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockParticipants.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockParticipantsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypes.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockSessions.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockVersions.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/MockVersionsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2/VersionsClientTest.java (100%) rename {grpc-google-cloud-dialogflow-v2 => owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java (58%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java rename {grpc-google-cloud-dialogflow-v2 => owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java (50%) rename {grpc-google-cloud-dialogflow-v2 => owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java (53%) rename {grpc-google-cloud-dialogflow-v2 => owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java (54%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java rename {grpc-google-cloud-dialogflow-v2 => owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java (51%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Agent.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedbackOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecord.java (61%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecordOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java (73%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java (81%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java (76%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java (88%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePart.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePartOrBuilder.java (77%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedback.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java (77%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordOrBuilder.java (61%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswer.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswerOrBuilder.java (70%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java (80%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Context.java (81%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java (87%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationEvent.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventOrBuilder.java (78%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumber.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumberOrBuilder.java (52%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java (81%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequest.java (60%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequestOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequest.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequest.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequestOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java (65%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java (62%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequest.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java (56%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequest.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java (56%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequest.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequestOrBuilder.java (52%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequest.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequestOrBuilder.java (52%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java (83%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java (82%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Document.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java (77%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/DtmfParameters.java (69%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParametersOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java (62%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Environment.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistory.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistoryOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentOrBuilder.java (67%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java (78%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java (83%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswer.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswerOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Fulfillment.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentOrBuilder.java (69%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GcsProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequest.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequestOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequest.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequestOrBuilder.java (52%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequest.java (67%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfigOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEvent.java (76%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventOrBuilder.java (75%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentHandoffConfig.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentHandoffConfigOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java (81%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java (87%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Intent.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/IntentBatch.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/IntentBatchOrBuilder.java (61%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/IntentName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/IntentOrBuilder.java (72%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/IntentView.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBase.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseOrBuilder.java (71%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeOperationMetadata.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeOperationMetadataOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequest.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsRequestOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListAnswerRecordsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequest.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListContextsRequestOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListContextsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationProfilesRequest.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationProfilesRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationProfilesResponse.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationProfilesResponseOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationsRequest.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationsRequestOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationsResponse.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListConversationsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListDocumentsRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListDocumentsRequestOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListDocumentsResponse.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListDocumentsResponseOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequest.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesRequestOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEntityTypesResponseOrBuilder.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEnvironmentsRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEnvironmentsRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEnvironmentsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListEnvironmentsResponseOrBuilder.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequest.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsRequestOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponse.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListIntentsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListKnowledgeBasesRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListKnowledgeBasesRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListKnowledgeBasesResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListKnowledgeBasesResponseOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListMessagesRequest.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListMessagesRequestOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListMessagesResponse.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListMessagesResponseOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListParticipantsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequest.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesRequestOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponse.java (76%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListSessionEntityTypesResponseOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListVersionsRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListVersionsRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListVersionsResponse.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ListVersionsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/LocationName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/LoggingConfig.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/LoggingConfigOrBuilder.java (53%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Message.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/MessageAnnotation.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/MessageAnnotationOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/MessageName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/MessageOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/NotificationConfig.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/NotificationConfigOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequest.java (76%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/OriginalDetectIntentRequestOrBuilder.java (80%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/OutputAudio.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfig.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioConfigOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Participant.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ParticipantName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java (68%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ProjectName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/QueryInput.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/QueryInputOrBuilder.java (76%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/QueryParameters.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/QueryParametersOrBuilder.java (84%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/QueryResult.java (80%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/QueryResultOrBuilder.java (89%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ReloadDocumentRequest.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ReloadDocumentRequestOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequest.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/RestoreAgentRequestOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequest.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SearchAgentsResponseOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Sentiment.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfig.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResult.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisResultOrBuilder.java (61%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SentimentOrBuilder.java (53%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityType.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeOrBuilder.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SessionName.java (100%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequest.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SetAgentRequestOrBuilder.java (61%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SpeechContext.java (77%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SpeechContextOrBuilder.java (80%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SpeechModelVariant.java (79%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfig.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SpeechToTextConfigOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SpeechWordInfo.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SpeechWordInfoOrBuilder.java (80%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SsmlVoiceGender.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequest.java (76%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentRequestOrBuilder.java (84%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java (83%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java (77%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResultOrBuilder.java (83%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequest.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesRequestOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponse.java (76%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestArticlesResponseOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequest.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersRequestOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponse.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestFaqAnswersResponseOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestionFeature.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestionFeatureOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestionResult.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SuggestionResultOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfig.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/SynthesizeSpeechConfigOrBuilder.java (81%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/TextInput.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/TextInputOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/TextToSpeechSettings.java (61%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/TextToSpeechSettingsOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateAnswerRecordRequest.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateAnswerRecordRequestOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequest.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateContextRequestOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateConversationProfileRequest.java (62%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateConversationProfileRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateDocumentRequest.java (65%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateDocumentRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequest.java (67%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateEntityTypeRequestOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateEnvironmentRequest.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateEnvironmentRequestOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateFulfillmentRequest.java (64%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateFulfillmentRequestOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequest.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateIntentRequestOrBuilder.java (68%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateKnowledgeBaseRequest.java (65%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateKnowledgeBaseRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateParticipantRequest.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateParticipantRequestOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequest.java (63%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateSessionEntityTypeRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateVersionRequest.java (66%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/UpdateVersionRequestOrBuilder.java (62%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ValidationError.java (78%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ValidationErrorOrBuilder.java (84%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ValidationResult.java (75%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/ValidationResultOrBuilder.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ValidationResultProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/Version.java (71%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/VersionName.java (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/VersionOrBuilder.java (72%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParams.java (73%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/VoiceSelectionParamsOrBuilder.java (75%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequest.java (70%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/WebhookRequestOrBuilder.java (72%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponse.java (83%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/java/com/google/cloud/dialogflow/v2/WebhookResponseOrBuilder.java (91%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/agent.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/context.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/conversation.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/conversation_event.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/document.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/entity_type.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/environment.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/fulfillment.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/gcs.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/human_agent_assistant_event.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/intent.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/knowledge_base.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/participant.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/session.proto (97%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/session_entity_type.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/validation_result.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/version.proto (100%) rename {proto-google-cloud-dialogflow-v2 => owl-bot-staging/v2/proto-google-cloud-dialogflow-v2}/src/main/proto/google/cloud/dialogflow/v2/webhook.proto (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java (88%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsSettings.java (96%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/gapic_metadata.json (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/package-info.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AgentsStubSettings.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/AnswerRecordsStubSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ContextsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationProfilesStubSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ConversationsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/DocumentsStubSettings.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EntityTypesStubSettings.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/EnvironmentsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/FulfillmentsStubSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAgentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcAnswerRecordsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcContextsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationProfilesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcConversationsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcDocumentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEntityTypesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcEnvironmentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcFulfillmentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcIntentsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcKnowledgeBasesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcParticipantsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionEntityTypesStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcSessionsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsCallableFactory.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/GrpcVersionsStub.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/IntentsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/KnowledgeBasesStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/ParticipantsStubSettings.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionEntityTypesStubSettings.java (95%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/SessionsStubSettings.java (97%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStub.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/VersionsStubSettings.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/AgentsClientTest.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/ContextsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/DocumentsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClientTest.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClientTest.java (99%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/IntentsClientTest.java (98%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgents.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAgentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAnswerRecords.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockAnswerRecordsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockContexts.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockContextsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockConversationProfiles.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockConversationProfilesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockConversations.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockConversationsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockDocuments.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockDocumentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEntityTypes.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEntityTypesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEnvironments.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockEnvironmentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockFulfillments.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockFulfillmentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockIntents.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockIntentsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockKnowledgeBases.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockKnowledgeBasesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockParticipants.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockParticipantsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionEntityTypes.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionEntityTypesImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessions.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockSessionsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockVersions.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/MockVersionsImpl.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/SessionsClientTest.java (100%) rename {google-cloud-dialogflow => owl-bot-staging/v2beta1/google-cloud-dialogflow}/src/test/java/com/google/cloud/dialogflow/v2beta1/VersionsClientTest.java (98%) rename {grpc-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsGrpc.java (57%) create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java rename {grpc-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsGrpc.java (57%) rename {grpc-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesGrpc.java (53%) create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java rename {grpc-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsGrpc.java (51%) create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java create mode 100644 owl-bot-staging/v2beta1/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Agent.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantFeedback.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantFeedbackOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecord.java (62%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java (82%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentOrBuilder.java (80%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequest.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentRequestOrBuilder.java (86%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentResponse.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnalyzeContentResponseOrBuilder.java (81%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnnotatedMessagePart.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnnotatedMessagePartOrBuilder.java (77%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerFeedback.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerFeedbackOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecord.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordOrBuilder.java (80%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ArticleAnswer.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ArticleAnswerOrBuilder.java (69%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioEncoding.java (79%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java (82%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequest.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateEntitiesRequestOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesRequestOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesResponse.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchCreateMessagesResponseOrBuilder.java (61%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequest.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntitiesRequestOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteEntityTypesRequestOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequest.java (64%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntitiesRequestOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequest.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesRequestOrBuilder.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponseOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequest.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsRequestOrBuilder.java (79%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponse.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateIntentsResponseOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CompileSuggestionRequest.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CompileSuggestionRequestOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CompileSuggestionResponse.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CompileSuggestionResponseOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CompleteConversationRequest.java (64%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CompleteConversationRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Context.java (82%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextOrBuilder.java (88%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Conversation.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEvent.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEventOrBuilder.java (79%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEventProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationPhoneNumber.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationPhoneNumberOrBuilder.java (52%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java (79%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateContextRequestOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateConversationProfileRequest.java (60%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateConversationProfileRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateConversationRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateConversationRequestOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequest.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateDocumentRequestOrBuilder.java (53%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEntityTypeRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequest.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateEnvironmentRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateIntentRequestOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequest.java (62%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateMessageRequest.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateMessageRequestOrBuilder.java (53%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateParticipantRequest.java (63%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateParticipantRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequest.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateSessionEntityTypeRequestOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateVersionRequest.java (62%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateVersionRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequest.java (65%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequest.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAllContextsRequestOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequest.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteContextRequestOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteConversationProfileRequest.java (63%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteConversationProfileRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequest.java (65%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEntityTypeRequestOrBuilder.java (50%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequest.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteEnvironmentRequestOrBuilder.java (51%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteIntentRequestOrBuilder.java (53%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteKnowledgeBaseRequestOrBuilder.java (52%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequest.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteSessionEntityTypeRequestOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteVersionRequest.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteVersionRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequestOrBuilder.java (84%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java (77%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java (86%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Document.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentOrBuilder.java (77%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/DtmfParameters.java (68%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DtmfParametersOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityType.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatch.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeBatchOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeOrBuilder.java (63%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Environment.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistory.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentHistoryOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentOrBuilder.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInput.java (78%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/EventInputOrBuilder.java (83%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequest.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponse.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ExportAgentResponseOrBuilder.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/FaqAnswer.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/FaqAnswerOrBuilder.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Fulfillment.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentOrBuilder.java (77%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentProto.java create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSource.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSourceOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSources.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsSourcesOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequest.java (65%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAnswerRecordRequest.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAnswerRecordRequestOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequest.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetContextRequestOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetConversationProfileRequest.java (64%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetConversationProfileRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetConversationRequest.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetConversationRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequest.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequest.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEntityTypeRequestOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentHistoryRequestOrBuilder.java (63%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetEnvironmentRequestOrBuilder.java (51%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetFulfillmentRequest.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetFulfillmentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequest.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetIntentRequestOrBuilder.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequest.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetParticipantRequest.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetParticipantRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequest.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetSessionEntityTypeRequestOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetValidationResultRequestOrBuilder.java (62%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/GetVersionRequest.java (66%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetVersionRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java (58%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfigOrBuilder.java (56%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantEvent.java (77%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantEventOrBuilder.java (83%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantEventProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentHandoffConfig.java (62%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentHandoffConfigOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequest.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportAgentRequestOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentTemplate.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentTemplateOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsRequestOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsResponse.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ImportDocumentsResponseOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfig.java (80%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/InputAudioConfigOrBuilder.java (88%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Intent.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatch.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentBatchOrBuilder.java (61%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentOrBuilder.java (75%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentView.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswers.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAnswersOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBase.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseOrBuilder.java (71%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadata.java (62%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequest.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsRequestOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsResponse.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListAnswerRecordsResponseOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequest.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsRequestOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListContextsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationProfilesRequest.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationProfilesRequestOrBuilder.java (56%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationProfilesResponse.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationProfilesResponseOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationsRequest.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationsRequestOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationsResponse.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListConversationsResponseOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequest.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsRequestOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponse.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListDocumentsResponseOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequest.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesRequestOrBuilder.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponse.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEntityTypesResponseOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequest.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsResponse.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListEnvironmentsResponseOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequest.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsRequestOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListIntentsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequest.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesRequestOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponse.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListKnowledgeBasesResponseOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListMessagesRequest.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListMessagesRequestOrBuilder.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListMessagesResponse.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListMessagesResponseOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListParticipantsRequest.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListParticipantsRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListParticipantsResponse.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListParticipantsResponseOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequest.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesRequestOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponse.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSessionEntityTypesResponseOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSuggestionsRequest.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSuggestionsRequestOrBuilder.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSuggestionsResponse.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListSuggestionsResponseOrBuilder.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListVersionsRequest.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListVersionsRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListVersionsResponse.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ListVersionsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/LocationName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/LoggingConfig.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/LoggingConfigOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Message.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageAnnotation.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageAnnotationOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/MessageOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/NotificationConfig.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/NotificationConfigOrBuilder.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequest.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/OriginalDetectIntentRequestOrBuilder.java (80%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudio.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfig.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioConfigOrBuilder.java (62%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioOrBuilder.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java (77%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java (81%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ProjectName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInput.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryInputOrBuilder.java (81%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParameters.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryParametersOrBuilder.java (84%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResult.java (78%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/QueryResultOrBuilder.java (90%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequest.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ReloadDocumentRequestOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessage.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ResponseMessageOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequest.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/RestoreAgentRequestOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsRequestOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponse.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchAgentsResponseOrBuilder.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Sentiment.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfig.java (63%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfigOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResult.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisResultOrBuilder.java (62%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityType.java (77%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeOrBuilder.java (80%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionName.java (100%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequest.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SetAgentRequestOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SmartReplyAnswer.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SmartReplyAnswerOrBuilder.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContext.java (77%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechContextOrBuilder.java (80%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechModelVariant.java (79%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfig.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechToTextConfigOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfo.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SpeechWordInfoOrBuilder.java (80%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SsmlVoiceGender.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequest.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentRequestOrBuilder.java (85%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java (85%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResultOrBuilder.java (85%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SubAgent.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SubAgentOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestArticlesRequest.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestArticlesRequestOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestArticlesResponse.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestArticlesResponseOrBuilder.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestFaqAnswersRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestFaqAnswersRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestFaqAnswersResponse.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestFaqAnswersResponseOrBuilder.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestSmartRepliesRequest.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestSmartRepliesRequestOrBuilder.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestSmartRepliesResponse.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestSmartRepliesResponseOrBuilder.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Suggestion.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionFeature.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionFeatureOrBuilder.java (55%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionOrBuilder.java (81%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResult.java (63%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestionResultOrBuilder.java (60%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfig.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/SynthesizeSpeechConfigOrBuilder.java (81%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TelephonyDtmf.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TelephonyDtmfEvents.java (73%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TelephonyDtmfEventsOrBuilder.java (69%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInput.java (72%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TextInputOrBuilder.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TextToSpeechSettings.java (60%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TextToSpeechSettingsOrBuilder.java (61%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequest.java (65%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequestOrBuilder.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateAnswerRecordRequest.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateAnswerRecordRequestOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequest.java (63%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateContextRequestOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateConversationProfileRequest.java (61%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateConversationProfileRequestOrBuilder.java (53%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequest.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateDocumentRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequest.java (67%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEntityTypeRequestOrBuilder.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEnvironmentRequest.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateEnvironmentRequestOrBuilder.java (58%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateFulfillmentRequest.java (64%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateFulfillmentRequestOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequest.java (68%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateIntentRequestOrBuilder.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequest.java (65%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateKnowledgeBaseRequestOrBuilder.java (59%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateParticipantRequest.java (63%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateParticipantRequestOrBuilder.java (54%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequest.java (62%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateSessionEntityTypeRequestOrBuilder.java (57%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateVersionRequest.java (66%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/UpdateVersionRequestOrBuilder.java (62%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationError.java (77%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationErrorOrBuilder.java (84%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResult.java (75%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultOrBuilder.java (67%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/Version.java (70%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionName.java (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionOrBuilder.java (72%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParams.java (74%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/VoiceSelectionParamsOrBuilder.java (77%) create mode 100644 owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequest.java (71%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookRequestOrBuilder.java (76%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponse.java (81%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookResponseOrBuilder.java (90%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/agent.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/answer_record.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/context.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_event.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/document.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/entity_type.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/environment.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/fulfillment.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/gcs.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/intent.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/knowledge_base.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto (97%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/session_entity_type.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/validation_result.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/version.proto (100%) rename {proto-google-cloud-dialogflow-v2beta1 => owl-bot-staging/v2beta1/proto-google-cloud-dialogflow-v2beta1}/src/main/proto/google/cloud/dialogflow/v2beta1/webhook.proto (100%) delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecordOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParametersOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GcsProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentHandoffConfigOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBaseProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SentimentAnalysisRequestConfigOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypeProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/TrainAgentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ValidationResultProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionProto.java delete mode 100644 proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/WebhookProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentAssistantRecordOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchDeleteIntentsRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CompleteConversationRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationEventProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateConversationProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateKnowledgeBaseRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateParticipantRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CreateVersionRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteAgentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteConversationProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteDocumentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DeleteVersionRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DtmfParametersOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypeProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GcsProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetAgentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetConversationProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetConversationRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetDocumentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetFulfillmentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetKnowledgeBaseRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetParticipantRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/GetVersionRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantEventProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentHandoffConfigOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBaseProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeOperationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SentimentAnalysisRequestConfigOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypeProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/TrainAgentRequestOrBuilder.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ValidationResultProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionProto.java delete mode 100644 proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/WebhookProto.java diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java deleted file mode 100644 index a69c236a5..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java +++ /dev/null @@ -1,485 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/answer_record.proto") -public final class AnswerRecordsGrpc { - - private AnswerRecordsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.AnswerRecords"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse> - getListAnswerRecordsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAnswerRecords", - requestType = com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse> - getListAnswerRecordsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse> - getListAnswerRecordsMethod; - if ((getListAnswerRecordsMethod = AnswerRecordsGrpc.getListAnswerRecordsMethod) == null) { - synchronized (AnswerRecordsGrpc.class) { - if ((getListAnswerRecordsMethod = AnswerRecordsGrpc.getListAnswerRecordsMethod) == null) { - AnswerRecordsGrpc.getListAnswerRecordsMethod = - getListAnswerRecordsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAnswerRecords")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnswerRecordsMethodDescriptorSupplier("ListAnswerRecords")) - .build(); - } - } - } - return getListAnswerRecordsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2.AnswerRecord> - getUpdateAnswerRecordMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAnswerRecord", - requestType = com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest.class, - responseType = com.google.cloud.dialogflow.v2.AnswerRecord.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2.AnswerRecord> - getUpdateAnswerRecordMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2.AnswerRecord> - getUpdateAnswerRecordMethod; - if ((getUpdateAnswerRecordMethod = AnswerRecordsGrpc.getUpdateAnswerRecordMethod) == null) { - synchronized (AnswerRecordsGrpc.class) { - if ((getUpdateAnswerRecordMethod = AnswerRecordsGrpc.getUpdateAnswerRecordMethod) == null) { - AnswerRecordsGrpc.getUpdateAnswerRecordMethod = - getUpdateAnswerRecordMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAnswerRecord")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.AnswerRecord.getDefaultInstance())) - .setSchemaDescriptor( - new AnswerRecordsMethodDescriptorSupplier("UpdateAnswerRecord")) - .build(); - } - } - } - return getUpdateAnswerRecordMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AnswerRecordsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnswerRecordsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsStub(channel, callOptions); - } - }; - return AnswerRecordsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnswerRecordsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnswerRecordsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsBlockingStub(channel, callOptions); - } - }; - return AnswerRecordsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AnswerRecordsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnswerRecordsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsFutureStub(channel, callOptions); - } - }; - return AnswerRecordsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
-   * 
- */ - public abstract static class AnswerRecordsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public void listAnswerRecords( - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAnswerRecordsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public void updateAnswerRecord( - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAnswerRecordMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListAnswerRecordsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>( - this, METHODID_LIST_ANSWER_RECORDS))) - .addMethod( - getUpdateAnswerRecordMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2.AnswerRecord>( - this, METHODID_UPDATE_ANSWER_RECORD))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
-   * 
- */ - public static final class AnswerRecordsStub - extends io.grpc.stub.AbstractAsyncStub { - private AnswerRecordsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnswerRecordsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public void listAnswerRecords( - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public void updateAnswerRecord( - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
-   * 
- */ - public static final class AnswerRecordsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AnswerRecordsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnswerRecordsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecords( - com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public com.google.cloud.dialogflow.v2.AnswerRecord updateAnswerRecord( - com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
-   * 
- */ - public static final class AnswerRecordsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AnswerRecordsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnswerRecordsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse> - listAnswerRecords(com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.AnswerRecord> - updateAnswerRecord(com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_ANSWER_RECORDS = 0; - private static final int METHODID_UPDATE_ANSWER_RECORD = 1; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AnswerRecordsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AnswerRecordsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_ANSWER_RECORDS: - serviceImpl.listAnswerRecords( - (com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>) - responseObserver); - break; - case METHODID_UPDATE_ANSWER_RECORD: - serviceImpl.updateAnswerRecord( - (com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AnswerRecordsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AnswerRecordsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AnswerRecords"); - } - } - - private static final class AnswerRecordsFileDescriptorSupplier - extends AnswerRecordsBaseDescriptorSupplier { - AnswerRecordsFileDescriptorSupplier() {} - } - - private static final class AnswerRecordsMethodDescriptorSupplier - extends AnswerRecordsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AnswerRecordsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AnswerRecordsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AnswerRecordsFileDescriptorSupplier()) - .addMethod(getListAnswerRecordsMethod()) - .addMethod(getUpdateAnswerRecordMethod()) - .build(); - } - } - } - return result; - } -} 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 deleted file mode 100644 index 428b03cc6..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java +++ /dev/null @@ -1,925 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/context.proto") -public final class ContextsGrpc { - - private ContextsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Contexts"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListContextsRequest, - com.google.cloud.dialogflow.v2.ListContextsResponse> - getListContextsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListContexts", - requestType = com.google.cloud.dialogflow.v2.ListContextsRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListContextsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListContextsRequest, - com.google.cloud.dialogflow.v2.ListContextsResponse> - getListContextsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListContextsRequest, - com.google.cloud.dialogflow.v2.ListContextsResponse> - getListContextsMethod; - if ((getListContextsMethod = ContextsGrpc.getListContextsMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getListContextsMethod = ContextsGrpc.getListContextsMethod) == null) { - ContextsGrpc.getListContextsMethod = - getListContextsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContexts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListContextsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListContextsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("ListContexts")) - .build(); - } - } - } - return getListContextsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetContextRequest, com.google.cloud.dialogflow.v2.Context> - getGetContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetContext", - requestType = com.google.cloud.dialogflow.v2.GetContextRequest.class, - responseType = com.google.cloud.dialogflow.v2.Context.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetContextRequest, com.google.cloud.dialogflow.v2.Context> - getGetContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetContextRequest, - com.google.cloud.dialogflow.v2.Context> - getGetContextMethod; - if ((getGetContextMethod = ContextsGrpc.getGetContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getGetContextMethod = ContextsGrpc.getGetContextMethod) == null) { - ContextsGrpc.getGetContextMethod = - getGetContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Context.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("GetContext")) - .build(); - } - } - } - return getGetContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateContextRequest, - com.google.cloud.dialogflow.v2.Context> - getCreateContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateContext", - requestType = com.google.cloud.dialogflow.v2.CreateContextRequest.class, - responseType = com.google.cloud.dialogflow.v2.Context.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateContextRequest, - com.google.cloud.dialogflow.v2.Context> - getCreateContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateContextRequest, - com.google.cloud.dialogflow.v2.Context> - getCreateContextMethod; - if ((getCreateContextMethod = ContextsGrpc.getCreateContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getCreateContextMethod = ContextsGrpc.getCreateContextMethod) == null) { - ContextsGrpc.getCreateContextMethod = - getCreateContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Context.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("CreateContext")) - .build(); - } - } - } - return getCreateContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateContextRequest, - com.google.cloud.dialogflow.v2.Context> - getUpdateContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateContext", - requestType = com.google.cloud.dialogflow.v2.UpdateContextRequest.class, - responseType = com.google.cloud.dialogflow.v2.Context.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateContextRequest, - com.google.cloud.dialogflow.v2.Context> - getUpdateContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateContextRequest, - com.google.cloud.dialogflow.v2.Context> - getUpdateContextMethod; - if ((getUpdateContextMethod = ContextsGrpc.getUpdateContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getUpdateContextMethod = ContextsGrpc.getUpdateContextMethod) == null) { - ContextsGrpc.getUpdateContextMethod = - getUpdateContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Context.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("UpdateContext")) - .build(); - } - } - } - return getUpdateContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteContextRequest, com.google.protobuf.Empty> - getDeleteContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteContext", - requestType = com.google.cloud.dialogflow.v2.DeleteContextRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteContextRequest, com.google.protobuf.Empty> - getDeleteContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteContextRequest, com.google.protobuf.Empty> - getDeleteContextMethod; - if ((getDeleteContextMethod = ContextsGrpc.getDeleteContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getDeleteContextMethod = ContextsGrpc.getDeleteContextMethod) == null) { - ContextsGrpc.getDeleteContextMethod = - getDeleteContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("DeleteContext")) - .build(); - } - } - } - return getDeleteContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest, com.google.protobuf.Empty> - getDeleteAllContextsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAllContexts", - requestType = com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest, com.google.protobuf.Empty> - getDeleteAllContextsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest, com.google.protobuf.Empty> - getDeleteAllContextsMethod; - if ((getDeleteAllContextsMethod = ContextsGrpc.getDeleteAllContextsMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getDeleteAllContextsMethod = ContextsGrpc.getDeleteAllContextsMethod) == null) { - ContextsGrpc.getDeleteAllContextsMethod = - getDeleteAllContextsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAllContexts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ContextsMethodDescriptorSupplier("DeleteAllContexts")) - .build(); - } - } - } - return getDeleteAllContextsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ContextsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ContextsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsStub(channel, callOptions); - } - }; - return ContextsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ContextsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ContextsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsBlockingStub(channel, callOptions); - } - }; - return ContextsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ContextsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ContextsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsFutureStub(channel, callOptions); - } - }; - return ContextsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
-   * 
- */ - public abstract static class ContextsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public void listContexts( - com.google.cloud.dialogflow.v2.ListContextsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListContextsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public void getContext( - com.google.cloud.dialogflow.v2.GetContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public void createContext( - com.google.cloud.dialogflow.v2.CreateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public void updateContext( - com.google.cloud.dialogflow.v2.UpdateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public void deleteContext( - com.google.cloud.dialogflow.v2.DeleteContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public void deleteAllContexts( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAllContextsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListContextsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListContextsRequest, - com.google.cloud.dialogflow.v2.ListContextsResponse>( - this, METHODID_LIST_CONTEXTS))) - .addMethod( - getGetContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetContextRequest, - com.google.cloud.dialogflow.v2.Context>(this, METHODID_GET_CONTEXT))) - .addMethod( - getCreateContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateContextRequest, - com.google.cloud.dialogflow.v2.Context>(this, METHODID_CREATE_CONTEXT))) - .addMethod( - getUpdateContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateContextRequest, - com.google.cloud.dialogflow.v2.Context>(this, METHODID_UPDATE_CONTEXT))) - .addMethod( - getDeleteContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteContextRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONTEXT))) - .addMethod( - getDeleteAllContextsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ALL_CONTEXTS))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
-   * 
- */ - public static final class ContextsStub extends io.grpc.stub.AbstractAsyncStub { - private ContextsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ContextsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public void listContexts( - com.google.cloud.dialogflow.v2.ListContextsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListContextsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public void getContext( - com.google.cloud.dialogflow.v2.GetContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public void createContext( - com.google.cloud.dialogflow.v2.CreateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateContextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public void updateContext( - com.google.cloud.dialogflow.v2.UpdateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateContextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public void deleteContext( - com.google.cloud.dialogflow.v2.DeleteContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteContextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public void deleteAllContexts( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
-   * 
- */ - public static final class ContextsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ContextsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ContextsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts( - com.google.cloud.dialogflow.v2.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListContextsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Context getContext( - com.google.cloud.dialogflow.v2.GetContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Context createContext( - com.google.cloud.dialogflow.v2.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Context updateContext( - com.google.cloud.dialogflow.v2.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public com.google.protobuf.Empty deleteContext( - com.google.cloud.dialogflow.v2.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public com.google.protobuf.Empty deleteAllContexts( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
-   * 
- */ - public static final class ContextsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ContextsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListContextsResponse> - listContexts(com.google.cloud.dialogflow.v2.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListContextsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Context> - getContext(com.google.cloud.dialogflow.v2.GetContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Context> - createContext(com.google.cloud.dialogflow.v2.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Context> - updateContext(com.google.cloud.dialogflow.v2.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteContext(com.google.cloud.dialogflow.v2.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAllContexts(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONTEXTS = 0; - private static final int METHODID_GET_CONTEXT = 1; - private static final int METHODID_CREATE_CONTEXT = 2; - private static final int METHODID_UPDATE_CONTEXT = 3; - private static final int METHODID_DELETE_CONTEXT = 4; - private static final int METHODID_DELETE_ALL_CONTEXTS = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ContextsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ContextsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONTEXTS: - serviceImpl.listContexts( - (com.google.cloud.dialogflow.v2.ListContextsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CONTEXT: - serviceImpl.getContext( - (com.google.cloud.dialogflow.v2.GetContextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CONTEXT: - serviceImpl.createContext( - (com.google.cloud.dialogflow.v2.CreateContextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CONTEXT: - serviceImpl.updateContext( - (com.google.cloud.dialogflow.v2.UpdateContextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONTEXT: - serviceImpl.deleteContext( - (com.google.cloud.dialogflow.v2.DeleteContextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ALL_CONTEXTS: - serviceImpl.deleteAllContexts( - (com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ContextsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ContextsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Contexts"); - } - } - - private static final class ContextsFileDescriptorSupplier extends ContextsBaseDescriptorSupplier { - ContextsFileDescriptorSupplier() {} - } - - private static final class ContextsMethodDescriptorSupplier extends ContextsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ContextsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ContextsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ContextsFileDescriptorSupplier()) - .addMethod(getListContextsMethod()) - .addMethod(getGetContextMethod()) - .addMethod(getCreateContextMethod()) - .addMethod(getUpdateContextMethod()) - .addMethod(getDeleteContextMethod()) - .addMethod(getDeleteAllContextsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java deleted file mode 100644 index c9a414397..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java +++ /dev/null @@ -1,902 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/conversation_profile.proto") -public final class ConversationProfilesGrpc { - - private ConversationProfilesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.ConversationProfiles"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2.ListConversationProfilesResponse> - getListConversationProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConversationProfiles", - requestType = com.google.cloud.dialogflow.v2.ListConversationProfilesRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListConversationProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2.ListConversationProfilesResponse> - getListConversationProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2.ListConversationProfilesResponse> - getListConversationProfilesMethod; - if ((getListConversationProfilesMethod = - ConversationProfilesGrpc.getListConversationProfilesMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getListConversationProfilesMethod = - ConversationProfilesGrpc.getListConversationProfilesMethod) - == null) { - ConversationProfilesGrpc.getListConversationProfilesMethod = - getListConversationProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListConversationProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListConversationProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "ListConversationProfiles")) - .build(); - } - } - } - return getListConversationProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getGetConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConversationProfile", - requestType = com.google.cloud.dialogflow.v2.GetConversationProfileRequest.class, - responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getGetConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getGetConversationProfileMethod; - if ((getGetConversationProfileMethod = ConversationProfilesGrpc.getGetConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getGetConversationProfileMethod = - ConversationProfilesGrpc.getGetConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getGetConversationProfileMethod = - getGetConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ConversationProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "GetConversationProfile")) - .build(); - } - } - } - return getGetConversationProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getCreateConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConversationProfile", - requestType = com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.class, - responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getCreateConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getCreateConversationProfileMethod; - if ((getCreateConversationProfileMethod = - ConversationProfilesGrpc.getCreateConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getCreateConversationProfileMethod = - ConversationProfilesGrpc.getCreateConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getCreateConversationProfileMethod = - getCreateConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ConversationProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "CreateConversationProfile")) - .build(); - } - } - } - return getCreateConversationProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getUpdateConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConversationProfile", - requestType = com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest.class, - responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getUpdateConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile> - getUpdateConversationProfileMethod; - if ((getUpdateConversationProfileMethod = - ConversationProfilesGrpc.getUpdateConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getUpdateConversationProfileMethod = - ConversationProfilesGrpc.getUpdateConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getUpdateConversationProfileMethod = - getUpdateConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ConversationProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "UpdateConversationProfile")) - .build(); - } - } - } - return getUpdateConversationProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest, - com.google.protobuf.Empty> - getDeleteConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConversationProfile", - requestType = com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest, - com.google.protobuf.Empty> - getDeleteConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest, - com.google.protobuf.Empty> - getDeleteConversationProfileMethod; - if ((getDeleteConversationProfileMethod = - ConversationProfilesGrpc.getDeleteConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getDeleteConversationProfileMethod = - ConversationProfilesGrpc.getDeleteConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getDeleteConversationProfileMethod = - getDeleteConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "DeleteConversationProfile")) - .build(); - } - } - } - return getDeleteConversationProfileMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConversationProfilesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationProfilesStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesStub(channel, callOptions); - } - }; - return ConversationProfilesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConversationProfilesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationProfilesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesBlockingStub(channel, callOptions); - } - }; - return ConversationProfilesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConversationProfilesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationProfilesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesFutureStub(channel, callOptions); - } - }; - return ConversationProfilesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
-   * 
- */ - public abstract static class ConversationProfilesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public void listConversationProfiles( - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConversationProfilesMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public void getConversationProfile( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConversationProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void createConversationProfile( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversationProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void updateConversationProfile( - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConversationProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public void deleteConversationProfile( - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConversationProfileMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListConversationProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>( - this, METHODID_LIST_CONVERSATION_PROFILES))) - .addMethod( - getGetConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile>( - this, METHODID_GET_CONVERSATION_PROFILE))) - .addMethod( - getCreateConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile>( - this, METHODID_CREATE_CONVERSATION_PROFILE))) - .addMethod( - getUpdateConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2.ConversationProfile>( - this, METHODID_UPDATE_CONVERSATION_PROFILE))) - .addMethod( - getDeleteConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONVERSATION_PROFILE))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
-   * 
- */ - public static final class ConversationProfilesStub - extends io.grpc.stub.AbstractAsyncStub { - private ConversationProfilesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationProfilesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public void listConversationProfiles( - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public void getConversationProfile( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void createConversationProfile( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void updateConversationProfile( - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public void deleteConversationProfile( - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
-   * 
- */ - public static final class ConversationProfilesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConversationProfilesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationProfilesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListConversationProfilesResponse listConversationProfiles( - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversationProfilesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversationProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProfile( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ConversationProfile updateConversationProfile( - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public com.google.protobuf.Empty deleteConversationProfile( - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
-   * 
- */ - public static final class ConversationProfilesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConversationProfilesFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationProfilesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListConversationProfilesResponse> - listConversationProfiles( - com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ConversationProfile> - getConversationProfile( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ConversationProfile> - createConversationProfile( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ConversationProfile> - updateConversationProfile( - com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConversationProfile( - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONVERSATION_PROFILES = 0; - private static final int METHODID_GET_CONVERSATION_PROFILE = 1; - private static final int METHODID_CREATE_CONVERSATION_PROFILE = 2; - private static final int METHODID_UPDATE_CONVERSATION_PROFILE = 3; - private static final int METHODID_DELETE_CONVERSATION_PROFILE = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ConversationProfilesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConversationProfilesImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONVERSATION_PROFILES: - serviceImpl.listConversationProfiles( - (com.google.cloud.dialogflow.v2.ListConversationProfilesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>) - responseObserver); - break; - case METHODID_GET_CONVERSATION_PROFILE: - serviceImpl.getConversationProfile( - (com.google.cloud.dialogflow.v2.GetConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CONVERSATION_PROFILE: - serviceImpl.createConversationProfile( - (com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CONVERSATION_PROFILE: - serviceImpl.updateConversationProfile( - (com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONVERSATION_PROFILE: - serviceImpl.deleteConversationProfile( - (com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ConversationProfilesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConversationProfilesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConversationProfiles"); - } - } - - private static final class ConversationProfilesFileDescriptorSupplier - extends ConversationProfilesBaseDescriptorSupplier { - ConversationProfilesFileDescriptorSupplier() {} - } - - private static final class ConversationProfilesMethodDescriptorSupplier - extends ConversationProfilesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConversationProfilesMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ConversationProfilesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConversationProfilesFileDescriptorSupplier()) - .addMethod(getListConversationProfilesMethod()) - .addMethod(getGetConversationProfileMethod()) - .addMethod(getCreateConversationProfileMethod()) - .addMethod(getUpdateConversationProfileMethod()) - .addMethod(getDeleteConversationProfileMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java deleted file mode 100644 index d7e9b710c..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java +++ /dev/null @@ -1,991 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/environment.proto") -public final class EnvironmentsGrpc { - - private EnvironmentsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Environments"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2.ListEnvironmentsResponse> - getListEnvironmentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEnvironments", - requestType = com.google.cloud.dialogflow.v2.ListEnvironmentsRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListEnvironmentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2.ListEnvironmentsResponse> - getListEnvironmentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2.ListEnvironmentsResponse> - getListEnvironmentsMethod; - if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) { - EnvironmentsGrpc.getListEnvironmentsMethod = - getListEnvironmentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListEnvironmentsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("ListEnvironments")) - .build(); - } - } - } - return getListEnvironmentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getGetEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnvironment", - requestType = com.google.cloud.dialogflow.v2.GetEnvironmentRequest.class, - responseType = com.google.cloud.dialogflow.v2.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getGetEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getGetEnvironmentMethod; - if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) { - EnvironmentsGrpc.getGetEnvironmentMethod = - getGetEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Environment.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("GetEnvironment")) - .build(); - } - } - } - return getGetEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getCreateEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment", - requestType = com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.class, - responseType = com.google.cloud.dialogflow.v2.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getCreateEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getCreateEnvironmentMethod; - if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) { - EnvironmentsGrpc.getCreateEnvironmentMethod = - getCreateEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Environment.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("CreateEnvironment")) - .build(); - } - } - } - return getCreateEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getUpdateEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEnvironment", - requestType = com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest.class, - responseType = com.google.cloud.dialogflow.v2.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getUpdateEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment> - getUpdateEnvironmentMethod; - if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) { - EnvironmentsGrpc.getUpdateEnvironmentMethod = - getUpdateEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Environment.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("UpdateEnvironment")) - .build(); - } - } - } - return getUpdateEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest, com.google.protobuf.Empty> - getDeleteEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment", - requestType = com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest, com.google.protobuf.Empty> - getDeleteEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest, com.google.protobuf.Empty> - getDeleteEnvironmentMethod; - if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) { - EnvironmentsGrpc.getDeleteEnvironmentMethod = - getDeleteEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("DeleteEnvironment")) - .build(); - } - } - } - return getDeleteEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2.EnvironmentHistory> - getGetEnvironmentHistoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnvironmentHistory", - requestType = com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.class, - responseType = com.google.cloud.dialogflow.v2.EnvironmentHistory.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2.EnvironmentHistory> - getGetEnvironmentHistoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2.EnvironmentHistory> - getGetEnvironmentHistoryMethod; - if ((getGetEnvironmentHistoryMethod = EnvironmentsGrpc.getGetEnvironmentHistoryMethod) - == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getGetEnvironmentHistoryMethod = EnvironmentsGrpc.getGetEnvironmentHistoryMethod) - == null) { - EnvironmentsGrpc.getGetEnvironmentHistoryMethod = - getGetEnvironmentHistoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetEnvironmentHistory")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.EnvironmentHistory - .getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("GetEnvironmentHistory")) - .build(); - } - } - } - return getGetEnvironmentHistoryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static EnvironmentsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnvironmentsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsStub(channel, callOptions); - } - }; - return EnvironmentsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static EnvironmentsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnvironmentsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsBlockingStub(channel, callOptions); - } - }; - return EnvironmentsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static EnvironmentsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnvironmentsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsFutureStub(channel, callOptions); - } - }; - return EnvironmentsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
-   * 
- */ - public abstract static class EnvironmentsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all non-default environments of the specified agent.
-     * 
- */ - public void listEnvironments( - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEnvironmentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public void getEnvironment( - com.google.cloud.dialogflow.v2.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public void createEnvironment( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment continues serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update an agent
-     * version in the default environment. WARNING: this will negate all recent
-     * changes to the draft agent and can't be undone. You may want to save the
-     * draft agent to a version before calling this method.
-     * 
- */ - public void updateEnvironment( - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public void deleteEnvironment( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public void getEnvironmentHistory( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEnvironmentHistoryMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListEnvironmentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2.ListEnvironmentsResponse>( - this, METHODID_LIST_ENVIRONMENTS))) - .addMethod( - getGetEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment>(this, METHODID_GET_ENVIRONMENT))) - .addMethod( - getCreateEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment>( - this, METHODID_CREATE_ENVIRONMENT))) - .addMethod( - getUpdateEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2.Environment>( - this, METHODID_UPDATE_ENVIRONMENT))) - .addMethod( - getDeleteEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ENVIRONMENT))) - .addMethod( - getGetEnvironmentHistoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2.EnvironmentHistory>( - this, METHODID_GET_ENVIRONMENT_HISTORY))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
-   * 
- */ - public static final class EnvironmentsStub - extends io.grpc.stub.AbstractAsyncStub { - private EnvironmentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnvironmentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all non-default environments of the specified agent.
-     * 
- */ - public void listEnvironments( - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public void getEnvironment( - com.google.cloud.dialogflow.v2.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public void createEnvironment( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment continues serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update an agent
-     * version in the default environment. WARNING: this will negate all recent
-     * changes to the draft agent and can't be undone. You may want to save the
-     * draft agent to a version before calling this method.
-     * 
- */ - public void updateEnvironment( - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public void deleteEnvironment( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public void getEnvironmentHistory( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnvironmentHistoryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
-   * 
- */ - public static final class EnvironmentsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private EnvironmentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnvironmentsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all non-default environments of the specified agent.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListEnvironmentsResponse listEnvironments( - com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Environment getEnvironment( - com.google.cloud.dialogflow.v2.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Environment createEnvironment( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment continues serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update an agent
-     * version in the default environment. WARNING: this will negate all recent
-     * changes to the draft agent and can't be undone. You may want to save the
-     * draft agent to a version before calling this method.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Environment updateEnvironment( - com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public com.google.protobuf.Empty deleteEnvironment( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2.EnvironmentHistory getEnvironmentHistory( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnvironmentHistoryMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
-   * 
- */ - public static final class EnvironmentsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private EnvironmentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnvironmentsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all non-default environments of the specified agent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListEnvironmentsResponse> - listEnvironments(com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Environment> - getEnvironment(com.google.cloud.dialogflow.v2.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Environment> - createEnvironment(com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment continues serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update an agent
-     * version in the default environment. WARNING: this will negate all recent
-     * changes to the draft agent and can't be undone. You may want to save the
-     * draft agent to a version before calling this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Environment> - updateEnvironment(com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteEnvironment(com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.EnvironmentHistory> - getEnvironmentHistory(com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnvironmentHistoryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_ENVIRONMENTS = 0; - private static final int METHODID_GET_ENVIRONMENT = 1; - private static final int METHODID_CREATE_ENVIRONMENT = 2; - private static final int METHODID_UPDATE_ENVIRONMENT = 3; - private static final int METHODID_DELETE_ENVIRONMENT = 4; - private static final int METHODID_GET_ENVIRONMENT_HISTORY = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final EnvironmentsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(EnvironmentsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_ENVIRONMENTS: - serviceImpl.listEnvironments( - (com.google.cloud.dialogflow.v2.ListEnvironmentsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_ENVIRONMENT: - serviceImpl.getEnvironment( - (com.google.cloud.dialogflow.v2.GetEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_ENVIRONMENT: - serviceImpl.createEnvironment( - (com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ENVIRONMENT: - serviceImpl.updateEnvironment( - (com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ENVIRONMENT: - serviceImpl.deleteEnvironment( - (com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENVIRONMENT_HISTORY: - serviceImpl.getEnvironmentHistory( - (com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class EnvironmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - EnvironmentsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Environments"); - } - } - - private static final class EnvironmentsFileDescriptorSupplier - extends EnvironmentsBaseDescriptorSupplier { - EnvironmentsFileDescriptorSupplier() {} - } - - private static final class EnvironmentsMethodDescriptorSupplier - extends EnvironmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - EnvironmentsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (EnvironmentsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EnvironmentsFileDescriptorSupplier()) - .addMethod(getListEnvironmentsMethod()) - .addMethod(getGetEnvironmentMethod()) - .addMethod(getCreateEnvironmentMethod()) - .addMethod(getUpdateEnvironmentMethod()) - .addMethod(getDeleteEnvironmentMethod()) - .addMethod(getGetEnvironmentHistoryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java deleted file mode 100644 index d0c724f8e..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/fulfillment.proto") -public final class FulfillmentsGrpc { - - private FulfillmentsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Fulfillments"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment> - getGetFulfillmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFulfillment", - requestType = com.google.cloud.dialogflow.v2.GetFulfillmentRequest.class, - responseType = com.google.cloud.dialogflow.v2.Fulfillment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment> - getGetFulfillmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment> - getGetFulfillmentMethod; - if ((getGetFulfillmentMethod = FulfillmentsGrpc.getGetFulfillmentMethod) == null) { - synchronized (FulfillmentsGrpc.class) { - if ((getGetFulfillmentMethod = FulfillmentsGrpc.getGetFulfillmentMethod) == null) { - FulfillmentsGrpc.getGetFulfillmentMethod = - getGetFulfillmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFulfillment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetFulfillmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance())) - .setSchemaDescriptor( - new FulfillmentsMethodDescriptorSupplier("GetFulfillment")) - .build(); - } - } - } - return getGetFulfillmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment> - getUpdateFulfillmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFulfillment", - requestType = com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest.class, - responseType = com.google.cloud.dialogflow.v2.Fulfillment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment> - getUpdateFulfillmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment> - getUpdateFulfillmentMethod; - if ((getUpdateFulfillmentMethod = FulfillmentsGrpc.getUpdateFulfillmentMethod) == null) { - synchronized (FulfillmentsGrpc.class) { - if ((getUpdateFulfillmentMethod = FulfillmentsGrpc.getUpdateFulfillmentMethod) == null) { - FulfillmentsGrpc.getUpdateFulfillmentMethod = - getUpdateFulfillmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFulfillment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance())) - .setSchemaDescriptor( - new FulfillmentsMethodDescriptorSupplier("UpdateFulfillment")) - .build(); - } - } - } - return getUpdateFulfillmentMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static FulfillmentsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FulfillmentsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsStub(channel, callOptions); - } - }; - return FulfillmentsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FulfillmentsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FulfillmentsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsBlockingStub(channel, callOptions); - } - }; - return FulfillmentsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static FulfillmentsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FulfillmentsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsFutureStub(channel, callOptions); - } - }; - return FulfillmentsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
-   * 
- */ - public abstract static class FulfillmentsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public void getFulfillment( - com.google.cloud.dialogflow.v2.GetFulfillmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetFulfillmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public void updateFulfillment( - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFulfillmentMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetFulfillmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment>(this, METHODID_GET_FULFILLMENT))) - .addMethod( - getUpdateFulfillmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2.Fulfillment>( - this, METHODID_UPDATE_FULFILLMENT))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
-   * 
- */ - public static final class FulfillmentsStub - extends io.grpc.stub.AbstractAsyncStub { - private FulfillmentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FulfillmentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public void getFulfillment( - com.google.cloud.dialogflow.v2.GetFulfillmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFulfillmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public void updateFulfillment( - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFulfillmentMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
-   * 
- */ - public static final class FulfillmentsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FulfillmentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FulfillmentsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Fulfillment getFulfillment( - com.google.cloud.dialogflow.v2.GetFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFulfillmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Fulfillment updateFulfillment( - com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFulfillmentMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
-   * 
- */ - public static final class FulfillmentsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FulfillmentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FulfillmentsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Fulfillment> - getFulfillment(com.google.cloud.dialogflow.v2.GetFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFulfillmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Fulfillment> - updateFulfillment(com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFulfillmentMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_FULFILLMENT = 0; - private static final int METHODID_UPDATE_FULFILLMENT = 1; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final FulfillmentsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(FulfillmentsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_FULFILLMENT: - serviceImpl.getFulfillment( - (com.google.cloud.dialogflow.v2.GetFulfillmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FULFILLMENT: - serviceImpl.updateFulfillment( - (com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class FulfillmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FulfillmentsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.FulfillmentProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Fulfillments"); - } - } - - private static final class FulfillmentsFileDescriptorSupplier - extends FulfillmentsBaseDescriptorSupplier { - FulfillmentsFileDescriptorSupplier() {} - } - - private static final class FulfillmentsMethodDescriptorSupplier - extends FulfillmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - FulfillmentsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FulfillmentsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FulfillmentsFileDescriptorSupplier()) - .addMethod(getGetFulfillmentMethod()) - .addMethod(getUpdateFulfillmentMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java deleted file mode 100644 index 6fea20b1d..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java +++ /dev/null @@ -1,842 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/knowledge_base.proto") -public final class KnowledgeBasesGrpc { - - private KnowledgeBasesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.KnowledgeBases"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse> - getListKnowledgeBasesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListKnowledgeBases", - requestType = com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse> - getListKnowledgeBasesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse> - getListKnowledgeBasesMethod; - if ((getListKnowledgeBasesMethod = KnowledgeBasesGrpc.getListKnowledgeBasesMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getListKnowledgeBasesMethod = KnowledgeBasesGrpc.getListKnowledgeBasesMethod) - == null) { - KnowledgeBasesGrpc.getListKnowledgeBasesMethod = - getListKnowledgeBasesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKnowledgeBases")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("ListKnowledgeBases")) - .build(); - } - } - } - return getListKnowledgeBasesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getGetKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.class, - responseType = com.google.cloud.dialogflow.v2.KnowledgeBase.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getGetKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getGetKnowledgeBaseMethod; - if ((getGetKnowledgeBaseMethod = KnowledgeBasesGrpc.getGetKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getGetKnowledgeBaseMethod = KnowledgeBasesGrpc.getGetKnowledgeBaseMethod) == null) { - KnowledgeBasesGrpc.getGetKnowledgeBaseMethod = - getGetKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("GetKnowledgeBase")) - .build(); - } - } - } - return getGetKnowledgeBaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getCreateKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.class, - responseType = com.google.cloud.dialogflow.v2.KnowledgeBase.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getCreateKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getCreateKnowledgeBaseMethod; - if ((getCreateKnowledgeBaseMethod = KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getCreateKnowledgeBaseMethod = KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod) - == null) { - KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod = - getCreateKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("CreateKnowledgeBase")) - .build(); - } - } - } - return getCreateKnowledgeBaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty> - getDeleteKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty> - getDeleteKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty> - getDeleteKnowledgeBaseMethod; - if ((getDeleteKnowledgeBaseMethod = KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getDeleteKnowledgeBaseMethod = KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod) - == null) { - KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod = - getDeleteKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("DeleteKnowledgeBase")) - .build(); - } - } - } - return getDeleteKnowledgeBaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getUpdateKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest.class, - responseType = com.google.cloud.dialogflow.v2.KnowledgeBase.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getUpdateKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase> - getUpdateKnowledgeBaseMethod; - if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) - == null) { - KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod = - getUpdateKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("UpdateKnowledgeBase")) - .build(); - } - } - } - return getUpdateKnowledgeBaseMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static KnowledgeBasesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public KnowledgeBasesStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesStub(channel, callOptions); - } - }; - return KnowledgeBasesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static KnowledgeBasesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public KnowledgeBasesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesBlockingStub(channel, callOptions); - } - }; - return KnowledgeBasesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static KnowledgeBasesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public KnowledgeBasesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesFutureStub(channel, callOptions); - } - }; - return KnowledgeBasesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
-   * 
- */ - public abstract static class KnowledgeBasesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * 
- */ - public void listKnowledgeBases( - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListKnowledgeBasesMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * 
- */ - public void getKnowledgeBase( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetKnowledgeBaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * 
- */ - public void createKnowledgeBase( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateKnowledgeBaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * 
- */ - public void deleteKnowledgeBase( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteKnowledgeBaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * 
- */ - public void updateKnowledgeBase( - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateKnowledgeBaseMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListKnowledgeBasesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse>( - this, METHODID_LIST_KNOWLEDGE_BASES))) - .addMethod( - getGetKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase>( - this, METHODID_GET_KNOWLEDGE_BASE))) - .addMethod( - getCreateKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase>( - this, METHODID_CREATE_KNOWLEDGE_BASE))) - .addMethod( - getDeleteKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_KNOWLEDGE_BASE))) - .addMethod( - getUpdateKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2.KnowledgeBase>( - this, METHODID_UPDATE_KNOWLEDGE_BASE))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
-   * 
- */ - public static final class KnowledgeBasesStub - extends io.grpc.stub.AbstractAsyncStub { - private KnowledgeBasesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected KnowledgeBasesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * 
- */ - public void listKnowledgeBases( - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * 
- */ - public void getKnowledgeBase( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * 
- */ - public void createKnowledgeBase( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * 
- */ - public void deleteKnowledgeBase( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * 
- */ - public void updateKnowledgeBase( - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
-   * 
- */ - public static final class KnowledgeBasesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private KnowledgeBasesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected KnowledgeBasesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse listKnowledgeBases( - com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListKnowledgeBasesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * 
- */ - public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetKnowledgeBaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * 
- */ - public com.google.cloud.dialogflow.v2.KnowledgeBase createKnowledgeBase( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateKnowledgeBaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * 
- */ - public com.google.protobuf.Empty deleteKnowledgeBase( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteKnowledgeBaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * 
- */ - public com.google.cloud.dialogflow.v2.KnowledgeBase updateKnowledgeBase( - com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateKnowledgeBaseMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
-   * 
- */ - public static final class KnowledgeBasesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private KnowledgeBasesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected KnowledgeBasesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse> - listKnowledgeBases(com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.KnowledgeBase> - getKnowledgeBase(com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.KnowledgeBase> - createKnowledgeBase(com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteKnowledgeBase(com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.KnowledgeBase> - updateKnowledgeBase(com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_KNOWLEDGE_BASES = 0; - private static final int METHODID_GET_KNOWLEDGE_BASE = 1; - private static final int METHODID_CREATE_KNOWLEDGE_BASE = 2; - private static final int METHODID_DELETE_KNOWLEDGE_BASE = 3; - private static final int METHODID_UPDATE_KNOWLEDGE_BASE = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final KnowledgeBasesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(KnowledgeBasesImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_KNOWLEDGE_BASES: - serviceImpl.listKnowledgeBases( - (com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse>) - responseObserver); - break; - case METHODID_GET_KNOWLEDGE_BASE: - serviceImpl.getKnowledgeBase( - (com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_KNOWLEDGE_BASE: - serviceImpl.createKnowledgeBase( - (com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_KNOWLEDGE_BASE: - serviceImpl.deleteKnowledgeBase( - (com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_KNOWLEDGE_BASE: - serviceImpl.updateKnowledgeBase( - (com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class KnowledgeBasesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - KnowledgeBasesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("KnowledgeBases"); - } - } - - private static final class KnowledgeBasesFileDescriptorSupplier - extends KnowledgeBasesBaseDescriptorSupplier { - KnowledgeBasesFileDescriptorSupplier() {} - } - - private static final class KnowledgeBasesMethodDescriptorSupplier - extends KnowledgeBasesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - KnowledgeBasesMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (KnowledgeBasesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new KnowledgeBasesFileDescriptorSupplier()) - .addMethod(getListKnowledgeBasesMethod()) - .addMethod(getGetKnowledgeBaseMethod()) - .addMethod(getCreateKnowledgeBaseMethod()) - .addMethod(getDeleteKnowledgeBaseMethod()) - .addMethod(getUpdateKnowledgeBaseMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java deleted file mode 100644 index 056f4880e..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java +++ /dev/null @@ -1,1103 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/participant.proto") -public final class ParticipantsGrpc { - - private ParticipantsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Participants"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getCreateParticipantMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateParticipant", - requestType = com.google.cloud.dialogflow.v2.CreateParticipantRequest.class, - responseType = com.google.cloud.dialogflow.v2.Participant.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getCreateParticipantMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getCreateParticipantMethod; - if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { - ParticipantsGrpc.getCreateParticipantMethod = - getCreateParticipantMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateParticipant")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateParticipantRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("CreateParticipant")) - .build(); - } - } - } - return getCreateParticipantMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getGetParticipantMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetParticipant", - requestType = com.google.cloud.dialogflow.v2.GetParticipantRequest.class, - responseType = com.google.cloud.dialogflow.v2.Participant.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getGetParticipantMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getGetParticipantMethod; - if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { - ParticipantsGrpc.getGetParticipantMethod = - getGetParticipantMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParticipant")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetParticipantRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("GetParticipant")) - .build(); - } - } - } - return getGetParticipantMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListParticipantsRequest, - com.google.cloud.dialogflow.v2.ListParticipantsResponse> - getListParticipantsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListParticipants", - requestType = com.google.cloud.dialogflow.v2.ListParticipantsRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListParticipantsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListParticipantsRequest, - com.google.cloud.dialogflow.v2.ListParticipantsResponse> - getListParticipantsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListParticipantsRequest, - com.google.cloud.dialogflow.v2.ListParticipantsResponse> - getListParticipantsMethod; - if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { - ParticipantsGrpc.getListParticipantsMethod = - getListParticipantsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListParticipants")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListParticipantsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListParticipantsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("ListParticipants")) - .build(); - } - } - } - return getListParticipantsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getUpdateParticipantMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateParticipant", - requestType = com.google.cloud.dialogflow.v2.UpdateParticipantRequest.class, - responseType = com.google.cloud.dialogflow.v2.Participant.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getUpdateParticipantMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant> - getUpdateParticipantMethod; - if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { - ParticipantsGrpc.getUpdateParticipantMethod = - getUpdateParticipantMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParticipant")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateParticipantRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("UpdateParticipant")) - .build(); - } - } - } - return getUpdateParticipantMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2.AnalyzeContentResponse> - getAnalyzeContentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeContent", - requestType = com.google.cloud.dialogflow.v2.AnalyzeContentRequest.class, - responseType = com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2.AnalyzeContentResponse> - getAnalyzeContentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2.AnalyzeContentResponse> - getAnalyzeContentMethod; - if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { - ParticipantsGrpc.getAnalyzeContentMethod = - getAnalyzeContentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeContent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.AnalyzeContentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.AnalyzeContentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("AnalyzeContent")) - .build(); - } - } - } - return getAnalyzeContentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2.SuggestArticlesResponse> - getSuggestArticlesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SuggestArticles", - requestType = com.google.cloud.dialogflow.v2.SuggestArticlesRequest.class, - responseType = com.google.cloud.dialogflow.v2.SuggestArticlesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2.SuggestArticlesResponse> - getSuggestArticlesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2.SuggestArticlesResponse> - getSuggestArticlesMethod; - if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { - ParticipantsGrpc.getSuggestArticlesMethod = - getSuggestArticlesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestArticles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SuggestArticlesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SuggestArticlesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("SuggestArticles")) - .build(); - } - } - } - return getSuggestArticlesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> - getSuggestFaqAnswersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SuggestFaqAnswers", - requestType = com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.class, - responseType = com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> - getSuggestFaqAnswersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> - getSuggestFaqAnswersMethod; - if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { - ParticipantsGrpc.getSuggestFaqAnswersMethod = - getSuggestFaqAnswersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestFaqAnswers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("SuggestFaqAnswers")) - .build(); - } - } - } - return getSuggestFaqAnswersMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ParticipantsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ParticipantsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsStub(channel, callOptions); - } - }; - return ParticipantsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ParticipantsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ParticipantsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsBlockingStub(channel, callOptions); - } - }; - return ParticipantsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ParticipantsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ParticipantsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsFutureStub(channel, callOptions); - } - }; - return ParticipantsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
-   * 
- */ - public abstract static class ParticipantsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public void createParticipant( - com.google.cloud.dialogflow.v2.CreateParticipantRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateParticipantMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public void getParticipant( - com.google.cloud.dialogflow.v2.GetParticipantRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetParticipantMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public void listParticipants( - com.google.cloud.dialogflow.v2.ListParticipantsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListParticipantsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public void updateParticipant( - com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateParticipantMethod(), responseObserver); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void analyzeContent( - com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAnalyzeContentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestArticles( - com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSuggestArticlesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestFaqAnswers( - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSuggestFaqAnswersMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateParticipantMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant>( - this, METHODID_CREATE_PARTICIPANT))) - .addMethod( - getGetParticipantMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetParticipantRequest, - com.google.cloud.dialogflow.v2.Participant>(this, METHODID_GET_PARTICIPANT))) - .addMethod( - getListParticipantsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListParticipantsRequest, - com.google.cloud.dialogflow.v2.ListParticipantsResponse>( - this, METHODID_LIST_PARTICIPANTS))) - .addMethod( - getUpdateParticipantMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2.Participant>( - this, METHODID_UPDATE_PARTICIPANT))) - .addMethod( - getAnalyzeContentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2.AnalyzeContentResponse>( - this, METHODID_ANALYZE_CONTENT))) - .addMethod( - getSuggestArticlesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2.SuggestArticlesResponse>( - this, METHODID_SUGGEST_ARTICLES))) - .addMethod( - getSuggestFaqAnswersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse>( - this, METHODID_SUGGEST_FAQ_ANSWERS))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
-   * 
- */ - public static final class ParticipantsStub - extends io.grpc.stub.AbstractAsyncStub { - private ParticipantsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ParticipantsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public void createParticipant( - com.google.cloud.dialogflow.v2.CreateParticipantRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public void getParticipant( - com.google.cloud.dialogflow.v2.GetParticipantRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetParticipantMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public void listParticipants( - com.google.cloud.dialogflow.v2.ListParticipantsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListParticipantsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public void updateParticipant( - com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void analyzeContent( - com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestArticles( - com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestFaqAnswers( - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
-   * 
- */ - public static final class ParticipantsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ParticipantsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ParticipantsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Participant createParticipant( - com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateParticipantMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Participant getParticipant( - com.google.cloud.dialogflow.v2.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetParticipantMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListParticipantsResponse listParticipants( - com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListParticipantsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Participant updateParticipant( - com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.cloud.dialogflow.v2.AnalyzeContentResponse analyzeContent( - com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.cloud.dialogflow.v2.SuggestArticlesResponse suggestArticles( - com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggestFaqAnswers( - com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
-   * 
- */ - public static final class ParticipantsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ParticipantsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ParticipantsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Participant> - createParticipant(com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Participant> - getParticipant(com.google.cloud.dialogflow.v2.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListParticipantsResponse> - listParticipants(com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Participant> - updateParticipant(com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.AnalyzeContentResponse> - analyzeContent(com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.SuggestArticlesResponse> - suggestArticles(com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse> - suggestFaqAnswers(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PARTICIPANT = 0; - private static final int METHODID_GET_PARTICIPANT = 1; - private static final int METHODID_LIST_PARTICIPANTS = 2; - private static final int METHODID_UPDATE_PARTICIPANT = 3; - private static final int METHODID_ANALYZE_CONTENT = 4; - private static final int METHODID_SUGGEST_ARTICLES = 5; - private static final int METHODID_SUGGEST_FAQ_ANSWERS = 6; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ParticipantsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ParticipantsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PARTICIPANT: - serviceImpl.createParticipant( - (com.google.cloud.dialogflow.v2.CreateParticipantRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_PARTICIPANT: - serviceImpl.getParticipant( - (com.google.cloud.dialogflow.v2.GetParticipantRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PARTICIPANTS: - serviceImpl.listParticipants( - (com.google.cloud.dialogflow.v2.ListParticipantsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_PARTICIPANT: - serviceImpl.updateParticipant( - (com.google.cloud.dialogflow.v2.UpdateParticipantRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ANALYZE_CONTENT: - serviceImpl.analyzeContent( - (com.google.cloud.dialogflow.v2.AnalyzeContentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SUGGEST_ARTICLES: - serviceImpl.suggestArticles( - (com.google.cloud.dialogflow.v2.SuggestArticlesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SUGGEST_FAQ_ANSWERS: - serviceImpl.suggestFaqAnswers( - (com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ParticipantsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ParticipantsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Participants"); - } - } - - private static final class ParticipantsFileDescriptorSupplier - extends ParticipantsBaseDescriptorSupplier { - ParticipantsFileDescriptorSupplier() {} - } - - private static final class ParticipantsMethodDescriptorSupplier - extends ParticipantsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ParticipantsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ParticipantsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ParticipantsFileDescriptorSupplier()) - .addMethod(getCreateParticipantMethod()) - .addMethod(getGetParticipantMethod()) - .addMethod(getListParticipantsMethod()) - .addMethod(getUpdateParticipantMethod()) - .addMethod(getAnalyzeContentMethod()) - .addMethod(getSuggestArticlesMethod()) - .addMethod(getSuggestFaqAnswersMethod()) - .build(); - } - } - } - return result; - } -} 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 deleted file mode 100644 index 47a24a129..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/session_entity_type.proto") -public final class SessionEntityTypesGrpc { - - private SessionEntityTypesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.SessionEntityTypes"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse> - getListSessionEntityTypesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSessionEntityTypes", - requestType = com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse> - getListSessionEntityTypesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse> - getListSessionEntityTypesMethod; - if ((getListSessionEntityTypesMethod = SessionEntityTypesGrpc.getListSessionEntityTypesMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getListSessionEntityTypesMethod = - SessionEntityTypesGrpc.getListSessionEntityTypesMethod) - == null) { - SessionEntityTypesGrpc.getListSessionEntityTypesMethod = - getListSessionEntityTypesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListSessionEntityTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("ListSessionEntityTypes")) - .build(); - } - } - } - return getListSessionEntityTypesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getGetSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSessionEntityType", - requestType = com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.class, - responseType = com.google.cloud.dialogflow.v2.SessionEntityType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getGetSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getGetSessionEntityTypeMethod; - if ((getGetSessionEntityTypeMethod = SessionEntityTypesGrpc.getGetSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getGetSessionEntityTypeMethod = SessionEntityTypesGrpc.getGetSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getGetSessionEntityTypeMethod = - getGetSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SessionEntityType - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("GetSessionEntityType")) - .build(); - } - } - } - return getGetSessionEntityTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getCreateSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSessionEntityType", - requestType = com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.class, - responseType = com.google.cloud.dialogflow.v2.SessionEntityType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getCreateSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getCreateSessionEntityTypeMethod; - if ((getCreateSessionEntityTypeMethod = SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getCreateSessionEntityTypeMethod = - SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod = - getCreateSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SessionEntityType - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("CreateSessionEntityType")) - .build(); - } - } - } - return getCreateSessionEntityTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getUpdateSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSessionEntityType", - requestType = com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest.class, - responseType = com.google.cloud.dialogflow.v2.SessionEntityType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getUpdateSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType> - getUpdateSessionEntityTypeMethod; - if ((getUpdateSessionEntityTypeMethod = SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getUpdateSessionEntityTypeMethod = - SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod = - getUpdateSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SessionEntityType - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("UpdateSessionEntityType")) - .build(); - } - } - } - return getUpdateSessionEntityTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest, com.google.protobuf.Empty> - getDeleteSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSessionEntityType", - requestType = com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest, com.google.protobuf.Empty> - getDeleteSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest, - com.google.protobuf.Empty> - getDeleteSessionEntityTypeMethod; - if ((getDeleteSessionEntityTypeMethod = SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getDeleteSessionEntityTypeMethod = - SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod = - getDeleteSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("DeleteSessionEntityType")) - .build(); - } - } - } - return getDeleteSessionEntityTypeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SessionEntityTypesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionEntityTypesStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesStub(channel, callOptions); - } - }; - return SessionEntityTypesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SessionEntityTypesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionEntityTypesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesBlockingStub(channel, callOptions); - } - }; - return SessionEntityTypesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SessionEntityTypesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionEntityTypesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesFutureStub(channel, callOptions); - } - }; - return SessionEntityTypesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
-   * 
- */ - public abstract static class SessionEntityTypesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void listSessionEntityTypes( - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSessionEntityTypesMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void getSessionEntityType( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSessionEntityTypeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the session
-     * entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void createSessionEntityType( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSessionEntityTypeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void updateSessionEntityType( - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSessionEntityTypeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void deleteSessionEntityType( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSessionEntityTypeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListSessionEntityTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse>( - this, METHODID_LIST_SESSION_ENTITY_TYPES))) - .addMethod( - getGetSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType>( - this, METHODID_GET_SESSION_ENTITY_TYPE))) - .addMethod( - getCreateSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType>( - this, METHODID_CREATE_SESSION_ENTITY_TYPE))) - .addMethod( - getUpdateSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2.SessionEntityType>( - this, METHODID_UPDATE_SESSION_ENTITY_TYPE))) - .addMethod( - getDeleteSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SESSION_ENTITY_TYPE))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
-   * 
- */ - public static final class SessionEntityTypesStub - extends io.grpc.stub.AbstractAsyncStub { - private SessionEntityTypesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionEntityTypesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void listSessionEntityTypes( - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void getSessionEntityType( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the session
-     * entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void createSessionEntityType( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void updateSessionEntityType( - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void deleteSessionEntityType( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
-   * 
- */ - public static final class SessionEntityTypesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SessionEntityTypesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionEntityTypesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse listSessionEntityTypes( - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the session
-     * entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2.SessionEntityType createSessionEntityType( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2.SessionEntityType updateSessionEntityType( - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.protobuf.Empty deleteSessionEntityType( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
-   * 
- */ - public static final class SessionEntityTypesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SessionEntityTypesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionEntityTypesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse> - listSessionEntityTypes( - com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.SessionEntityType> - getSessionEntityType(com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the session
-     * entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.SessionEntityType> - createSessionEntityType( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.SessionEntityType> - updateSessionEntityType( - com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSessionEntityType( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_SESSION_ENTITY_TYPES = 0; - private static final int METHODID_GET_SESSION_ENTITY_TYPE = 1; - private static final int METHODID_CREATE_SESSION_ENTITY_TYPE = 2; - private static final int METHODID_UPDATE_SESSION_ENTITY_TYPE = 3; - private static final int METHODID_DELETE_SESSION_ENTITY_TYPE = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SessionEntityTypesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SessionEntityTypesImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_SESSION_ENTITY_TYPES: - serviceImpl.listSessionEntityTypes( - (com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse>) - responseObserver); - break; - case METHODID_GET_SESSION_ENTITY_TYPE: - serviceImpl.getSessionEntityType( - (com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SESSION_ENTITY_TYPE: - serviceImpl.createSessionEntityType( - (com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SESSION_ENTITY_TYPE: - serviceImpl.updateSessionEntityType( - (com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SESSION_ENTITY_TYPE: - serviceImpl.deleteSessionEntityType( - (com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SessionEntityTypesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SessionEntityTypesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SessionEntityTypes"); - } - } - - private static final class SessionEntityTypesFileDescriptorSupplier - extends SessionEntityTypesBaseDescriptorSupplier { - SessionEntityTypesFileDescriptorSupplier() {} - } - - private static final class SessionEntityTypesMethodDescriptorSupplier - extends SessionEntityTypesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SessionEntityTypesMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SessionEntityTypesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SessionEntityTypesFileDescriptorSupplier()) - .addMethod(getListSessionEntityTypesMethod()) - .addMethod(getGetSessionEntityTypeMethod()) - .addMethod(getCreateSessionEntityTypeMethod()) - .addMethod(getUpdateSessionEntityTypeMethod()) - .addMethod(getDeleteSessionEntityTypeMethod()) - .build(); - } - } - } - return result; - } -} 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 deleted file mode 100644 index e518ed5ca..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java +++ /dev/null @@ -1,496 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * A service used for session interactions.
- * For more information, see the [API interactions
- * guide](https://cloud.google.com/dialogflow/docs/api-overview).
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/session.proto") -public final class SessionsGrpc { - - private SessionsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Sessions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DetectIntentRequest, - com.google.cloud.dialogflow.v2.DetectIntentResponse> - getDetectIntentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectIntent", - requestType = com.google.cloud.dialogflow.v2.DetectIntentRequest.class, - responseType = com.google.cloud.dialogflow.v2.DetectIntentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DetectIntentRequest, - com.google.cloud.dialogflow.v2.DetectIntentResponse> - getDetectIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DetectIntentRequest, - com.google.cloud.dialogflow.v2.DetectIntentResponse> - getDetectIntentMethod; - if ((getDetectIntentMethod = SessionsGrpc.getDetectIntentMethod) == null) { - synchronized (SessionsGrpc.class) { - if ((getDetectIntentMethod = SessionsGrpc.getDetectIntentMethod) == null) { - SessionsGrpc.getDetectIntentMethod = - getDetectIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DetectIntentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DetectIntentResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SessionsMethodDescriptorSupplier("DetectIntent")) - .build(); - } - } - } - return getDetectIntentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> - getStreamingDetectIntentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingDetectIntent", - requestType = com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest.class, - responseType = com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> - getStreamingDetectIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> - getStreamingDetectIntentMethod; - if ((getStreamingDetectIntentMethod = SessionsGrpc.getStreamingDetectIntentMethod) == null) { - synchronized (SessionsGrpc.class) { - if ((getStreamingDetectIntentMethod = SessionsGrpc.getStreamingDetectIntentMethod) - == null) { - SessionsGrpc.getStreamingDetectIntentMethod = - getStreamingDetectIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "StreamingDetectIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionsMethodDescriptorSupplier("StreamingDetectIntent")) - .build(); - } - } - } - return getStreamingDetectIntentMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SessionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsStub(channel, callOptions); - } - }; - return SessionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SessionsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsBlockingStub(channel, callOptions); - } - }; - return SessionsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SessionsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsFutureStub(channel, callOptions); - } - }; - return SessionsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public abstract static class SessionsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void detectIntent( - com.google.cloud.dialogflow.v2.DetectIntentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectIntentMethod(), responseObserver); - } - - /** - * - * - *
-     * Processes a natural language query in audio format in a streaming fashion
-     * and returns structured, actionable data as a result. This method is only
-     * available via the gRPC API (not REST).
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingDetectIntent( - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingDetectIntentMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getDetectIntentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DetectIntentRequest, - com.google.cloud.dialogflow.v2.DetectIntentResponse>( - this, METHODID_DETECT_INTENT))) - .addMethod( - getStreamingDetectIntentMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse>( - this, METHODID_STREAMING_DETECT_INTENT))) - .build(); - } - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public static final class SessionsStub extends io.grpc.stub.AbstractAsyncStub { - private SessionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void detectIntent( - com.google.cloud.dialogflow.v2.DetectIntentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectIntentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Processes a natural language query in audio format in a streaming fashion
-     * and returns structured, actionable data as a result. This method is only
-     * available via the gRPC API (not REST).
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingDetectIntent( - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse> - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingDetectIntentMethod(), getCallOptions()), - responseObserver); - } - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public static final class SessionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SessionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.cloud.dialogflow.v2.DetectIntentResponse detectIntent( - com.google.cloud.dialogflow.v2.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectIntentMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public static final class SessionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SessionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.DetectIntentResponse> - detectIntent(com.google.cloud.dialogflow.v2.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_DETECT_INTENT = 0; - private static final int METHODID_STREAMING_DETECT_INTENT = 1; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SessionsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SessionsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_DETECT_INTENT: - serviceImpl.detectIntent( - (com.google.cloud.dialogflow.v2.DetectIntentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_DETECT_INTENT: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingDetectIntent( - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class SessionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SessionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.SessionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Sessions"); - } - } - - private static final class SessionsFileDescriptorSupplier extends SessionsBaseDescriptorSupplier { - SessionsFileDescriptorSupplier() {} - } - - private static final class SessionsMethodDescriptorSupplier extends SessionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SessionsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SessionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SessionsFileDescriptorSupplier()) - .addMethod(getDetectIntentMethod()) - .addMethod(getStreamingDetectIntentMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java b/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java deleted file mode 100644 index f91e9bb1a..000000000 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java +++ /dev/null @@ -1,825 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2/version.proto") -public final class VersionsGrpc { - - private VersionsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Versions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListVersionsRequest, - com.google.cloud.dialogflow.v2.ListVersionsResponse> - getListVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVersions", - requestType = com.google.cloud.dialogflow.v2.ListVersionsRequest.class, - responseType = com.google.cloud.dialogflow.v2.ListVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListVersionsRequest, - com.google.cloud.dialogflow.v2.ListVersionsResponse> - getListVersionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListVersionsRequest, - com.google.cloud.dialogflow.v2.ListVersionsResponse> - getListVersionsMethod; - if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { - VersionsGrpc.getListVersionsMethod = - getListVersionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListVersionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListVersionsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("ListVersions")) - .build(); - } - } - } - return getListVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetVersionRequest, com.google.cloud.dialogflow.v2.Version> - getGetVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVersion", - requestType = com.google.cloud.dialogflow.v2.GetVersionRequest.class, - responseType = com.google.cloud.dialogflow.v2.Version.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetVersionRequest, com.google.cloud.dialogflow.v2.Version> - getGetVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetVersionRequest, - com.google.cloud.dialogflow.v2.Version> - getGetVersionMethod; - if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { - VersionsGrpc.getGetVersionMethod = - getGetVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Version.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("GetVersion")) - .build(); - } - } - } - return getGetVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateVersionRequest, - com.google.cloud.dialogflow.v2.Version> - getCreateVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateVersion", - requestType = com.google.cloud.dialogflow.v2.CreateVersionRequest.class, - responseType = com.google.cloud.dialogflow.v2.Version.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateVersionRequest, - com.google.cloud.dialogflow.v2.Version> - getCreateVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateVersionRequest, - com.google.cloud.dialogflow.v2.Version> - getCreateVersionMethod; - if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { - VersionsGrpc.getCreateVersionMethod = - getCreateVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Version.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("CreateVersion")) - .build(); - } - } - } - return getCreateVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateVersionRequest, - com.google.cloud.dialogflow.v2.Version> - getUpdateVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVersion", - requestType = com.google.cloud.dialogflow.v2.UpdateVersionRequest.class, - responseType = com.google.cloud.dialogflow.v2.Version.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateVersionRequest, - com.google.cloud.dialogflow.v2.Version> - getUpdateVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateVersionRequest, - com.google.cloud.dialogflow.v2.Version> - getUpdateVersionMethod; - if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { - VersionsGrpc.getUpdateVersionMethod = - getUpdateVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Version.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("UpdateVersion")) - .build(); - } - } - } - return getUpdateVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteVersionRequest, com.google.protobuf.Empty> - getDeleteVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteVersion", - requestType = com.google.cloud.dialogflow.v2.DeleteVersionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteVersionRequest, com.google.protobuf.Empty> - getDeleteVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteVersionRequest, com.google.protobuf.Empty> - getDeleteVersionMethod; - if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { - VersionsGrpc.getDeleteVersionMethod = - getDeleteVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("DeleteVersion")) - .build(); - } - } - } - return getDeleteVersionMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static VersionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VersionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsStub(channel, callOptions); - } - }; - return VersionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static VersionsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VersionsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsBlockingStub(channel, callOptions); - } - }; - return VersionsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static VersionsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VersionsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsFutureStub(channel, callOptions); - } - }; - return VersionsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
-   * 
- */ - public abstract static class VersionsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public void listVersions( - com.google.cloud.dialogflow.v2.ListVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVersionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public void getVersion( - com.google.cloud.dialogflow.v2.GetVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public void createVersion( - com.google.cloud.dialogflow.v2.CreateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public void updateVersion( - com.google.cloud.dialogflow.v2.UpdateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public void deleteVersion( - com.google.cloud.dialogflow.v2.DeleteVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteVersionMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListVersionsRequest, - com.google.cloud.dialogflow.v2.ListVersionsResponse>( - this, METHODID_LIST_VERSIONS))) - .addMethod( - getGetVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetVersionRequest, - com.google.cloud.dialogflow.v2.Version>(this, METHODID_GET_VERSION))) - .addMethod( - getCreateVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateVersionRequest, - com.google.cloud.dialogflow.v2.Version>(this, METHODID_CREATE_VERSION))) - .addMethod( - getUpdateVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateVersionRequest, - com.google.cloud.dialogflow.v2.Version>(this, METHODID_UPDATE_VERSION))) - .addMethod( - getDeleteVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteVersionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_VERSION))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
-   * 
- */ - public static final class VersionsStub extends io.grpc.stub.AbstractAsyncStub { - private VersionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VersionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public void listVersions( - com.google.cloud.dialogflow.v2.ListVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVersionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public void getVersion( - com.google.cloud.dialogflow.v2.GetVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public void createVersion( - com.google.cloud.dialogflow.v2.CreateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public void updateVersion( - com.google.cloud.dialogflow.v2.UpdateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public void deleteVersion( - com.google.cloud.dialogflow.v2.DeleteVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
-   * 
- */ - public static final class VersionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private VersionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VersionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public com.google.cloud.dialogflow.v2.ListVersionsResponse listVersions( - com.google.cloud.dialogflow.v2.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVersionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Version getVersion( - com.google.cloud.dialogflow.v2.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Version createVersion( - com.google.cloud.dialogflow.v2.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public com.google.cloud.dialogflow.v2.Version updateVersion( - com.google.cloud.dialogflow.v2.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public com.google.protobuf.Empty deleteVersion( - com.google.cloud.dialogflow.v2.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteVersionMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
-   * 
- */ - public static final class VersionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private VersionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListVersionsResponse> - listVersions(com.google.cloud.dialogflow.v2.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVersionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Version> - getVersion(com.google.cloud.dialogflow.v2.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Version> - createVersion(com.google.cloud.dialogflow.v2.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Version> - updateVersion(com.google.cloud.dialogflow.v2.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteVersion(com.google.cloud.dialogflow.v2.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_VERSIONS = 0; - private static final int METHODID_GET_VERSION = 1; - private static final int METHODID_CREATE_VERSION = 2; - private static final int METHODID_UPDATE_VERSION = 3; - private static final int METHODID_DELETE_VERSION = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final VersionsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(VersionsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_VERSIONS: - serviceImpl.listVersions( - (com.google.cloud.dialogflow.v2.ListVersionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_VERSION: - serviceImpl.getVersion( - (com.google.cloud.dialogflow.v2.GetVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_VERSION: - serviceImpl.createVersion( - (com.google.cloud.dialogflow.v2.CreateVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_VERSION: - serviceImpl.updateVersion( - (com.google.cloud.dialogflow.v2.UpdateVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_VERSION: - serviceImpl.deleteVersion( - (com.google.cloud.dialogflow.v2.DeleteVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class VersionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - VersionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2.VersionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Versions"); - } - } - - private static final class VersionsFileDescriptorSupplier extends VersionsBaseDescriptorSupplier { - VersionsFileDescriptorSupplier() {} - } - - private static final class VersionsMethodDescriptorSupplier extends VersionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - VersionsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (VersionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new VersionsFileDescriptorSupplier()) - .addMethod(getListVersionsMethod()) - .addMethod(getGetVersionMethod()) - .addMethod(getCreateVersionMethod()) - .addMethod(getUpdateVersionMethod()) - .addMethod(getDeleteVersionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java deleted file mode 100644 index 3fc7d3d2a..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsGrpc.java +++ /dev/null @@ -1,617 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [AnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecord].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/answer_record.proto") -public final class AnswerRecordsGrpc { - - private AnswerRecordsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.AnswerRecords"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - getGetAnswerRecordMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnswerRecord", - requestType = com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.AnswerRecord.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - getGetAnswerRecordMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - getGetAnswerRecordMethod; - if ((getGetAnswerRecordMethod = AnswerRecordsGrpc.getGetAnswerRecordMethod) == null) { - synchronized (AnswerRecordsGrpc.class) { - if ((getGetAnswerRecordMethod = AnswerRecordsGrpc.getGetAnswerRecordMethod) == null) { - AnswerRecordsGrpc.getGetAnswerRecordMethod = - getGetAnswerRecordMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnswerRecord")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.AnswerRecord - .getDefaultInstance())) - .setSchemaDescriptor( - new AnswerRecordsMethodDescriptorSupplier("GetAnswerRecord")) - .build(); - } - } - } - return getGetAnswerRecordMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse> - getListAnswerRecordsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAnswerRecords", - requestType = com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse> - getListAnswerRecordsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse> - getListAnswerRecordsMethod; - if ((getListAnswerRecordsMethod = AnswerRecordsGrpc.getListAnswerRecordsMethod) == null) { - synchronized (AnswerRecordsGrpc.class) { - if ((getListAnswerRecordsMethod = AnswerRecordsGrpc.getListAnswerRecordsMethod) == null) { - AnswerRecordsGrpc.getListAnswerRecordsMethod = - getListAnswerRecordsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAnswerRecords")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnswerRecordsMethodDescriptorSupplier("ListAnswerRecords")) - .build(); - } - } - } - return getListAnswerRecordsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - getUpdateAnswerRecordMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAnswerRecord", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.AnswerRecord.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - getUpdateAnswerRecordMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - getUpdateAnswerRecordMethod; - if ((getUpdateAnswerRecordMethod = AnswerRecordsGrpc.getUpdateAnswerRecordMethod) == null) { - synchronized (AnswerRecordsGrpc.class) { - if ((getUpdateAnswerRecordMethod = AnswerRecordsGrpc.getUpdateAnswerRecordMethod) == null) { - AnswerRecordsGrpc.getUpdateAnswerRecordMethod = - getUpdateAnswerRecordMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAnswerRecord")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.AnswerRecord - .getDefaultInstance())) - .setSchemaDescriptor( - new AnswerRecordsMethodDescriptorSupplier("UpdateAnswerRecord")) - .build(); - } - } - } - return getUpdateAnswerRecordMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AnswerRecordsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnswerRecordsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsStub(channel, callOptions); - } - }; - return AnswerRecordsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnswerRecordsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnswerRecordsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsBlockingStub(channel, callOptions); - } - }; - return AnswerRecordsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AnswerRecordsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnswerRecordsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsFutureStub(channel, callOptions); - } - }; - return AnswerRecordsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecord].
-   * 
- */ - public abstract static class AnswerRecordsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Deprecated.
-     * Retrieves a specific answer record.
-     * 
- */ - @java.lang.Deprecated - public void getAnswerRecord( - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAnswerRecordMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public void listAnswerRecords( - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAnswerRecordsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public void updateAnswerRecord( - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAnswerRecordMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetAnswerRecordMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord>( - this, METHODID_GET_ANSWER_RECORD))) - .addMethod( - getListAnswerRecordsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest, - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse>( - this, METHODID_LIST_ANSWER_RECORDS))) - .addMethod( - getUpdateAnswerRecordMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest, - com.google.cloud.dialogflow.v2beta1.AnswerRecord>( - this, METHODID_UPDATE_ANSWER_RECORD))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecord].
-   * 
- */ - public static final class AnswerRecordsStub - extends io.grpc.stub.AbstractAsyncStub { - private AnswerRecordsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnswerRecordsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsStub(channel, callOptions); - } - - /** - * - * - *
-     * Deprecated.
-     * Retrieves a specific answer record.
-     * 
- */ - @java.lang.Deprecated - public void getAnswerRecord( - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnswerRecordMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public void listAnswerRecords( - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public void updateAnswerRecord( - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecord].
-   * 
- */ - public static final class AnswerRecordsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AnswerRecordsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnswerRecordsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Deprecated.
-     * Retrieves a specific answer record.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.dialogflow.v2beta1.AnswerRecord getAnswerRecord( - com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnswerRecordMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse listAnswerRecords( - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.AnswerRecord updateAnswerRecord( - com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecord].
-   * 
- */ - public static final class AnswerRecordsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AnswerRecordsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnswerRecordsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnswerRecordsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Deprecated.
-     * Retrieves a specific answer record.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - getAnswerRecord(com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnswerRecordMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of all answer records in the specified project in reverse
-     * chronological order.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse> - listAnswerRecords(com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified answer record.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.AnswerRecord> - updateAnswerRecord(com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_ANSWER_RECORD = 0; - private static final int METHODID_LIST_ANSWER_RECORDS = 1; - private static final int METHODID_UPDATE_ANSWER_RECORD = 2; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AnswerRecordsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AnswerRecordsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_ANSWER_RECORD: - serviceImpl.getAnswerRecord( - (com.google.cloud.dialogflow.v2beta1.GetAnswerRecordRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ANSWER_RECORDS: - serviceImpl.listAnswerRecords( - (com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse>) - responseObserver); - break; - case METHODID_UPDATE_ANSWER_RECORD: - serviceImpl.updateAnswerRecord( - (com.google.cloud.dialogflow.v2beta1.UpdateAnswerRecordRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AnswerRecordsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AnswerRecordsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.AnswerRecordsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AnswerRecords"); - } - } - - private static final class AnswerRecordsFileDescriptorSupplier - extends AnswerRecordsBaseDescriptorSupplier { - AnswerRecordsFileDescriptorSupplier() {} - } - - private static final class AnswerRecordsMethodDescriptorSupplier - extends AnswerRecordsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AnswerRecordsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AnswerRecordsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AnswerRecordsFileDescriptorSupplier()) - .addMethod(getGetAnswerRecordMethod()) - .addMethod(getListAnswerRecordsMethod()) - .addMethod(getUpdateAnswerRecordMethod()) - .build(); - } - } - } - return result; - } -} 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 deleted file mode 100644 index d088c006d..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsGrpc.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Contexts][google.cloud.dialogflow.v2beta1.Context].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/context.proto") -public final class ContextsGrpc { - - private ContextsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Contexts"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListContextsRequest, - com.google.cloud.dialogflow.v2beta1.ListContextsResponse> - getListContextsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListContexts", - requestType = com.google.cloud.dialogflow.v2beta1.ListContextsRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListContextsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListContextsRequest, - com.google.cloud.dialogflow.v2beta1.ListContextsResponse> - getListContextsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListContextsRequest, - com.google.cloud.dialogflow.v2beta1.ListContextsResponse> - getListContextsMethod; - if ((getListContextsMethod = ContextsGrpc.getListContextsMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getListContextsMethod = ContextsGrpc.getListContextsMethod) == null) { - ContextsGrpc.getListContextsMethod = - getListContextsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContexts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListContextsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListContextsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("ListContexts")) - .build(); - } - } - } - return getListContextsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getGetContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetContext", - requestType = com.google.cloud.dialogflow.v2beta1.GetContextRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Context.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getGetContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getGetContextMethod; - if ((getGetContextMethod = ContextsGrpc.getGetContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getGetContextMethod = ContextsGrpc.getGetContextMethod) == null) { - ContextsGrpc.getGetContextMethod = - getGetContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Context.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("GetContext")) - .build(); - } - } - } - return getGetContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getCreateContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateContext", - requestType = com.google.cloud.dialogflow.v2beta1.CreateContextRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Context.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getCreateContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getCreateContextMethod; - if ((getCreateContextMethod = ContextsGrpc.getCreateContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getCreateContextMethod = ContextsGrpc.getCreateContextMethod) == null) { - ContextsGrpc.getCreateContextMethod = - getCreateContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Context.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("CreateContext")) - .build(); - } - } - } - return getCreateContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getUpdateContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateContext", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateContextRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Context.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getUpdateContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context> - getUpdateContextMethod; - if ((getUpdateContextMethod = ContextsGrpc.getUpdateContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getUpdateContextMethod = ContextsGrpc.getUpdateContextMethod) == null) { - ContextsGrpc.getUpdateContextMethod = - getUpdateContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Context.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("UpdateContext")) - .build(); - } - } - } - return getUpdateContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest, com.google.protobuf.Empty> - getDeleteContextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteContext", - requestType = com.google.cloud.dialogflow.v2beta1.DeleteContextRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest, com.google.protobuf.Empty> - getDeleteContextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest, com.google.protobuf.Empty> - getDeleteContextMethod; - if ((getDeleteContextMethod = ContextsGrpc.getDeleteContextMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getDeleteContextMethod = ContextsGrpc.getDeleteContextMethod) == null) { - ContextsGrpc.getDeleteContextMethod = - getDeleteContextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContext")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("DeleteContext")) - .build(); - } - } - } - return getDeleteContextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest, com.google.protobuf.Empty> - getDeleteAllContextsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAllContexts", - requestType = com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest, com.google.protobuf.Empty> - getDeleteAllContextsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest, com.google.protobuf.Empty> - getDeleteAllContextsMethod; - if ((getDeleteAllContextsMethod = ContextsGrpc.getDeleteAllContextsMethod) == null) { - synchronized (ContextsGrpc.class) { - if ((getDeleteAllContextsMethod = ContextsGrpc.getDeleteAllContextsMethod) == null) { - ContextsGrpc.getDeleteAllContextsMethod = - getDeleteAllContextsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAllContexts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ContextsMethodDescriptorSupplier("DeleteAllContexts")) - .build(); - } - } - } - return getDeleteAllContextsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ContextsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ContextsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsStub(channel, callOptions); - } - }; - return ContextsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ContextsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ContextsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsBlockingStub(channel, callOptions); - } - }; - return ContextsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ContextsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ContextsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsFutureStub(channel, callOptions); - } - }; - return ContextsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2beta1.Context].
-   * 
- */ - public abstract static class ContextsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public void listContexts( - com.google.cloud.dialogflow.v2beta1.ListContextsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListContextsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public void getContext( - com.google.cloud.dialogflow.v2beta1.GetContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public void createContext( - com.google.cloud.dialogflow.v2beta1.CreateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public void updateContext( - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public void deleteContext( - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteContextMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public void deleteAllContexts( - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAllContextsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListContextsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListContextsRequest, - com.google.cloud.dialogflow.v2beta1.ListContextsResponse>( - this, METHODID_LIST_CONTEXTS))) - .addMethod( - getGetContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetContextRequest, - com.google.cloud.dialogflow.v2beta1.Context>(this, METHODID_GET_CONTEXT))) - .addMethod( - getCreateContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context>(this, METHODID_CREATE_CONTEXT))) - .addMethod( - getUpdateContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest, - com.google.cloud.dialogflow.v2beta1.Context>(this, METHODID_UPDATE_CONTEXT))) - .addMethod( - getDeleteContextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONTEXT))) - .addMethod( - getDeleteAllContextsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ALL_CONTEXTS))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2beta1.Context].
-   * 
- */ - public static final class ContextsStub extends io.grpc.stub.AbstractAsyncStub { - private ContextsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ContextsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public void listContexts( - com.google.cloud.dialogflow.v2beta1.ListContextsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListContextsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public void getContext( - com.google.cloud.dialogflow.v2beta1.GetContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public void createContext( - com.google.cloud.dialogflow.v2beta1.CreateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateContextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public void updateContext( - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateContextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public void deleteContext( - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteContextMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public void deleteAllContexts( - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2beta1.Context].
-   * 
- */ - public static final class ContextsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ContextsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ContextsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListContextsResponse listContexts( - com.google.cloud.dialogflow.v2beta1.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListContextsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Context getContext( - com.google.cloud.dialogflow.v2beta1.GetContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Context createContext( - com.google.cloud.dialogflow.v2beta1.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Context updateContext( - com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public com.google.protobuf.Empty deleteContext( - com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteContextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public com.google.protobuf.Empty deleteAllContexts( - com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Contexts][google.cloud.dialogflow.v2beta1.Context].
-   * 
- */ - public static final class ContextsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ContextsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ContextsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ContextsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all contexts in the specified session.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListContextsResponse> - listContexts(com.google.cloud.dialogflow.v2beta1.ListContextsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListContextsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Context> - getContext(com.google.cloud.dialogflow.v2beta1.GetContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a context.
-     * If the specified context already exists, overrides the context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Context> - createContext(com.google.cloud.dialogflow.v2beta1.CreateContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Context> - updateContext(com.google.cloud.dialogflow.v2beta1.UpdateContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified context.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteContext(com.google.cloud.dialogflow.v2beta1.DeleteContextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes all active contexts in the specified session.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAllContexts(com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONTEXTS = 0; - private static final int METHODID_GET_CONTEXT = 1; - private static final int METHODID_CREATE_CONTEXT = 2; - private static final int METHODID_UPDATE_CONTEXT = 3; - private static final int METHODID_DELETE_CONTEXT = 4; - private static final int METHODID_DELETE_ALL_CONTEXTS = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ContextsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ContextsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONTEXTS: - serviceImpl.listContexts( - (com.google.cloud.dialogflow.v2beta1.ListContextsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListContextsResponse>) - responseObserver); - break; - case METHODID_GET_CONTEXT: - serviceImpl.getContext( - (com.google.cloud.dialogflow.v2beta1.GetContextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CONTEXT: - serviceImpl.createContext( - (com.google.cloud.dialogflow.v2beta1.CreateContextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CONTEXT: - serviceImpl.updateContext( - (com.google.cloud.dialogflow.v2beta1.UpdateContextRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONTEXT: - serviceImpl.deleteContext( - (com.google.cloud.dialogflow.v2beta1.DeleteContextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ALL_CONTEXTS: - serviceImpl.deleteAllContexts( - (com.google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ContextsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ContextsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ContextProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Contexts"); - } - } - - private static final class ContextsFileDescriptorSupplier extends ContextsBaseDescriptorSupplier { - ContextsFileDescriptorSupplier() {} - } - - private static final class ContextsMethodDescriptorSupplier extends ContextsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ContextsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ContextsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ContextsFileDescriptorSupplier()) - .addMethod(getListContextsMethod()) - .addMethod(getGetContextMethod()) - .addMethod(getCreateContextMethod()) - .addMethod(getUpdateContextMethod()) - .addMethod(getDeleteContextMethod()) - .addMethod(getDeleteAllContextsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java deleted file mode 100644 index a66c4b407..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesGrpc.java +++ /dev/null @@ -1,905 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/conversation_profile.proto") -public final class ConversationProfilesGrpc { - - private ConversationProfilesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.ConversationProfiles"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> - getListConversationProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConversationProfiles", - requestType = com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> - getListConversationProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> - getListConversationProfilesMethod; - if ((getListConversationProfilesMethod = - ConversationProfilesGrpc.getListConversationProfilesMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getListConversationProfilesMethod = - ConversationProfilesGrpc.getListConversationProfilesMethod) - == null) { - ConversationProfilesGrpc.getListConversationProfilesMethod = - getListConversationProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListConversationProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "ListConversationProfiles")) - .build(); - } - } - } - return getListConversationProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getGetConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConversationProfile", - requestType = com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ConversationProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getGetConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getGetConversationProfileMethod; - if ((getGetConversationProfileMethod = ConversationProfilesGrpc.getGetConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getGetConversationProfileMethod = - ConversationProfilesGrpc.getGetConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getGetConversationProfileMethod = - getGetConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ConversationProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "GetConversationProfile")) - .build(); - } - } - } - return getGetConversationProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getCreateConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConversationProfile", - requestType = com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ConversationProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getCreateConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getCreateConversationProfileMethod; - if ((getCreateConversationProfileMethod = - ConversationProfilesGrpc.getCreateConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getCreateConversationProfileMethod = - ConversationProfilesGrpc.getCreateConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getCreateConversationProfileMethod = - getCreateConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ConversationProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "CreateConversationProfile")) - .build(); - } - } - } - return getCreateConversationProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getUpdateConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConversationProfile", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ConversationProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getUpdateConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getUpdateConversationProfileMethod; - if ((getUpdateConversationProfileMethod = - ConversationProfilesGrpc.getUpdateConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getUpdateConversationProfileMethod = - ConversationProfilesGrpc.getUpdateConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getUpdateConversationProfileMethod = - getUpdateConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ConversationProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "UpdateConversationProfile")) - .build(); - } - } - } - return getUpdateConversationProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest, - com.google.protobuf.Empty> - getDeleteConversationProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConversationProfile", - requestType = com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest, - com.google.protobuf.Empty> - getDeleteConversationProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest, - com.google.protobuf.Empty> - getDeleteConversationProfileMethod; - if ((getDeleteConversationProfileMethod = - ConversationProfilesGrpc.getDeleteConversationProfileMethod) - == null) { - synchronized (ConversationProfilesGrpc.class) { - if ((getDeleteConversationProfileMethod = - ConversationProfilesGrpc.getDeleteConversationProfileMethod) - == null) { - ConversationProfilesGrpc.getDeleteConversationProfileMethod = - getDeleteConversationProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteConversationProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConversationProfilesMethodDescriptorSupplier( - "DeleteConversationProfile")) - .build(); - } - } - } - return getDeleteConversationProfileMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConversationProfilesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationProfilesStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesStub(channel, callOptions); - } - }; - return ConversationProfilesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConversationProfilesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationProfilesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesBlockingStub(channel, callOptions); - } - }; - return ConversationProfilesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConversationProfilesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationProfilesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesFutureStub(channel, callOptions); - } - }; - return ConversationProfilesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile].
-   * 
- */ - public abstract static class ConversationProfilesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public void listConversationProfiles( - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConversationProfilesMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public void getConversationProfile( - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConversationProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void createConversationProfile( - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversationProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void updateConversationProfile( - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConversationProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public void deleteConversationProfile( - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConversationProfileMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListConversationProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse>( - this, METHODID_LIST_CONVERSATION_PROFILES))) - .addMethod( - getGetConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile>( - this, METHODID_GET_CONVERSATION_PROFILE))) - .addMethod( - getCreateConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile>( - this, METHODID_CREATE_CONVERSATION_PROFILE))) - .addMethod( - getUpdateConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest, - com.google.cloud.dialogflow.v2beta1.ConversationProfile>( - this, METHODID_UPDATE_CONVERSATION_PROFILE))) - .addMethod( - getDeleteConversationProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONVERSATION_PROFILE))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile].
-   * 
- */ - public static final class ConversationProfilesStub - extends io.grpc.stub.AbstractAsyncStub { - private ConversationProfilesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationProfilesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public void listConversationProfiles( - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public void getConversationProfile( - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void createConversationProfile( - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public void updateConversationProfile( - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public void deleteConversationProfile( - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile].
-   * 
- */ - public static final class ConversationProfilesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConversationProfilesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationProfilesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse - listConversationProfiles( - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversationProfilesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ConversationProfile getConversationProfile( - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversationProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ConversationProfile createConversationProfile( - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ConversationProfile updateConversationProfile( - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public com.google.protobuf.Empty deleteConversationProfile( - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile].
-   * 
- */ - public static final class ConversationProfilesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConversationProfilesFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationProfilesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationProfilesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all conversation profiles in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse> - listConversationProfiles( - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified conversation profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - getConversationProfile( - com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a conversation profile in the specified project.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - createConversationProfile( - com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified conversation profile.
-     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
-     * aren't populated in the response. You can retrieve them via
-     * [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ConversationProfile> - updateConversationProfile( - com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified conversation profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConversationProfile( - com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONVERSATION_PROFILES = 0; - private static final int METHODID_GET_CONVERSATION_PROFILE = 1; - private static final int METHODID_CREATE_CONVERSATION_PROFILE = 2; - private static final int METHODID_UPDATE_CONVERSATION_PROFILE = 3; - private static final int METHODID_DELETE_CONVERSATION_PROFILE = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ConversationProfilesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConversationProfilesImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONVERSATION_PROFILES: - serviceImpl.listConversationProfiles( - (com.google.cloud.dialogflow.v2beta1.ListConversationProfilesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse>) - responseObserver); - break; - case METHODID_GET_CONVERSATION_PROFILE: - serviceImpl.getConversationProfile( - (com.google.cloud.dialogflow.v2beta1.GetConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CONVERSATION_PROFILE: - serviceImpl.createConversationProfile( - (com.google.cloud.dialogflow.v2beta1.CreateConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CONVERSATION_PROFILE: - serviceImpl.updateConversationProfile( - (com.google.cloud.dialogflow.v2beta1.UpdateConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONVERSATION_PROFILE: - serviceImpl.deleteConversationProfile( - (com.google.cloud.dialogflow.v2beta1.DeleteConversationProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ConversationProfilesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConversationProfilesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConversationProfiles"); - } - } - - private static final class ConversationProfilesFileDescriptorSupplier - extends ConversationProfilesBaseDescriptorSupplier { - ConversationProfilesFileDescriptorSupplier() {} - } - - private static final class ConversationProfilesMethodDescriptorSupplier - extends ConversationProfilesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConversationProfilesMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ConversationProfilesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConversationProfilesFileDescriptorSupplier()) - .addMethod(getListConversationProfilesMethod()) - .addMethod(getGetConversationProfileMethod()) - .addMethod(getCreateConversationProfileMethod()) - .addMethod(getUpdateConversationProfileMethod()) - .addMethod(getDeleteConversationProfileMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java deleted file mode 100644 index 283e061e8..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsGrpc.java +++ /dev/null @@ -1,1052 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/conversation.proto") -public final class ConversationsGrpc { - - private ConversationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Conversations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getCreateConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConversation", - requestType = com.google.cloud.dialogflow.v2beta1.CreateConversationRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getCreateConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getCreateConversationMethod; - if ((getCreateConversationMethod = ConversationsGrpc.getCreateConversationMethod) == null) { - synchronized (ConversationsGrpc.class) { - if ((getCreateConversationMethod = ConversationsGrpc.getCreateConversationMethod) == null) { - ConversationsGrpc.getCreateConversationMethod = - getCreateConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("CreateConversation")) - .build(); - } - } - } - return getCreateConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationsResponse> - getListConversationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConversations", - requestType = com.google.cloud.dialogflow.v2beta1.ListConversationsRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListConversationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationsResponse> - getListConversationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationsResponse> - getListConversationsMethod; - if ((getListConversationsMethod = ConversationsGrpc.getListConversationsMethod) == null) { - synchronized (ConversationsGrpc.class) { - if ((getListConversationsMethod = ConversationsGrpc.getListConversationsMethod) == null) { - ConversationsGrpc.getListConversationsMethod = - getListConversationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListConversationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("ListConversations")) - .build(); - } - } - } - return getListConversationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getGetConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConversation", - requestType = com.google.cloud.dialogflow.v2beta1.GetConversationRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getGetConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getGetConversationMethod; - if ((getGetConversationMethod = ConversationsGrpc.getGetConversationMethod) == null) { - synchronized (ConversationsGrpc.class) { - if ((getGetConversationMethod = ConversationsGrpc.getGetConversationMethod) == null) { - ConversationsGrpc.getGetConversationMethod = - getGetConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("GetConversation")) - .build(); - } - } - } - return getGetConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getCompleteConversationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CompleteConversation", - requestType = com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Conversation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getCompleteConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation> - getCompleteConversationMethod; - if ((getCompleteConversationMethod = ConversationsGrpc.getCompleteConversationMethod) == null) { - synchronized (ConversationsGrpc.class) { - if ((getCompleteConversationMethod = ConversationsGrpc.getCompleteConversationMethod) - == null) { - ConversationsGrpc.getCompleteConversationMethod = - getCompleteConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CompleteConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Conversation - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("CompleteConversation")) - .build(); - } - } - } - return getCompleteConversationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest, - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse> - getBatchCreateMessagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCreateMessages", - requestType = com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest, - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse> - getBatchCreateMessagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest, - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse> - getBatchCreateMessagesMethod; - if ((getBatchCreateMessagesMethod = ConversationsGrpc.getBatchCreateMessagesMethod) == null) { - synchronized (ConversationsGrpc.class) { - if ((getBatchCreateMessagesMethod = ConversationsGrpc.getBatchCreateMessagesMethod) - == null) { - ConversationsGrpc.getBatchCreateMessagesMethod = - getBatchCreateMessagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchCreateMessages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("BatchCreateMessages")) - .build(); - } - } - } - return getBatchCreateMessagesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest, - com.google.cloud.dialogflow.v2beta1.ListMessagesResponse> - getListMessagesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMessages", - requestType = com.google.cloud.dialogflow.v2beta1.ListMessagesRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListMessagesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest, - com.google.cloud.dialogflow.v2beta1.ListMessagesResponse> - getListMessagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest, - com.google.cloud.dialogflow.v2beta1.ListMessagesResponse> - getListMessagesMethod; - if ((getListMessagesMethod = ConversationsGrpc.getListMessagesMethod) == null) { - synchronized (ConversationsGrpc.class) { - if ((getListMessagesMethod = ConversationsGrpc.getListMessagesMethod) == null) { - ConversationsGrpc.getListMessagesMethod = - getListMessagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMessages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListMessagesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("ListMessages")) - .build(); - } - } - } - return getListMessagesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConversationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsStub(channel, callOptions); - } - }; - return ConversationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConversationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsBlockingStub(channel, callOptions); - } - }; - return ConversationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConversationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsFutureStub(channel, callOptions); - } - }; - return ConversationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
-   * 
- */ - public abstract static class ConversationsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new conversation. Conversations are auto-completed after 24
-     * hours.
-     * Conversation Lifecycle:
-     * There are two stages during a conversation: Automated Agent Stage and
-     * Assist Stage.
-     * For Automated Agent Stage, there will be a dialogflow agent responding to
-     * user queries.
-     * For Assist Stage, there's no dialogflow agent responding to user queries.
-     * But we will provide suggestions which are generated from conversation.
-     * If [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile] is configured for a dialogflow
-     * agent, conversation will start from `Automated Agent Stage`, otherwise, it
-     * will start from `Assist Stage`. And during `Automated Agent Stage`, once an
-     * [Intent][google.cloud.dialogflow.v2beta1.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff] is triggered, conversation
-     * will transfer to Assist Stage.
-     * 
- */ - public void createConversation( - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of all conversations in the specified project.
-     * 
- */ - public void listConversations( - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConversationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specific conversation.
-     * 
- */ - public void getConversation( - com.google.cloud.dialogflow.v2beta1.GetConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Completes the specified conversation. Finished conversations are purged
-     * from the database after 30 days.
-     * 
- */ - public void completeConversation( - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteConversationMethod(), responseObserver); - } - - /** - * - * - *
-     * Batch ingests messages to conversation. Customers can use this RPC to
-     * ingest historical messages to conversation.
-     * 
- */ - public void batchCreateMessages( - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateMessagesMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists messages that belong to a given conversation.
-     * `messages` are ordered by `create_time` in descending order. To fetch
-     * updates without duplication, send request with filter
-     * `create_time_epoch_microseconds >
-     * [first item's create_time of previous request]` and empty page_token.
-     * 
- */ - public void listMessages( - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMessagesMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation>( - this, METHODID_CREATE_CONVERSATION))) - .addMethod( - getListConversationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest, - com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>( - this, METHODID_LIST_CONVERSATIONS))) - .addMethod( - getGetConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation>( - this, METHODID_GET_CONVERSATION))) - .addMethod( - getCompleteConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest, - com.google.cloud.dialogflow.v2beta1.Conversation>( - this, METHODID_COMPLETE_CONVERSATION))) - .addMethod( - getBatchCreateMessagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest, - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>( - this, METHODID_BATCH_CREATE_MESSAGES))) - .addMethod( - getListMessagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest, - com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>( - this, METHODID_LIST_MESSAGES))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
-   * 
- */ - public static final class ConversationsStub - extends io.grpc.stub.AbstractAsyncStub { - private ConversationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new conversation. Conversations are auto-completed after 24
-     * hours.
-     * Conversation Lifecycle:
-     * There are two stages during a conversation: Automated Agent Stage and
-     * Assist Stage.
-     * For Automated Agent Stage, there will be a dialogflow agent responding to
-     * user queries.
-     * For Assist Stage, there's no dialogflow agent responding to user queries.
-     * But we will provide suggestions which are generated from conversation.
-     * If [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile] is configured for a dialogflow
-     * agent, conversation will start from `Automated Agent Stage`, otherwise, it
-     * will start from `Assist Stage`. And during `Automated Agent Stage`, once an
-     * [Intent][google.cloud.dialogflow.v2beta1.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff] is triggered, conversation
-     * will transfer to Assist Stage.
-     * 
- */ - public void createConversation( - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of all conversations in the specified project.
-     * 
- */ - public void listConversations( - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specific conversation.
-     * 
- */ - public void getConversation( - com.google.cloud.dialogflow.v2beta1.GetConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Completes the specified conversation. Finished conversations are purged
-     * from the database after 30 days.
-     * 
- */ - public void completeConversation( - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Batch ingests messages to conversation. Customers can use this RPC to
-     * ingest historical messages to conversation.
-     * 
- */ - public void batchCreateMessages( - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateMessagesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists messages that belong to a given conversation.
-     * `messages` are ordered by `create_time` in descending order. To fetch
-     * updates without duplication, send request with filter
-     * `create_time_epoch_microseconds >
-     * [first item's create_time of previous request]` and empty page_token.
-     * 
- */ - public void listMessages( - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMessagesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
-   * 
- */ - public static final class ConversationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConversationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new conversation. Conversations are auto-completed after 24
-     * hours.
-     * Conversation Lifecycle:
-     * There are two stages during a conversation: Automated Agent Stage and
-     * Assist Stage.
-     * For Automated Agent Stage, there will be a dialogflow agent responding to
-     * user queries.
-     * For Assist Stage, there's no dialogflow agent responding to user queries.
-     * But we will provide suggestions which are generated from conversation.
-     * If [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile] is configured for a dialogflow
-     * agent, conversation will start from `Automated Agent Stage`, otherwise, it
-     * will start from `Assist Stage`. And during `Automated Agent Stage`, once an
-     * [Intent][google.cloud.dialogflow.v2beta1.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff] is triggered, conversation
-     * will transfer to Assist Stage.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Conversation createConversation( - com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of all conversations in the specified project.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListConversationsResponse listConversations( - com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specific conversation.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Conversation getConversation( - com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Completes the specified conversation. Finished conversations are purged
-     * from the database after 30 days.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Conversation completeConversation( - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCompleteConversationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Batch ingests messages to conversation. Customers can use this RPC to
-     * ingest historical messages to conversation.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse batchCreateMessages( - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCreateMessagesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists messages that belong to a given conversation.
-     * `messages` are ordered by `create_time` in descending order. To fetch
-     * updates without duplication, send request with filter
-     * `create_time_epoch_microseconds >
-     * [first item's create_time of previous request]` and empty page_token.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListMessagesResponse listMessages( - com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMessagesMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Conversations][google.cloud.dialogflow.v2beta1.Conversation].
-   * 
- */ - public static final class ConversationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConversationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConversationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new conversation. Conversations are auto-completed after 24
-     * hours.
-     * Conversation Lifecycle:
-     * There are two stages during a conversation: Automated Agent Stage and
-     * Assist Stage.
-     * For Automated Agent Stage, there will be a dialogflow agent responding to
-     * user queries.
-     * For Assist Stage, there's no dialogflow agent responding to user queries.
-     * But we will provide suggestions which are generated from conversation.
-     * If [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile] is configured for a dialogflow
-     * agent, conversation will start from `Automated Agent Stage`, otherwise, it
-     * will start from `Assist Stage`. And during `Automated Agent Stage`, once an
-     * [Intent][google.cloud.dialogflow.v2beta1.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff] is triggered, conversation
-     * will transfer to Assist Stage.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Conversation> - createConversation(com.google.cloud.dialogflow.v2beta1.CreateConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of all conversations in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListConversationsResponse> - listConversations(com.google.cloud.dialogflow.v2beta1.ListConversationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specific conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Conversation> - getConversation(com.google.cloud.dialogflow.v2beta1.GetConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Completes the specified conversation. Finished conversations are purged
-     * from the database after 30 days.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Conversation> - completeConversation( - com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Batch ingests messages to conversation. Customers can use this RPC to
-     * ingest historical messages to conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse> - batchCreateMessages( - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateMessagesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists messages that belong to a given conversation.
-     * `messages` are ordered by `create_time` in descending order. To fetch
-     * updates without duplication, send request with filter
-     * `create_time_epoch_microseconds >
-     * [first item's create_time of previous request]` and empty page_token.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListMessagesResponse> - listMessages(com.google.cloud.dialogflow.v2beta1.ListMessagesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMessagesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONVERSATION = 0; - private static final int METHODID_LIST_CONVERSATIONS = 1; - private static final int METHODID_GET_CONVERSATION = 2; - private static final int METHODID_COMPLETE_CONVERSATION = 3; - private static final int METHODID_BATCH_CREATE_MESSAGES = 4; - private static final int METHODID_LIST_MESSAGES = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ConversationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConversationsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CONVERSATION: - serviceImpl.createConversation( - (com.google.cloud.dialogflow.v2beta1.CreateConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONVERSATIONS: - serviceImpl.listConversations( - (com.google.cloud.dialogflow.v2beta1.ListConversationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListConversationsResponse>) - responseObserver); - break; - case METHODID_GET_CONVERSATION: - serviceImpl.getConversation( - (com.google.cloud.dialogflow.v2beta1.GetConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_COMPLETE_CONVERSATION: - serviceImpl.completeConversation( - (com.google.cloud.dialogflow.v2beta1.CompleteConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_CREATE_MESSAGES: - serviceImpl.batchCreateMessages( - (com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse>) - responseObserver); - break; - case METHODID_LIST_MESSAGES: - serviceImpl.listMessages( - (com.google.cloud.dialogflow.v2beta1.ListMessagesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListMessagesResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ConversationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConversationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ConversationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Conversations"); - } - } - - private static final class ConversationsFileDescriptorSupplier - extends ConversationsBaseDescriptorSupplier { - ConversationsFileDescriptorSupplier() {} - } - - private static final class ConversationsMethodDescriptorSupplier - extends ConversationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConversationsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ConversationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConversationsFileDescriptorSupplier()) - .addMethod(getCreateConversationMethod()) - .addMethod(getListConversationsMethod()) - .addMethod(getGetConversationMethod()) - .addMethod(getCompleteConversationMethod()) - .addMethod(getBatchCreateMessagesMethod()) - .addMethod(getListMessagesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java deleted file mode 100644 index 2fe481e5f..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsGrpc.java +++ /dev/null @@ -1,1000 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Environments][google.cloud.dialogflow.v2beta1.Environment].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/environment.proto") -public final class EnvironmentsGrpc { - - private EnvironmentsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Environments"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse> - getListEnvironmentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEnvironments", - requestType = com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse> - getListEnvironmentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse> - getListEnvironmentsMethod; - if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) { - EnvironmentsGrpc.getListEnvironmentsMethod = - getListEnvironmentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("ListEnvironments")) - .build(); - } - } - } - return getListEnvironmentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getGetEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnvironment", - requestType = com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getGetEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getGetEnvironmentMethod; - if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) { - EnvironmentsGrpc.getGetEnvironmentMethod = - getGetEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Environment.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("GetEnvironment")) - .build(); - } - } - } - return getGetEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getCreateEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment", - requestType = com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getCreateEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getCreateEnvironmentMethod; - if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) { - EnvironmentsGrpc.getCreateEnvironmentMethod = - getCreateEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Environment.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("CreateEnvironment")) - .build(); - } - } - } - return getCreateEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getUpdateEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEnvironment", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getUpdateEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment> - getUpdateEnvironmentMethod; - if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) { - EnvironmentsGrpc.getUpdateEnvironmentMethod = - getUpdateEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Environment.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("UpdateEnvironment")) - .build(); - } - } - } - return getUpdateEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest, com.google.protobuf.Empty> - getDeleteEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment", - requestType = com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest, com.google.protobuf.Empty> - getDeleteEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest, com.google.protobuf.Empty> - getDeleteEnvironmentMethod; - if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) { - EnvironmentsGrpc.getDeleteEnvironmentMethod = - getDeleteEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("DeleteEnvironment")) - .build(); - } - } - } - return getDeleteEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2beta1.EnvironmentHistory> - getGetEnvironmentHistoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnvironmentHistory", - requestType = com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.EnvironmentHistory.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2beta1.EnvironmentHistory> - getGetEnvironmentHistoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2beta1.EnvironmentHistory> - getGetEnvironmentHistoryMethod; - if ((getGetEnvironmentHistoryMethod = EnvironmentsGrpc.getGetEnvironmentHistoryMethod) - == null) { - synchronized (EnvironmentsGrpc.class) { - if ((getGetEnvironmentHistoryMethod = EnvironmentsGrpc.getGetEnvironmentHistoryMethod) - == null) { - EnvironmentsGrpc.getGetEnvironmentHistoryMethod = - getGetEnvironmentHistoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetEnvironmentHistory")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.EnvironmentHistory - .getDefaultInstance())) - .setSchemaDescriptor( - new EnvironmentsMethodDescriptorSupplier("GetEnvironmentHistory")) - .build(); - } - } - } - return getGetEnvironmentHistoryMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static EnvironmentsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnvironmentsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsStub(channel, callOptions); - } - }; - return EnvironmentsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static EnvironmentsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnvironmentsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsBlockingStub(channel, callOptions); - } - }; - return EnvironmentsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static EnvironmentsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EnvironmentsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsFutureStub(channel, callOptions); - } - }; - return EnvironmentsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2beta1.Environment].
-   * 
- */ - public abstract static class EnvironmentsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all non-draft environments of the specified agent.
-     * 
- */ - public void listEnvironments( - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEnvironmentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public void getEnvironment( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public void createEnvironment( - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment keeps on serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update version
-     * in "draft" environment. WARNING: this will negate all recent changes to
-     * draft and can't be undone. You may want to save the draft to a version
-     * before calling this function.
-     * 
- */ - public void updateEnvironment( - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public void deleteEnvironment( - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEnvironmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public void getEnvironmentHistory( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEnvironmentHistoryMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListEnvironmentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest, - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse>( - this, METHODID_LIST_ENVIRONMENTS))) - .addMethod( - getGetEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment>( - this, METHODID_GET_ENVIRONMENT))) - .addMethod( - getCreateEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment>( - this, METHODID_CREATE_ENVIRONMENT))) - .addMethod( - getUpdateEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest, - com.google.cloud.dialogflow.v2beta1.Environment>( - this, METHODID_UPDATE_ENVIRONMENT))) - .addMethod( - getDeleteEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ENVIRONMENT))) - .addMethod( - getGetEnvironmentHistoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest, - com.google.cloud.dialogflow.v2beta1.EnvironmentHistory>( - this, METHODID_GET_ENVIRONMENT_HISTORY))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2beta1.Environment].
-   * 
- */ - public static final class EnvironmentsStub - extends io.grpc.stub.AbstractAsyncStub { - private EnvironmentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnvironmentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all non-draft environments of the specified agent.
-     * 
- */ - public void listEnvironments( - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public void getEnvironment( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public void createEnvironment( - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment keeps on serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update version
-     * in "draft" environment. WARNING: this will negate all recent changes to
-     * draft and can't be undone. You may want to save the draft to a version
-     * before calling this function.
-     * 
- */ - public void updateEnvironment( - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public void deleteEnvironment( - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public void getEnvironmentHistory( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnvironmentHistoryMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2beta1.Environment].
-   * 
- */ - public static final class EnvironmentsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private EnvironmentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnvironmentsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all non-draft environments of the specified agent.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse listEnvironments( - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Environment getEnvironment( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Environment createEnvironment( - com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment keeps on serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update version
-     * in "draft" environment. WARNING: this will negate all recent changes to
-     * draft and can't be undone. You may want to save the draft to a version
-     * before calling this function.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Environment updateEnvironment( - com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public com.google.protobuf.Empty deleteEnvironment( - com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.EnvironmentHistory getEnvironmentHistory( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnvironmentHistoryMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Environments][google.cloud.dialogflow.v2beta1.Environment].
-   * 
- */ - public static final class EnvironmentsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private EnvironmentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EnvironmentsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EnvironmentsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all non-draft environments of the specified agent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse> - listEnvironments(com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified agent environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Environment> - getEnvironment(com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an agent environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Environment> - createEnvironment(com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified agent environment.
-     * This method allows you to deploy new agent versions into the environment.
-     * When an environment is pointed to a new agent version by setting
-     * `environment.agent_version`, the environment is temporarily set to the
-     * `LOADING` state. During that time, the environment keeps on serving the
-     * previous version of the agent. After the new agent version is done loading,
-     * the environment is set back to the `RUNNING` state.
-     * You can use "-" as Environment ID in environment name to update version
-     * in "draft" environment. WARNING: this will negate all recent changes to
-     * draft and can't be undone. You may want to save the draft to a version
-     * before calling this function.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Environment> - updateEnvironment(com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified agent environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteEnvironment(com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the history of the specified environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.EnvironmentHistory> - getEnvironmentHistory( - com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnvironmentHistoryMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_ENVIRONMENTS = 0; - private static final int METHODID_GET_ENVIRONMENT = 1; - private static final int METHODID_CREATE_ENVIRONMENT = 2; - private static final int METHODID_UPDATE_ENVIRONMENT = 3; - private static final int METHODID_DELETE_ENVIRONMENT = 4; - private static final int METHODID_GET_ENVIRONMENT_HISTORY = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final EnvironmentsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(EnvironmentsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_ENVIRONMENTS: - serviceImpl.listEnvironments( - (com.google.cloud.dialogflow.v2beta1.ListEnvironmentsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse>) - responseObserver); - break; - case METHODID_GET_ENVIRONMENT: - serviceImpl.getEnvironment( - (com.google.cloud.dialogflow.v2beta1.GetEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_ENVIRONMENT: - serviceImpl.createEnvironment( - (com.google.cloud.dialogflow.v2beta1.CreateEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ENVIRONMENT: - serviceImpl.updateEnvironment( - (com.google.cloud.dialogflow.v2beta1.UpdateEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ENVIRONMENT: - serviceImpl.deleteEnvironment( - (com.google.cloud.dialogflow.v2beta1.DeleteEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENVIRONMENT_HISTORY: - serviceImpl.getEnvironmentHistory( - (com.google.cloud.dialogflow.v2beta1.GetEnvironmentHistoryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class EnvironmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - EnvironmentsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.EnvironmentProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Environments"); - } - } - - private static final class EnvironmentsFileDescriptorSupplier - extends EnvironmentsBaseDescriptorSupplier { - EnvironmentsFileDescriptorSupplier() {} - } - - private static final class EnvironmentsMethodDescriptorSupplier - extends EnvironmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - EnvironmentsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (EnvironmentsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EnvironmentsFileDescriptorSupplier()) - .addMethod(getListEnvironmentsMethod()) - .addMethod(getGetEnvironmentMethod()) - .addMethod(getCreateEnvironmentMethod()) - .addMethod(getUpdateEnvironmentMethod()) - .addMethod(getDeleteEnvironmentMethod()) - .addMethod(getGetEnvironmentHistoryMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java deleted file mode 100644 index ee85a4e92..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsGrpc.java +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Fulfillments][google.cloud.dialogflow.v2beta1.Fulfillment].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/fulfillment.proto") -public final class FulfillmentsGrpc { - - private FulfillmentsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Fulfillments"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment> - getGetFulfillmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFulfillment", - requestType = com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Fulfillment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment> - getGetFulfillmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment> - getGetFulfillmentMethod; - if ((getGetFulfillmentMethod = FulfillmentsGrpc.getGetFulfillmentMethod) == null) { - synchronized (FulfillmentsGrpc.class) { - if ((getGetFulfillmentMethod = FulfillmentsGrpc.getGetFulfillmentMethod) == null) { - FulfillmentsGrpc.getGetFulfillmentMethod = - getGetFulfillmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFulfillment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Fulfillment.getDefaultInstance())) - .setSchemaDescriptor( - new FulfillmentsMethodDescriptorSupplier("GetFulfillment")) - .build(); - } - } - } - return getGetFulfillmentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment> - getUpdateFulfillmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFulfillment", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Fulfillment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment> - getUpdateFulfillmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment> - getUpdateFulfillmentMethod; - if ((getUpdateFulfillmentMethod = FulfillmentsGrpc.getUpdateFulfillmentMethod) == null) { - synchronized (FulfillmentsGrpc.class) { - if ((getUpdateFulfillmentMethod = FulfillmentsGrpc.getUpdateFulfillmentMethod) == null) { - FulfillmentsGrpc.getUpdateFulfillmentMethod = - getUpdateFulfillmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFulfillment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Fulfillment.getDefaultInstance())) - .setSchemaDescriptor( - new FulfillmentsMethodDescriptorSupplier("UpdateFulfillment")) - .build(); - } - } - } - return getUpdateFulfillmentMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static FulfillmentsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FulfillmentsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsStub(channel, callOptions); - } - }; - return FulfillmentsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static FulfillmentsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FulfillmentsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsBlockingStub(channel, callOptions); - } - }; - return FulfillmentsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static FulfillmentsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public FulfillmentsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsFutureStub(channel, callOptions); - } - }; - return FulfillmentsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2beta1.Fulfillment].
-   * 
- */ - public abstract static class FulfillmentsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public void getFulfillment( - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetFulfillmentMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public void updateFulfillment( - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFulfillmentMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetFulfillmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment>( - this, METHODID_GET_FULFILLMENT))) - .addMethod( - getUpdateFulfillmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest, - com.google.cloud.dialogflow.v2beta1.Fulfillment>( - this, METHODID_UPDATE_FULFILLMENT))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2beta1.Fulfillment].
-   * 
- */ - public static final class FulfillmentsStub - extends io.grpc.stub.AbstractAsyncStub { - private FulfillmentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FulfillmentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public void getFulfillment( - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFulfillmentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public void updateFulfillment( - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFulfillmentMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2beta1.Fulfillment].
-   * 
- */ - public static final class FulfillmentsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private FulfillmentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FulfillmentsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Fulfillment getFulfillment( - com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFulfillmentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Fulfillment updateFulfillment( - com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFulfillmentMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Fulfillments][google.cloud.dialogflow.v2beta1.Fulfillment].
-   * 
- */ - public static final class FulfillmentsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private FulfillmentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected FulfillmentsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new FulfillmentsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Retrieves the fulfillment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Fulfillment> - getFulfillment(com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFulfillmentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the fulfillment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Fulfillment> - updateFulfillment(com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFulfillmentMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_FULFILLMENT = 0; - private static final int METHODID_UPDATE_FULFILLMENT = 1; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final FulfillmentsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(FulfillmentsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_FULFILLMENT: - serviceImpl.getFulfillment( - (com.google.cloud.dialogflow.v2beta1.GetFulfillmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FULFILLMENT: - serviceImpl.updateFulfillment( - (com.google.cloud.dialogflow.v2beta1.UpdateFulfillmentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class FulfillmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - FulfillmentsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.FulfillmentProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Fulfillments"); - } - } - - private static final class FulfillmentsFileDescriptorSupplier - extends FulfillmentsBaseDescriptorSupplier { - FulfillmentsFileDescriptorSupplier() {} - } - - private static final class FulfillmentsMethodDescriptorSupplier - extends FulfillmentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - FulfillmentsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (FulfillmentsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new FulfillmentsFileDescriptorSupplier()) - .addMethod(getGetFulfillmentMethod()) - .addMethod(getUpdateFulfillmentMethod()) - .build(); - } - } - } - return result; - } -} 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 deleted file mode 100644 index b16d6f07a..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesGrpc.java +++ /dev/null @@ -1,889 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/knowledge_base.proto") -public final class KnowledgeBasesGrpc { - - private KnowledgeBasesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.KnowledgeBases"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> - getListKnowledgeBasesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListKnowledgeBases", - requestType = com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> - getListKnowledgeBasesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> - getListKnowledgeBasesMethod; - if ((getListKnowledgeBasesMethod = KnowledgeBasesGrpc.getListKnowledgeBasesMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getListKnowledgeBasesMethod = KnowledgeBasesGrpc.getListKnowledgeBasesMethod) - == null) { - KnowledgeBasesGrpc.getListKnowledgeBasesMethod = - getListKnowledgeBasesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKnowledgeBases")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("ListKnowledgeBases")) - .build(); - } - } - } - return getListKnowledgeBasesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getGetKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.KnowledgeBase.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getGetKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getGetKnowledgeBaseMethod; - if ((getGetKnowledgeBaseMethod = KnowledgeBasesGrpc.getGetKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getGetKnowledgeBaseMethod = KnowledgeBasesGrpc.getGetKnowledgeBaseMethod) == null) { - KnowledgeBasesGrpc.getGetKnowledgeBaseMethod = - getGetKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.KnowledgeBase - .getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("GetKnowledgeBase")) - .build(); - } - } - } - return getGetKnowledgeBaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getCreateKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.KnowledgeBase.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getCreateKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getCreateKnowledgeBaseMethod; - if ((getCreateKnowledgeBaseMethod = KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getCreateKnowledgeBaseMethod = KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod) - == null) { - KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod = - getCreateKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.KnowledgeBase - .getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("CreateKnowledgeBase")) - .build(); - } - } - } - return getCreateKnowledgeBaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty> - getDeleteKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest, com.google.protobuf.Empty> - getDeleteKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest, - com.google.protobuf.Empty> - getDeleteKnowledgeBaseMethod; - if ((getDeleteKnowledgeBaseMethod = KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getDeleteKnowledgeBaseMethod = KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod) - == null) { - KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod = - getDeleteKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("DeleteKnowledgeBase")) - .build(); - } - } - } - return getDeleteKnowledgeBaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getUpdateKnowledgeBaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateKnowledgeBase", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.KnowledgeBase.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getUpdateKnowledgeBaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getUpdateKnowledgeBaseMethod; - if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) == null) { - synchronized (KnowledgeBasesGrpc.class) { - if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) - == null) { - KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod = - getUpdateKnowledgeBaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateKnowledgeBase")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.KnowledgeBase - .getDefaultInstance())) - .setSchemaDescriptor( - new KnowledgeBasesMethodDescriptorSupplier("UpdateKnowledgeBase")) - .build(); - } - } - } - return getUpdateKnowledgeBaseMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static KnowledgeBasesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public KnowledgeBasesStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesStub(channel, callOptions); - } - }; - return KnowledgeBasesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static KnowledgeBasesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public KnowledgeBasesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesBlockingStub(channel, callOptions); - } - }; - return KnowledgeBasesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static KnowledgeBasesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public KnowledgeBasesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesFutureStub(channel, callOptions); - } - }; - return KnowledgeBasesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase].
-   * 
- */ - public abstract static class KnowledgeBasesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void listKnowledgeBases( - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListKnowledgeBasesMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void getKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetKnowledgeBaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void createKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateKnowledgeBaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void deleteKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteKnowledgeBaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void updateKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateKnowledgeBaseMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListKnowledgeBasesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest, - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse>( - this, METHODID_LIST_KNOWLEDGE_BASES))) - .addMethod( - getGetKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase>( - this, METHODID_GET_KNOWLEDGE_BASE))) - .addMethod( - getCreateKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase>( - this, METHODID_CREATE_KNOWLEDGE_BASE))) - .addMethod( - getDeleteKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_KNOWLEDGE_BASE))) - .addMethod( - getUpdateKnowledgeBaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest, - com.google.cloud.dialogflow.v2beta1.KnowledgeBase>( - this, METHODID_UPDATE_KNOWLEDGE_BASE))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase].
-   * 
- */ - public static final class KnowledgeBasesStub - extends io.grpc.stub.AbstractAsyncStub { - private KnowledgeBasesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected KnowledgeBasesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void listKnowledgeBases( - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void getKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void createKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void deleteKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public void updateKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase].
-   * 
- */ - public static final class KnowledgeBasesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private KnowledgeBasesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected KnowledgeBasesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse listKnowledgeBases( - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListKnowledgeBasesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeBase getKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetKnowledgeBaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeBase createKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateKnowledgeBaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.protobuf.Empty deleteKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteKnowledgeBaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeBase updateKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateKnowledgeBaseMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase].
-   * 
- */ - public static final class KnowledgeBasesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private KnowledgeBasesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected KnowledgeBasesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new KnowledgeBasesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all knowledge bases of the specified agent.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse> - listKnowledgeBases(com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - getKnowledgeBase(com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - createKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified knowledge base.
-     * Note: The `projects.agent.knowledgeBases` resource is deprecated;
-     * only use `projects.knowledgeBases`.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.KnowledgeBase> - updateKnowledgeBase( - com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_KNOWLEDGE_BASES = 0; - private static final int METHODID_GET_KNOWLEDGE_BASE = 1; - private static final int METHODID_CREATE_KNOWLEDGE_BASE = 2; - private static final int METHODID_DELETE_KNOWLEDGE_BASE = 3; - private static final int METHODID_UPDATE_KNOWLEDGE_BASE = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final KnowledgeBasesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(KnowledgeBasesImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_KNOWLEDGE_BASES: - serviceImpl.listKnowledgeBases( - (com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse>) - responseObserver); - break; - case METHODID_GET_KNOWLEDGE_BASE: - serviceImpl.getKnowledgeBase( - (com.google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_KNOWLEDGE_BASE: - serviceImpl.createKnowledgeBase( - (com.google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_KNOWLEDGE_BASE: - serviceImpl.deleteKnowledgeBase( - (com.google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_KNOWLEDGE_BASE: - serviceImpl.updateKnowledgeBase( - (com.google.cloud.dialogflow.v2beta1.UpdateKnowledgeBaseRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class KnowledgeBasesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - KnowledgeBasesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeBaseProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("KnowledgeBases"); - } - } - - private static final class KnowledgeBasesFileDescriptorSupplier - extends KnowledgeBasesBaseDescriptorSupplier { - KnowledgeBasesFileDescriptorSupplier() {} - } - - private static final class KnowledgeBasesMethodDescriptorSupplier - extends KnowledgeBasesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - KnowledgeBasesMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (KnowledgeBasesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new KnowledgeBasesFileDescriptorSupplier()) - .addMethod(getListKnowledgeBasesMethod()) - .addMethod(getGetKnowledgeBaseMethod()) - .addMethod(getCreateKnowledgeBaseMethod()) - .addMethod(getDeleteKnowledgeBaseMethod()) - .addMethod(getUpdateKnowledgeBaseMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java deleted file mode 100644 index dc3fc41a0..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsGrpc.java +++ /dev/null @@ -1,1594 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Participants][google.cloud.dialogflow.v2beta1.Participant].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/participant.proto") -public final class ParticipantsGrpc { - - private ParticipantsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Participants"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getCreateParticipantMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateParticipant", - requestType = com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Participant.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getCreateParticipantMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getCreateParticipantMethod; - if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { - ParticipantsGrpc.getCreateParticipantMethod = - getCreateParticipantMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateParticipant")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Participant.getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("CreateParticipant")) - .build(); - } - } - } - return getCreateParticipantMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getGetParticipantMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetParticipant", - requestType = com.google.cloud.dialogflow.v2beta1.GetParticipantRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Participant.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getGetParticipantMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getGetParticipantMethod; - if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { - ParticipantsGrpc.getGetParticipantMethod = - getGetParticipantMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParticipant")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Participant.getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("GetParticipant")) - .build(); - } - } - } - return getGetParticipantMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest, - com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse> - getListParticipantsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListParticipants", - requestType = com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest, - com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse> - getListParticipantsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest, - com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse> - getListParticipantsMethod; - if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { - ParticipantsGrpc.getListParticipantsMethod = - getListParticipantsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListParticipants")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("ListParticipants")) - .build(); - } - } - } - return getListParticipantsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getUpdateParticipantMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateParticipant", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Participant.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getUpdateParticipantMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant> - getUpdateParticipantMethod; - if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { - ParticipantsGrpc.getUpdateParticipantMethod = - getUpdateParticipantMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParticipant")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Participant.getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("UpdateParticipant")) - .build(); - } - } - } - return getUpdateParticipantMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse> - getAnalyzeContentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeContent", - requestType = com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse> - getAnalyzeContentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse> - getAnalyzeContentMethod; - if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { - ParticipantsGrpc.getAnalyzeContentMethod = - getAnalyzeContentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeContent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("AnalyzeContent")) - .build(); - } - } - } - return getAnalyzeContentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse> - getSuggestArticlesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SuggestArticles", - requestType = com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse> - getSuggestArticlesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse> - getSuggestArticlesMethod; - if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { - ParticipantsGrpc.getSuggestArticlesMethod = - getSuggestArticlesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestArticles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("SuggestArticles")) - .build(); - } - } - } - return getSuggestArticlesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse> - getSuggestFaqAnswersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SuggestFaqAnswers", - requestType = com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse> - getSuggestFaqAnswersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse> - getSuggestFaqAnswersMethod; - if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { - ParticipantsGrpc.getSuggestFaqAnswersMethod = - getSuggestFaqAnswersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestFaqAnswers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("SuggestFaqAnswers")) - .build(); - } - } - } - return getSuggestFaqAnswersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse> - getSuggestSmartRepliesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SuggestSmartReplies", - requestType = com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse> - getSuggestSmartRepliesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse> - getSuggestSmartRepliesMethod; - if ((getSuggestSmartRepliesMethod = ParticipantsGrpc.getSuggestSmartRepliesMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getSuggestSmartRepliesMethod = ParticipantsGrpc.getSuggestSmartRepliesMethod) - == null) { - ParticipantsGrpc.getSuggestSmartRepliesMethod = - getSuggestSmartRepliesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SuggestSmartReplies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("SuggestSmartReplies")) - .build(); - } - } - } - return getSuggestSmartRepliesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest, - com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse> - getListSuggestionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSuggestions", - requestType = com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest, - com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse> - getListSuggestionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest, - com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse> - getListSuggestionsMethod; - if ((getListSuggestionsMethod = ParticipantsGrpc.getListSuggestionsMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getListSuggestionsMethod = ParticipantsGrpc.getListSuggestionsMethod) == null) { - ParticipantsGrpc.getListSuggestionsMethod = - getListSuggestionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSuggestions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("ListSuggestions")) - .build(); - } - } - } - return getListSuggestionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest, - com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse> - getCompileSuggestionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CompileSuggestion", - requestType = com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest, - com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse> - getCompileSuggestionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest, - com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse> - getCompileSuggestionMethod; - if ((getCompileSuggestionMethod = ParticipantsGrpc.getCompileSuggestionMethod) == null) { - synchronized (ParticipantsGrpc.class) { - if ((getCompileSuggestionMethod = ParticipantsGrpc.getCompileSuggestionMethod) == null) { - ParticipantsGrpc.getCompileSuggestionMethod = - getCompileSuggestionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompileSuggestion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ParticipantsMethodDescriptorSupplier("CompileSuggestion")) - .build(); - } - } - } - return getCompileSuggestionMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ParticipantsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ParticipantsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsStub(channel, callOptions); - } - }; - return ParticipantsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ParticipantsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ParticipantsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsBlockingStub(channel, callOptions); - } - }; - return ParticipantsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ParticipantsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ParticipantsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsFutureStub(channel, callOptions); - } - }; - return ParticipantsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2beta1.Participant].
-   * 
- */ - public abstract static class ParticipantsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public void createParticipant( - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateParticipantMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public void getParticipant( - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetParticipantMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public void listParticipants( - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListParticipantsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public void updateParticipant( - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateParticipantMethod(), responseObserver); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void analyzeContent( - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAnalyzeContentMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - public void suggestArticles( - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSuggestArticlesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestFaqAnswers( - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSuggestFaqAnswersMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets smart replies for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestSmartReplies( - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSuggestSmartRepliesMethod(), responseObserver); - } - - /** - * - * - *
-     * Deprecated: Use inline suggestion, event based suggestion or
-     * Suggestion* API instead.
-     * See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more
-     * details.
-     * Removal Date: 2020-09-01.
-     * Retrieves suggestions for live agents.
-     * This method should be used by human agent client software to fetch auto
-     * generated suggestions in real-time, while the conversation with an end user
-     * is in progress. The functionality is implemented in terms of the
-     * [list
-     * pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination)
-     * design pattern. The client app should use the `next_page_token` field
-     * to fetch the next batch of suggestions. `suggestions` are sorted by
-     * `create_time` in descending order.
-     * To fetch latest suggestion, just set `page_size` to 1.
-     * To fetch new suggestions without duplication, send request with filter
-     * `create_time_epoch_microseconds > [first item's create_time of previous
-     * request]` and empty page_token.
-     * 
- */ - @java.lang.Deprecated - public void listSuggestions( - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSuggestionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead.
-     * Gets suggestions for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - @java.lang.Deprecated - public void compileSuggestion( - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompileSuggestionMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateParticipantMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant>( - this, METHODID_CREATE_PARTICIPANT))) - .addMethod( - getGetParticipantMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant>( - this, METHODID_GET_PARTICIPANT))) - .addMethod( - getListParticipantsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest, - com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse>( - this, METHODID_LIST_PARTICIPANTS))) - .addMethod( - getUpdateParticipantMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest, - com.google.cloud.dialogflow.v2beta1.Participant>( - this, METHODID_UPDATE_PARTICIPANT))) - .addMethod( - getAnalyzeContentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest, - com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse>( - this, METHODID_ANALYZE_CONTENT))) - .addMethod( - getSuggestArticlesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse>( - this, METHODID_SUGGEST_ARTICLES))) - .addMethod( - getSuggestFaqAnswersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest, - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse>( - this, METHODID_SUGGEST_FAQ_ANSWERS))) - .addMethod( - getSuggestSmartRepliesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest, - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse>( - this, METHODID_SUGGEST_SMART_REPLIES))) - .addMethod( - getListSuggestionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest, - com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse>( - this, METHODID_LIST_SUGGESTIONS))) - .addMethod( - getCompileSuggestionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest, - com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse>( - this, METHODID_COMPILE_SUGGESTION))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2beta1.Participant].
-   * 
- */ - public static final class ParticipantsStub - extends io.grpc.stub.AbstractAsyncStub { - private ParticipantsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ParticipantsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public void createParticipant( - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public void getParticipant( - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetParticipantMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public void listParticipants( - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListParticipantsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public void updateParticipant( - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void analyzeContent( - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - public void suggestArticles( - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestFaqAnswers( - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets smart replies for a participant based on specific historical
-     * messages.
-     * 
- */ - public void suggestSmartReplies( - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSuggestSmartRepliesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deprecated: Use inline suggestion, event based suggestion or
-     * Suggestion* API instead.
-     * See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more
-     * details.
-     * Removal Date: 2020-09-01.
-     * Retrieves suggestions for live agents.
-     * This method should be used by human agent client software to fetch auto
-     * generated suggestions in real-time, while the conversation with an end user
-     * is in progress. The functionality is implemented in terms of the
-     * [list
-     * pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination)
-     * design pattern. The client app should use the `next_page_token` field
-     * to fetch the next batch of suggestions. `suggestions` are sorted by
-     * `create_time` in descending order.
-     * To fetch latest suggestion, just set `page_size` to 1.
-     * To fetch new suggestions without duplication, send request with filter
-     * `create_time_epoch_microseconds > [first item's create_time of previous
-     * request]` and empty page_token.
-     * 
- */ - @java.lang.Deprecated - public void listSuggestions( - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSuggestionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead.
-     * Gets suggestions for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - @java.lang.Deprecated - public void compileSuggestion( - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCompileSuggestionMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2beta1.Participant].
-   * 
- */ - public static final class ParticipantsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ParticipantsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ParticipantsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Participant createParticipant( - com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateParticipantMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Participant getParticipant( - com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetParticipantMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse listParticipants( - com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListParticipantsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Participant updateParticipant( - com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse analyzeContent( - com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse suggestArticles( - com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse suggestFaqAnswers( - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets smart replies for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse suggestSmartReplies( - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSuggestSmartRepliesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deprecated: Use inline suggestion, event based suggestion or
-     * Suggestion* API instead.
-     * See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more
-     * details.
-     * Removal Date: 2020-09-01.
-     * Retrieves suggestions for live agents.
-     * This method should be used by human agent client software to fetch auto
-     * generated suggestions in real-time, while the conversation with an end user
-     * is in progress. The functionality is implemented in terms of the
-     * [list
-     * pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination)
-     * design pattern. The client app should use the `next_page_token` field
-     * to fetch the next batch of suggestions. `suggestions` are sorted by
-     * `create_time` in descending order.
-     * To fetch latest suggestion, just set `page_size` to 1.
-     * To fetch new suggestions without duplication, send request with filter
-     * `create_time_epoch_microseconds > [first item's create_time of previous
-     * request]` and empty page_token.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse listSuggestions( - com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSuggestionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead.
-     * Gets suggestions for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse compileSuggestion( - com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCompileSuggestionMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Participants][google.cloud.dialogflow.v2beta1.Participant].
-   * 
- */ - public static final class ParticipantsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ParticipantsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ParticipantsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ParticipantsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new participant in a conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Participant> - createParticipant(com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a conversation participant.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Participant> - getParticipant(com.google.cloud.dialogflow.v2beta1.GetParticipantRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of all participants in the specified conversation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse> - listParticipants(com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified participant.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Participant> - updateParticipant(com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Adds a text (chat, for example), or audio (phone recording, for example)
-     * message from a participant into the conversation.
-     * Note: Always use agent versions for production traffic
-     * sent to virtual agents. See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse> - analyzeContent(com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets suggested articles for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse> - suggestArticles(com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets suggested faq answers for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse> - suggestFaqAnswers(com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets smart replies for a participant based on specific historical
-     * messages.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse> - suggestSmartReplies( - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSuggestSmartRepliesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deprecated: Use inline suggestion, event based suggestion or
-     * Suggestion* API instead.
-     * See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more
-     * details.
-     * Removal Date: 2020-09-01.
-     * Retrieves suggestions for live agents.
-     * This method should be used by human agent client software to fetch auto
-     * generated suggestions in real-time, while the conversation with an end user
-     * is in progress. The functionality is implemented in terms of the
-     * [list
-     * pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination)
-     * design pattern. The client app should use the `next_page_token` field
-     * to fetch the next batch of suggestions. `suggestions` are sorted by
-     * `create_time` in descending order.
-     * To fetch latest suggestion, just set `page_size` to 1.
-     * To fetch new suggestions without duplication, send request with filter
-     * `create_time_epoch_microseconds > [first item's create_time of previous
-     * request]` and empty page_token.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse> - listSuggestions(com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSuggestionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead.
-     * Gets suggestions for a participant based on specific historical
-     * messages.
-     * Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated
-     * suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion
-     * based on the provided conversation context in the real time.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse> - compileSuggestion(com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCompileSuggestionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PARTICIPANT = 0; - private static final int METHODID_GET_PARTICIPANT = 1; - private static final int METHODID_LIST_PARTICIPANTS = 2; - private static final int METHODID_UPDATE_PARTICIPANT = 3; - private static final int METHODID_ANALYZE_CONTENT = 4; - private static final int METHODID_SUGGEST_ARTICLES = 5; - private static final int METHODID_SUGGEST_FAQ_ANSWERS = 6; - private static final int METHODID_SUGGEST_SMART_REPLIES = 7; - private static final int METHODID_LIST_SUGGESTIONS = 8; - private static final int METHODID_COMPILE_SUGGESTION = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ParticipantsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ParticipantsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PARTICIPANT: - serviceImpl.createParticipant( - (com.google.cloud.dialogflow.v2beta1.CreateParticipantRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_PARTICIPANT: - serviceImpl.getParticipant( - (com.google.cloud.dialogflow.v2beta1.GetParticipantRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PARTICIPANTS: - serviceImpl.listParticipants( - (com.google.cloud.dialogflow.v2beta1.ListParticipantsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListParticipantsResponse>) - responseObserver); - break; - case METHODID_UPDATE_PARTICIPANT: - serviceImpl.updateParticipant( - (com.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ANALYZE_CONTENT: - serviceImpl.analyzeContent( - (com.google.cloud.dialogflow.v2beta1.AnalyzeContentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.AnalyzeContentResponse>) - responseObserver); - break; - case METHODID_SUGGEST_ARTICLES: - serviceImpl.suggestArticles( - (com.google.cloud.dialogflow.v2beta1.SuggestArticlesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.SuggestArticlesResponse>) - responseObserver); - break; - case METHODID_SUGGEST_FAQ_ANSWERS: - serviceImpl.suggestFaqAnswers( - (com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse>) - responseObserver); - break; - case METHODID_SUGGEST_SMART_REPLIES: - serviceImpl.suggestSmartReplies( - (com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse>) - responseObserver); - break; - case METHODID_LIST_SUGGESTIONS: - serviceImpl.listSuggestions( - (com.google.cloud.dialogflow.v2beta1.ListSuggestionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListSuggestionsResponse>) - responseObserver); - break; - case METHODID_COMPILE_SUGGESTION: - serviceImpl.compileSuggestion( - (com.google.cloud.dialogflow.v2beta1.CompileSuggestionRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.CompileSuggestionResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ParticipantsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ParticipantsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Participants"); - } - } - - private static final class ParticipantsFileDescriptorSupplier - extends ParticipantsBaseDescriptorSupplier { - ParticipantsFileDescriptorSupplier() {} - } - - private static final class ParticipantsMethodDescriptorSupplier - extends ParticipantsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ParticipantsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ParticipantsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ParticipantsFileDescriptorSupplier()) - .addMethod(getCreateParticipantMethod()) - .addMethod(getGetParticipantMethod()) - .addMethod(getListParticipantsMethod()) - .addMethod(getUpdateParticipantMethod()) - .addMethod(getAnalyzeContentMethod()) - .addMethod(getSuggestArticlesMethod()) - .addMethod(getSuggestFaqAnswersMethod()) - .addMethod(getSuggestSmartRepliesMethod()) - .addMethod(getListSuggestionsMethod()) - .addMethod(getCompileSuggestionMethod()) - .build(); - } - } - } - return result; - } -} 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 deleted file mode 100644 index 3ed4d0d60..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesGrpc.java +++ /dev/null @@ -1,938 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityType].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/session_entity_type.proto") -public final class SessionEntityTypesGrpc { - - private SessionEntityTypesGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.SessionEntityTypes"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> - getListSessionEntityTypesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSessionEntityTypes", - requestType = com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> - getListSessionEntityTypesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> - getListSessionEntityTypesMethod; - if ((getListSessionEntityTypesMethod = SessionEntityTypesGrpc.getListSessionEntityTypesMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getListSessionEntityTypesMethod = - SessionEntityTypesGrpc.getListSessionEntityTypesMethod) - == null) { - SessionEntityTypesGrpc.getListSessionEntityTypesMethod = - getListSessionEntityTypesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListSessionEntityTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("ListSessionEntityTypes")) - .build(); - } - } - } - return getListSessionEntityTypesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getGetSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSessionEntityType", - requestType = com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.SessionEntityType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getGetSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getGetSessionEntityTypeMethod; - if ((getGetSessionEntityTypeMethod = SessionEntityTypesGrpc.getGetSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getGetSessionEntityTypeMethod = SessionEntityTypesGrpc.getGetSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getGetSessionEntityTypeMethod = - getGetSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SessionEntityType - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("GetSessionEntityType")) - .build(); - } - } - } - return getGetSessionEntityTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getCreateSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSessionEntityType", - requestType = com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.SessionEntityType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getCreateSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getCreateSessionEntityTypeMethod; - if ((getCreateSessionEntityTypeMethod = SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getCreateSessionEntityTypeMethod = - SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod = - getCreateSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SessionEntityType - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("CreateSessionEntityType")) - .build(); - } - } - } - return getCreateSessionEntityTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getUpdateSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSessionEntityType", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.SessionEntityType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getUpdateSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getUpdateSessionEntityTypeMethod; - if ((getUpdateSessionEntityTypeMethod = SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getUpdateSessionEntityTypeMethod = - SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod = - getUpdateSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.SessionEntityType - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("UpdateSessionEntityType")) - .build(); - } - } - } - return getUpdateSessionEntityTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest, - com.google.protobuf.Empty> - getDeleteSessionEntityTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSessionEntityType", - requestType = com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest, - com.google.protobuf.Empty> - getDeleteSessionEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest, - com.google.protobuf.Empty> - getDeleteSessionEntityTypeMethod; - if ((getDeleteSessionEntityTypeMethod = SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod) - == null) { - synchronized (SessionEntityTypesGrpc.class) { - if ((getDeleteSessionEntityTypeMethod = - SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod) - == null) { - SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod = - getDeleteSessionEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteSessionEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SessionEntityTypesMethodDescriptorSupplier("DeleteSessionEntityType")) - .build(); - } - } - } - return getDeleteSessionEntityTypeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SessionEntityTypesStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionEntityTypesStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesStub(channel, callOptions); - } - }; - return SessionEntityTypesStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SessionEntityTypesBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionEntityTypesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesBlockingStub(channel, callOptions); - } - }; - return SessionEntityTypesBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SessionEntityTypesFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionEntityTypesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesFutureStub(channel, callOptions); - } - }; - return SessionEntityTypesFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityType].
-   * 
- */ - public abstract static class SessionEntityTypesImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void listSessionEntityTypes( - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSessionEntityTypesMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void getSessionEntityType( - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSessionEntityTypeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void createSessionEntityType( - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSessionEntityTypeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void updateSessionEntityType( - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSessionEntityTypeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void deleteSessionEntityType( - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSessionEntityTypeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListSessionEntityTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest, - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse>( - this, METHODID_LIST_SESSION_ENTITY_TYPES))) - .addMethod( - getGetSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType>( - this, METHODID_GET_SESSION_ENTITY_TYPE))) - .addMethod( - getCreateSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType>( - this, METHODID_CREATE_SESSION_ENTITY_TYPE))) - .addMethod( - getUpdateSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest, - com.google.cloud.dialogflow.v2beta1.SessionEntityType>( - this, METHODID_UPDATE_SESSION_ENTITY_TYPE))) - .addMethod( - getDeleteSessionEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SESSION_ENTITY_TYPE))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityType].
-   * 
- */ - public static final class SessionEntityTypesStub - extends io.grpc.stub.AbstractAsyncStub { - private SessionEntityTypesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionEntityTypesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void listSessionEntityTypes( - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void getSessionEntityType( - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void createSessionEntityType( - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void updateSessionEntityType( - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public void deleteSessionEntityType( - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityType].
-   * 
- */ - public static final class SessionEntityTypesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SessionEntityTypesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionEntityTypesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse - listSessionEntityTypes( - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.SessionEntityType getSessionEntityType( - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.SessionEntityType createSessionEntityType( - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.SessionEntityType updateSessionEntityType( - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.protobuf.Empty deleteSessionEntityType( - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityType].
-   * 
- */ - public static final class SessionEntityTypesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SessionEntityTypesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionEntityTypesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionEntityTypesFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all session entity types in the specified session.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse> - listSessionEntityTypes( - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - getSessionEntityType( - com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - createSessionEntityType( - com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.SessionEntityType> - updateSessionEntityType( - com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified session entity type.
-     * This method doesn't work with Google Assistant integration.
-     * Contact Dialogflow support if you need to use session entities
-     * with Google Assistant integration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSessionEntityType( - com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_SESSION_ENTITY_TYPES = 0; - private static final int METHODID_GET_SESSION_ENTITY_TYPE = 1; - private static final int METHODID_CREATE_SESSION_ENTITY_TYPE = 2; - private static final int METHODID_UPDATE_SESSION_ENTITY_TYPE = 3; - private static final int METHODID_DELETE_SESSION_ENTITY_TYPE = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SessionEntityTypesImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SessionEntityTypesImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_SESSION_ENTITY_TYPES: - serviceImpl.listSessionEntityTypes( - (com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse>) - responseObserver); - break; - case METHODID_GET_SESSION_ENTITY_TYPE: - serviceImpl.getSessionEntityType( - (com.google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SESSION_ENTITY_TYPE: - serviceImpl.createSessionEntityType( - (com.google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SESSION_ENTITY_TYPE: - serviceImpl.updateSessionEntityType( - (com.google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SESSION_ENTITY_TYPE: - serviceImpl.deleteSessionEntityType( - (com.google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SessionEntityTypesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SessionEntityTypesBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.SessionEntityTypeProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SessionEntityTypes"); - } - } - - private static final class SessionEntityTypesFileDescriptorSupplier - extends SessionEntityTypesBaseDescriptorSupplier { - SessionEntityTypesFileDescriptorSupplier() {} - } - - private static final class SessionEntityTypesMethodDescriptorSupplier - extends SessionEntityTypesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SessionEntityTypesMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SessionEntityTypesGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SessionEntityTypesFileDescriptorSupplier()) - .addMethod(getListSessionEntityTypesMethod()) - .addMethod(getGetSessionEntityTypeMethod()) - .addMethod(getCreateSessionEntityTypeMethod()) - .addMethod(getUpdateSessionEntityTypeMethod()) - .addMethod(getDeleteSessionEntityTypeMethod()) - .build(); - } - } - } - return result; - } -} 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 deleted file mode 100644 index 9883d83fd..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsGrpc.java +++ /dev/null @@ -1,499 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * A service used for session interactions.
- * For more information, see the [API interactions
- * guide](https://cloud.google.com/dialogflow/docs/api-overview).
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/session.proto") -public final class SessionsGrpc { - - private SessionsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Sessions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.DetectIntentResponse> - getDetectIntentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DetectIntent", - requestType = com.google.cloud.dialogflow.v2beta1.DetectIntentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.DetectIntentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.DetectIntentResponse> - getDetectIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.DetectIntentResponse> - getDetectIntentMethod; - if ((getDetectIntentMethod = SessionsGrpc.getDetectIntentMethod) == null) { - synchronized (SessionsGrpc.class) { - if ((getDetectIntentMethod = SessionsGrpc.getDetectIntentMethod) == null) { - SessionsGrpc.getDetectIntentMethod = - getDetectIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DetectIntentResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SessionsMethodDescriptorSupplier("DetectIntent")) - .build(); - } - } - } - return getDetectIntentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> - getStreamingDetectIntentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingDetectIntent", - requestType = com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> - getStreamingDetectIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> - getStreamingDetectIntentMethod; - if ((getStreamingDetectIntentMethod = SessionsGrpc.getStreamingDetectIntentMethod) == null) { - synchronized (SessionsGrpc.class) { - if ((getStreamingDetectIntentMethod = SessionsGrpc.getStreamingDetectIntentMethod) - == null) { - SessionsGrpc.getStreamingDetectIntentMethod = - getStreamingDetectIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "StreamingDetectIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SessionsMethodDescriptorSupplier("StreamingDetectIntent")) - .build(); - } - } - } - return getStreamingDetectIntentMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SessionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsStub(channel, callOptions); - } - }; - return SessionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SessionsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsBlockingStub(channel, callOptions); - } - }; - return SessionsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SessionsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SessionsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsFutureStub(channel, callOptions); - } - }; - return SessionsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public abstract static class SessionsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void detectIntent( - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetectIntentMethod(), responseObserver); - } - - /** - * - * - *
-     * Processes a natural language query in audio format in a streaming fashion
-     * and returns structured, actionable data as a result. This method is only
-     * available via the gRPC API (not REST).
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest> - streamingDetectIntent( - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingDetectIntentMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getDetectIntentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.DetectIntentResponse>( - this, METHODID_DETECT_INTENT))) - .addMethod( - getStreamingDetectIntentMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest, - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse>( - this, METHODID_STREAMING_DETECT_INTENT))) - .build(); - } - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public static final class SessionsStub extends io.grpc.stub.AbstractAsyncStub { - private SessionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public void detectIntent( - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetectIntentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Processes a natural language query in audio format in a streaming fashion
-     * and returns structured, actionable data as a result. This method is only
-     * available via the gRPC API (not REST).
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest> - streamingDetectIntent( - io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingDetectIntentMethod(), getCallOptions()), - responseObserver); - } - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public static final class SessionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SessionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.DetectIntentResponse detectIntent( - com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDetectIntentMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * A service used for session interactions.
-   * For more information, see the [API interactions
-   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
-   * 
- */ - public static final class SessionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SessionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SessionsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a natural language query and returns structured, actionable data
-     * as a result. This method is not idempotent, because it may cause contexts
-     * and session entity types to be updated, which in turn might affect
-     * results of future queries.
-     * Note: Always use agent versions for production traffic.
-     * See [Versions and
-     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.DetectIntentResponse> - detectIntent(com.google.cloud.dialogflow.v2beta1.DetectIntentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_DETECT_INTENT = 0; - private static final int METHODID_STREAMING_DETECT_INTENT = 1; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SessionsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SessionsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_DETECT_INTENT: - serviceImpl.detectIntent( - (com.google.cloud.dialogflow.v2beta1.DetectIntentRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.DetectIntentResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_DETECT_INTENT: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingDetectIntent( - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class SessionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SessionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.SessionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Sessions"); - } - } - - private static final class SessionsFileDescriptorSupplier extends SessionsBaseDescriptorSupplier { - SessionsFileDescriptorSupplier() {} - } - - private static final class SessionsMethodDescriptorSupplier extends SessionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SessionsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SessionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SessionsFileDescriptorSupplier()) - .addMethod(getDetectIntentMethod()) - .addMethod(getStreamingDetectIntentMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java b/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java deleted file mode 100644 index 92c551d8f..000000000 --- a/grpc-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsGrpc.java +++ /dev/null @@ -1,828 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; - -/** - * - * - *
- * Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version].
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/dialogflow/v2beta1/version.proto") -public final class VersionsGrpc { - - private VersionsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.dialogflow.v2beta1.Versions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest, - com.google.cloud.dialogflow.v2beta1.ListVersionsResponse> - getListVersionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVersions", - requestType = com.google.cloud.dialogflow.v2beta1.ListVersionsRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.ListVersionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest, - com.google.cloud.dialogflow.v2beta1.ListVersionsResponse> - getListVersionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest, - com.google.cloud.dialogflow.v2beta1.ListVersionsResponse> - getListVersionsMethod; - if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { - VersionsGrpc.getListVersionsMethod = - getListVersionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVersions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.ListVersionsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("ListVersions")) - .build(); - } - } - } - return getListVersionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getGetVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetVersion", - requestType = com.google.cloud.dialogflow.v2beta1.GetVersionRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Version.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getGetVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.GetVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getGetVersionMethod; - if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { - VersionsGrpc.getGetVersionMethod = - getGetVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.GetVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Version.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("GetVersion")) - .build(); - } - } - } - return getGetVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getCreateVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateVersion", - requestType = com.google.cloud.dialogflow.v2beta1.CreateVersionRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Version.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getCreateVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getCreateVersionMethod; - if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { - VersionsGrpc.getCreateVersionMethod = - getCreateVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Version.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("CreateVersion")) - .build(); - } - } - } - return getCreateVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getUpdateVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateVersion", - requestType = com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest.class, - responseType = com.google.cloud.dialogflow.v2beta1.Version.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getUpdateVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version> - getUpdateVersionMethod; - if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { - VersionsGrpc.getUpdateVersionMethod = - getUpdateVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.Version.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("UpdateVersion")) - .build(); - } - } - } - return getUpdateVersionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest, com.google.protobuf.Empty> - getDeleteVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteVersion", - requestType = com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest, com.google.protobuf.Empty> - getDeleteVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest, com.google.protobuf.Empty> - getDeleteVersionMethod; - if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { - synchronized (VersionsGrpc.class) { - if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { - VersionsGrpc.getDeleteVersionMethod = - getDeleteVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("DeleteVersion")) - .build(); - } - } - } - return getDeleteVersionMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static VersionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VersionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsStub(channel, callOptions); - } - }; - return VersionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static VersionsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VersionsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsBlockingStub(channel, callOptions); - } - }; - return VersionsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static VersionsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VersionsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsFutureStub(channel, callOptions); - } - }; - return VersionsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version].
-   * 
- */ - public abstract static class VersionsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public void listVersions( - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListVersionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public void getVersion( - com.google.cloud.dialogflow.v2beta1.GetVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public void createVersion( - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public void updateVersion( - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateVersionMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public void deleteVersion( - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteVersionMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListVersionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest, - com.google.cloud.dialogflow.v2beta1.ListVersionsResponse>( - this, METHODID_LIST_VERSIONS))) - .addMethod( - getGetVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.GetVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version>(this, METHODID_GET_VERSION))) - .addMethod( - getCreateVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version>(this, METHODID_CREATE_VERSION))) - .addMethod( - getUpdateVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest, - com.google.cloud.dialogflow.v2beta1.Version>(this, METHODID_UPDATE_VERSION))) - .addMethod( - getDeleteVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_VERSION))) - .build(); - } - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version].
-   * 
- */ - public static final class VersionsStub extends io.grpc.stub.AbstractAsyncStub { - private VersionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VersionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public void listVersions( - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVersionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public void getVersion( - com.google.cloud.dialogflow.v2beta1.GetVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetVersionMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public void createVersion( - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public void updateVersion( - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public void deleteVersion( - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version].
-   * 
- */ - public static final class VersionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private VersionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VersionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.ListVersionsResponse listVersions( - com.google.cloud.dialogflow.v2beta1.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVersionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Version getVersion( - com.google.cloud.dialogflow.v2beta1.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Version createVersion( - com.google.cloud.dialogflow.v2beta1.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public com.google.cloud.dialogflow.v2beta1.Version updateVersion( - com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateVersionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public com.google.protobuf.Empty deleteVersion( - com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteVersionMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version].
-   * 
- */ - public static final class VersionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private VersionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VersionsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the list of all versions of the specified agent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.ListVersionsResponse> - listVersions(com.google.cloud.dialogflow.v2beta1.ListVersionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVersionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the specified agent version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Version> - getVersion(com.google.cloud.dialogflow.v2beta1.GetVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an agent version.
-     * The new version points to the agent instance in the "default" environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Version> - createVersion(com.google.cloud.dialogflow.v2beta1.CreateVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified agent version.
-     * Note that this method does not allow you to update the state of the agent
-     * the given version points to. It allows you to update only mutable
-     * properties of the version resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2beta1.Version> - updateVersion(com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete the specified agent version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteVersion(com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_VERSIONS = 0; - private static final int METHODID_GET_VERSION = 1; - private static final int METHODID_CREATE_VERSION = 2; - private static final int METHODID_UPDATE_VERSION = 3; - private static final int METHODID_DELETE_VERSION = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final VersionsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(VersionsImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_VERSIONS: - serviceImpl.listVersions( - (com.google.cloud.dialogflow.v2beta1.ListVersionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2beta1.ListVersionsResponse>) - responseObserver); - break; - case METHODID_GET_VERSION: - serviceImpl.getVersion( - (com.google.cloud.dialogflow.v2beta1.GetVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_VERSION: - serviceImpl.createVersion( - (com.google.cloud.dialogflow.v2beta1.CreateVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_VERSION: - serviceImpl.updateVersion( - (com.google.cloud.dialogflow.v2beta1.UpdateVersionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_VERSION: - serviceImpl.deleteVersion( - (com.google.cloud.dialogflow.v2beta1.DeleteVersionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class VersionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - VersionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.dialogflow.v2beta1.VersionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Versions"); - } - } - - private static final class VersionsFileDescriptorSupplier extends VersionsBaseDescriptorSupplier { - VersionsFileDescriptorSupplier() {} - } - - private static final class VersionsMethodDescriptorSupplier extends VersionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - VersionsMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (VersionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new VersionsFileDescriptorSupplier()) - .addMethod(getListVersionsMethod()) - .addMethod(getGetVersionMethod()) - .addMethod(getCreateVersionMethod()) - .addMethod(getUpdateVersionMethod()) - .addMethod(getDeleteVersionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index c112b9a11..b00eaae57 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -60,13 +60,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1412,10 +1412,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class SearchAgentsPagedResponse extends AbstractPagedListResponse< - SearchAgentsRequest, - SearchAgentsResponse, - Agent, - SearchAgentsPage, + SearchAgentsRequest, SearchAgentsResponse, Agent, SearchAgentsPage, SearchAgentsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1464,10 +1461,7 @@ public ApiFuture createPageAsync( public static class SearchAgentsFixedSizeCollection extends AbstractFixedSizeCollection< - SearchAgentsRequest, - SearchAgentsResponse, - Agent, - SearchAgentsPage, + SearchAgentsRequest, SearchAgentsResponse, Agent, SearchAgentsPage, SearchAgentsFixedSizeCollection> { private SearchAgentsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java index fbd08096a..e4d7b8475 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.AgentsStubSettings; @@ -45,9 +46,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java index b7261d188..e264157bd 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -435,10 +435,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListAnswerRecordsPagedResponse extends AbstractPagedListResponse< - ListAnswerRecordsRequest, - ListAnswerRecordsResponse, - AnswerRecord, - ListAnswerRecordsPage, + ListAnswerRecordsRequest, ListAnswerRecordsResponse, AnswerRecord, ListAnswerRecordsPage, ListAnswerRecordsFixedSizeCollection> { public static ApiFuture createAsync( @@ -459,9 +456,7 @@ private ListAnswerRecordsPagedResponse(ListAnswerRecordsPage page) { public static class ListAnswerRecordsPage extends AbstractPage< - ListAnswerRecordsRequest, - ListAnswerRecordsResponse, - AnswerRecord, + ListAnswerRecordsRequest, ListAnswerRecordsResponse, AnswerRecord, ListAnswerRecordsPage> { private ListAnswerRecordsPage( @@ -491,10 +486,7 @@ public ApiFuture createPageAsync( public static class ListAnswerRecordsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAnswerRecordsRequest, - ListAnswerRecordsResponse, - AnswerRecord, - ListAnswerRecordsPage, + ListAnswerRecordsRequest, ListAnswerRecordsResponse, AnswerRecord, ListAnswerRecordsPage, ListAnswerRecordsFixedSizeCollection> { private ListAnswerRecordsFixedSizeCollection( diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java similarity index 95% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java index d30f55fd4..a0c674438 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.AnswerRecordsStubSettings; @@ -41,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index 3d6901278..9e9a16ce7 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -832,10 +832,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListContextsPagedResponse extends AbstractPagedListResponse< - ListContextsRequest, - ListContextsResponse, - Context, - ListContextsPage, + ListContextsRequest, ListContextsResponse, Context, ListContextsPage, ListContextsFixedSizeCollection> { public static ApiFuture createAsync( @@ -884,10 +881,7 @@ public ApiFuture createPageAsync( public static class ListContextsFixedSizeCollection extends AbstractFixedSizeCollection< - ListContextsRequest, - ListContextsResponse, - Context, - ListContextsPage, + ListContextsRequest, ListContextsResponse, Context, ListContextsPage, ListContextsFixedSizeCollection> { private ListContextsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java index 74af94847..066c3c463 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.ContextsStubSettings; @@ -42,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java index ec26f7661..5b69bca8c 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java @@ -61,13 +61,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -879,16 +879,12 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConversationProfilesPagedResponse extends AbstractPagedListResponse< - ListConversationProfilesRequest, - ListConversationProfilesResponse, - ConversationProfile, - ListConversationProfilesPage, - ListConversationProfilesFixedSizeCollection> { + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile, + ListConversationProfilesPage, ListConversationProfilesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, ApiFuture futureResponse) { @@ -907,15 +903,12 @@ private ListConversationProfilesPagedResponse(ListConversationProfilesPage page) public static class ListConversationProfilesPage extends AbstractPage< - ListConversationProfilesRequest, - ListConversationProfilesResponse, - ConversationProfile, + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile, ListConversationProfilesPage> { private ListConversationProfilesPage( PageContext< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, ListConversationProfilesResponse response) { @@ -929,8 +922,7 @@ private static ListConversationProfilesPage createEmptyPage() { @Override protected ListConversationProfilesPage createPage( PageContext< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, ListConversationProfilesResponse response) { @@ -940,8 +932,7 @@ protected ListConversationProfilesPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> context, ApiFuture futureResponse) { @@ -951,11 +942,8 @@ public ApiFuture createPageAsync( public static class ListConversationProfilesFixedSizeCollection extends AbstractFixedSizeCollection< - ListConversationProfilesRequest, - ListConversationProfilesResponse, - ConversationProfile, - ListConversationProfilesPage, - ListConversationProfilesFixedSizeCollection> { + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile, + ListConversationProfilesPage, ListConversationProfilesFixedSizeCollection> { private ListConversationProfilesFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java similarity index 95% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java index eb617d45e..af46df6b4 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.ConversationProfilesStubSettings; @@ -42,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -73,8 +74,7 @@ public class ConversationProfilesSettings extends ClientSettings listConversationProfilesSettings() { return ((ConversationProfilesStubSettings) getStubSettings()) @@ -208,8 +208,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConversationProfiles. */ public PagedCallSettings.Builder< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ListConversationProfilesPagedResponse> listConversationProfilesSettings() { return getStubSettingsBuilder().listConversationProfilesSettings(); diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java index f847af26c..17fa8ab64 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java @@ -56,13 +56,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -953,10 +953,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConversationsPagedResponse extends AbstractPagedListResponse< - ListConversationsRequest, - ListConversationsResponse, - Conversation, - ListConversationsPage, + ListConversationsRequest, ListConversationsResponse, Conversation, ListConversationsPage, ListConversationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -977,9 +974,7 @@ private ListConversationsPagedResponse(ListConversationsPage page) { public static class ListConversationsPage extends AbstractPage< - ListConversationsRequest, - ListConversationsResponse, - Conversation, + ListConversationsRequest, ListConversationsResponse, Conversation, ListConversationsPage> { private ListConversationsPage( @@ -1009,10 +1004,7 @@ public ApiFuture createPageAsync( public static class ListConversationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConversationsRequest, - ListConversationsResponse, - Conversation, - ListConversationsPage, + ListConversationsRequest, ListConversationsResponse, Conversation, ListConversationsPage, ListConversationsFixedSizeCollection> { private ListConversationsFixedSizeCollection( @@ -1033,10 +1025,7 @@ protected ListConversationsFixedSizeCollection createCollection( public static class ListMessagesPagedResponse extends AbstractPagedListResponse< - ListMessagesRequest, - ListMessagesResponse, - Message, - ListMessagesPage, + ListMessagesRequest, ListMessagesResponse, Message, ListMessagesPage, ListMessagesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1085,10 +1074,7 @@ public ApiFuture createPageAsync( public static class ListMessagesFixedSizeCollection extends AbstractFixedSizeCollection< - ListMessagesRequest, - ListMessagesResponse, - Message, - ListMessagesPage, + ListMessagesRequest, ListMessagesResponse, Message, ListMessagesPage, ListMessagesFixedSizeCollection> { private ListMessagesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java index 85038b8b2..821bc15c2 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.ConversationsStubSettings; @@ -42,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java index f955ffd44..3336394eb 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java @@ -63,13 +63,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1160,10 +1160,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDocumentsPagedResponse extends AbstractPagedListResponse< - ListDocumentsRequest, - ListDocumentsResponse, - Document, - ListDocumentsPage, + ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage, ListDocumentsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1213,10 +1210,7 @@ public ApiFuture createPageAsync( public static class ListDocumentsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDocumentsRequest, - ListDocumentsResponse, - Document, - ListDocumentsPage, + ListDocumentsRequest, ListDocumentsResponse, Document, ListDocumentsPage, ListDocumentsFixedSizeCollection> { private ListDocumentsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java index 772ff3d59..2051a95e6 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.DocumentsStubSettings; @@ -44,9 +45,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java index 7bcf40558..11b7b1b83 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java @@ -60,13 +60,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -2182,10 +2182,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListEntityTypesPagedResponse extends AbstractPagedListResponse< - ListEntityTypesRequest, - ListEntityTypesResponse, - EntityType, - ListEntityTypesPage, + ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage, ListEntityTypesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2235,10 +2232,7 @@ public ApiFuture createPageAsync( public static class ListEntityTypesFixedSizeCollection extends AbstractFixedSizeCollection< - ListEntityTypesRequest, - ListEntityTypesResponse, - EntityType, - ListEntityTypesPage, + ListEntityTypesRequest, ListEntityTypesResponse, EntityType, ListEntityTypesPage, ListEntityTypesFixedSizeCollection> { private ListEntityTypesFixedSizeCollection( diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java index 9baba0f37..dd3e81ed0 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.EntityTypesStubSettings; @@ -45,9 +46,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java index 73b246ebe..59b449379 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java @@ -59,13 +59,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -640,10 +640,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListEnvironmentsPagedResponse extends AbstractPagedListResponse< - ListEnvironmentsRequest, - ListEnvironmentsResponse, - Environment, - ListEnvironmentsPage, + ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage, ListEnvironmentsFixedSizeCollection> { public static ApiFuture createAsync( @@ -693,10 +690,7 @@ public ApiFuture createPageAsync( public static class ListEnvironmentsFixedSizeCollection extends AbstractFixedSizeCollection< - ListEnvironmentsRequest, - ListEnvironmentsResponse, - Environment, - ListEnvironmentsPage, + ListEnvironmentsRequest, ListEnvironmentsResponse, Environment, ListEnvironmentsPage, ListEnvironmentsFixedSizeCollection> { private ListEnvironmentsFixedSizeCollection( @@ -717,11 +711,8 @@ protected ListEnvironmentsFixedSizeCollection createCollection( public static class GetEnvironmentHistoryPagedResponse extends AbstractPagedListResponse< - GetEnvironmentHistoryRequest, - EnvironmentHistory, - EnvironmentHistory.Entry, - GetEnvironmentHistoryPage, - GetEnvironmentHistoryFixedSizeCollection> { + GetEnvironmentHistoryRequest, EnvironmentHistory, EnvironmentHistory.Entry, + GetEnvironmentHistoryPage, GetEnvironmentHistoryFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -742,9 +733,7 @@ private GetEnvironmentHistoryPagedResponse(GetEnvironmentHistoryPage page) { public static class GetEnvironmentHistoryPage extends AbstractPage< - GetEnvironmentHistoryRequest, - EnvironmentHistory, - EnvironmentHistory.Entry, + GetEnvironmentHistoryRequest, EnvironmentHistory, EnvironmentHistory.Entry, GetEnvironmentHistoryPage> { private GetEnvironmentHistoryPage( @@ -777,11 +766,8 @@ public ApiFuture createPageAsync( public static class GetEnvironmentHistoryFixedSizeCollection extends AbstractFixedSizeCollection< - GetEnvironmentHistoryRequest, - EnvironmentHistory, - EnvironmentHistory.Entry, - GetEnvironmentHistoryPage, - GetEnvironmentHistoryFixedSizeCollection> { + GetEnvironmentHistoryRequest, EnvironmentHistory, EnvironmentHistory.Entry, + GetEnvironmentHistoryPage, GetEnvironmentHistoryFixedSizeCollection> { private GetEnvironmentHistoryFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java index 27825cd4b..d325f2fdb 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.EnvironmentsStubSettings; @@ -43,9 +44,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java index 8048a0e9e..61a6fff41 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java @@ -47,13 +47,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java similarity index 95% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java index c077bd217..8530f5983 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.FulfillmentsStubSettings; @@ -38,9 +39,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index 808cc872d..2819785c6 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -61,13 +61,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1467,10 +1467,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListIntentsPagedResponse extends AbstractPagedListResponse< - ListIntentsRequest, - ListIntentsResponse, - Intent, - ListIntentsPage, + ListIntentsRequest, ListIntentsResponse, Intent, ListIntentsPage, ListIntentsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1517,10 +1514,7 @@ public ApiFuture createPageAsync( public static class ListIntentsFixedSizeCollection extends AbstractFixedSizeCollection< - ListIntentsRequest, - ListIntentsResponse, - Intent, - ListIntentsPage, + ListIntentsRequest, ListIntentsResponse, Intent, ListIntentsPage, ListIntentsFixedSizeCollection> { private ListIntentsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java index 22ffd6bf0..1269ffd0b 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.IntentsStubSettings; @@ -45,9 +46,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java index ab6df40d3..853485f00 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java @@ -58,13 +58,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -774,11 +774,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListKnowledgeBasesPagedResponse extends AbstractPagedListResponse< - ListKnowledgeBasesRequest, - ListKnowledgeBasesResponse, - KnowledgeBase, - ListKnowledgeBasesPage, - ListKnowledgeBasesFixedSizeCollection> { + ListKnowledgeBasesRequest, ListKnowledgeBasesResponse, KnowledgeBase, + ListKnowledgeBasesPage, ListKnowledgeBasesFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -798,9 +795,7 @@ private ListKnowledgeBasesPagedResponse(ListKnowledgeBasesPage page) { public static class ListKnowledgeBasesPage extends AbstractPage< - ListKnowledgeBasesRequest, - ListKnowledgeBasesResponse, - KnowledgeBase, + ListKnowledgeBasesRequest, ListKnowledgeBasesResponse, KnowledgeBase, ListKnowledgeBasesPage> { private ListKnowledgeBasesPage( @@ -830,11 +825,8 @@ public ApiFuture createPageAsync( public static class ListKnowledgeBasesFixedSizeCollection extends AbstractFixedSizeCollection< - ListKnowledgeBasesRequest, - ListKnowledgeBasesResponse, - KnowledgeBase, - ListKnowledgeBasesPage, - ListKnowledgeBasesFixedSizeCollection> { + ListKnowledgeBasesRequest, ListKnowledgeBasesResponse, KnowledgeBase, + ListKnowledgeBasesPage, ListKnowledgeBasesFixedSizeCollection> { private ListKnowledgeBasesFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java index 6a4dbead6..2681ca3f1 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.KnowledgeBasesStubSettings; @@ -42,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java index e2259f733..c056c0bd4 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1075,10 +1075,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListParticipantsPagedResponse extends AbstractPagedListResponse< - ListParticipantsRequest, - ListParticipantsResponse, - Participant, - ListParticipantsPage, + ListParticipantsRequest, ListParticipantsResponse, Participant, ListParticipantsPage, ListParticipantsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1128,10 +1125,7 @@ public ApiFuture createPageAsync( public static class ListParticipantsFixedSizeCollection extends AbstractFixedSizeCollection< - ListParticipantsRequest, - ListParticipantsResponse, - Participant, - ListParticipantsPage, + ListParticipantsRequest, ListParticipantsResponse, Participant, ListParticipantsPage, ListParticipantsFixedSizeCollection> { private ListParticipantsFixedSizeCollection( diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java index 151a5d55c..86fa4efef 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.ParticipantsStubSettings; @@ -41,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java index 37f1b37ad..02b9d0785 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java @@ -60,13 +60,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -874,11 +874,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListSessionEntityTypesPagedResponse extends AbstractPagedListResponse< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, - SessionEntityType, - ListSessionEntityTypesPage, - ListSessionEntityTypesFixedSizeCollection> { + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType, + ListSessionEntityTypesPage, ListSessionEntityTypesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -900,9 +897,7 @@ private ListSessionEntityTypesPagedResponse(ListSessionEntityTypesPage page) { public static class ListSessionEntityTypesPage extends AbstractPage< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, - SessionEntityType, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType, ListSessionEntityTypesPage> { private ListSessionEntityTypesPage( @@ -938,11 +933,8 @@ public ApiFuture createPageAsync( public static class ListSessionEntityTypesFixedSizeCollection extends AbstractFixedSizeCollection< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, - SessionEntityType, - ListSessionEntityTypesPage, - ListSessionEntityTypesFixedSizeCollection> { + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType, + ListSessionEntityTypesPage, ListSessionEntityTypesFixedSizeCollection> { private ListSessionEntityTypesFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java similarity index 95% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java index 712f12b46..b3d0e5271 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.SessionEntityTypesStubSettings; @@ -42,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -73,8 +74,7 @@ public class SessionEntityTypesSettings extends ClientSettings listSessionEntityTypesSettings() { return ((SessionEntityTypesStubSettings) getStubSettings()).listSessionEntityTypesSettings(); @@ -203,8 +203,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listSessionEntityTypes. */ public PagedCallSettings.Builder< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionEntityTypesPagedResponse> listSessionEntityTypesSettings() { return getStubSettingsBuilder().listSessionEntityTypesSettings(); diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java similarity index 88% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java index ac8673e27..6b5983189 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java @@ -51,13 +51,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -147,6 +147,12 @@ public SessionsStub getStub() { * method is not idempotent, because it may cause contexts and session entity types to be updated, * which in turn might affect results of future queries. * + *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI + * products now or in the future, consider using + * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of + * `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI + * products. + * *

Note: Always use agent versions for production traffic. See [Versions and * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). * @@ -195,6 +201,12 @@ public final DetectIntentResponse detectIntent(SessionName session, QueryInput q * method is not idempotent, because it may cause contexts and session entity types to be updated, * which in turn might affect results of future queries. * + *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI + * products now or in the future, consider using + * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of + * `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI + * products. + * *

Note: Always use agent versions for production traffic. See [Versions and * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). * @@ -240,6 +252,12 @@ public final DetectIntentResponse detectIntent(String session, QueryInput queryI * method is not idempotent, because it may cause contexts and session entity types to be updated, * which in turn might affect results of future queries. * + *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI + * products now or in the future, consider using + * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of + * `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI + * products. + * *

Note: Always use agent versions for production traffic. See [Versions and * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). * @@ -273,6 +291,12 @@ public final DetectIntentResponse detectIntent(DetectIntentRequest request) { * method is not idempotent, because it may cause contexts and session entity types to be updated, * which in turn might affect results of future queries. * + *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI + * products now or in the future, consider using + * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of + * `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI + * products. + * *

Note: Always use agent versions for production traffic. See [Versions and * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). * @@ -306,6 +330,12 @@ public final UnaryCallable detectInte * structured, actionable data as a result. This method is only available via the gRPC API (not * REST). * + *

If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI + * products now or in the future, consider using + * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] + * instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has additional functionality for + * Agent Assist and other CCAI products. + * *

Note: Always use agent versions for production traffic. See [Versions and * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). * diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java similarity index 95% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java index 1ba345f0e..7e0ec12d2 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.SessionsStubSettings; @@ -39,9 +40,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java index 8672a8d88..41b0495f1 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java @@ -56,13 +56,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -699,10 +699,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListVersionsPagedResponse extends AbstractPagedListResponse< - ListVersionsRequest, - ListVersionsResponse, - Version, - ListVersionsPage, + ListVersionsRequest, ListVersionsResponse, Version, ListVersionsPage, ListVersionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -751,10 +748,7 @@ public ApiFuture createPageAsync( public static class ListVersionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListVersionsRequest, - ListVersionsResponse, - Version, - ListVersionsPage, + ListVersionsRequest, ListVersionsResponse, Version, ListVersionsPage, ListVersionsFixedSizeCollection> { private ListVersionsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java similarity index 96% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java index c2c7eabf1..5b7b12ef1 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.dialogflow.v2.stub.VersionsStubSettings; @@ -42,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/gapic_metadata.json similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/gapic_metadata.json diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/package-info.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java index 49685f126..f069d6194 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AgentsStubSettings.java @@ -76,9 +76,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java index fb9bf8dae..68e268dfe 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/AnswerRecordsStubSettings.java @@ -60,9 +60,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -144,8 +144,7 @@ public Iterable extractResources(ListAnswerRecordsResponse payload ListAnswerRecordsRequest, ListAnswerRecordsResponse, ListAnswerRecordsPagedResponse> LIST_ANSWER_RECORDS_PAGE_STR_FACT = new PagedListResponseFactory< - ListAnswerRecordsRequest, - ListAnswerRecordsResponse, + ListAnswerRecordsRequest, ListAnswerRecordsResponse, ListAnswerRecordsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java index 298ee927a..b308c2a05 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ContextsStubSettings.java @@ -65,9 +65,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java similarity index 95% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java index 387b2783b..b9393a747 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationProfilesStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -101,8 +101,7 @@ public class ConversationProfilesStubSettings .build(); private final PagedCallSettings< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ListConversationProfilesPagedResponse> listConversationProfilesSettings; private final UnaryCallSettings @@ -118,8 +117,7 @@ public class ConversationProfilesStubSettings ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> LIST_CONVERSATION_PROFILES_PAGE_STR_DESC = new PagedListDescriptor< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile>() { @Override public String emptyToken() { @@ -162,13 +160,11 @@ public Iterable extractResources( }; private static final PagedListResponseFactory< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ListConversationProfilesPagedResponse> LIST_CONVERSATION_PROFILES_PAGE_STR_FACT = new PagedListResponseFactory< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ListConversationProfilesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -178,8 +174,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ConversationProfile> pageContext = PageContext.create( @@ -190,8 +185,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listConversationProfiles. */ public PagedCallSettings< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ListConversationProfilesPagedResponse> listConversationProfilesSettings() { return listConversationProfilesSettings; @@ -309,8 +303,7 @@ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ListConversationProfilesPagedResponse> listConversationProfilesSettings; private final UnaryCallSettings.Builder @@ -453,8 +446,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConversationProfiles. */ public PagedCallSettings.Builder< - ListConversationProfilesRequest, - ListConversationProfilesResponse, + ListConversationProfilesRequest, ListConversationProfilesResponse, ListConversationProfilesPagedResponse> listConversationProfilesSettings() { return listConversationProfilesSettings; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java index af475d871..e7d82d7cf 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ConversationsStubSettings.java @@ -66,9 +66,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -192,8 +192,7 @@ public Iterable extractResources(ListMessagesResponse payload) { ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> LIST_CONVERSATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListConversationsRequest, - ListConversationsResponse, + ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java index 5720254ae..39f0fe36d 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/DocumentsStubSettings.java @@ -71,9 +71,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java index 6aedc9e7f..8b1c7c76f 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EntityTypesStubSettings.java @@ -76,9 +76,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java index 96dd76bd9..e8eec4b9c 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java @@ -67,9 +67,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -215,8 +215,7 @@ public ApiFuture getFuturePagedResponse( GetEnvironmentHistoryRequest, EnvironmentHistory, GetEnvironmentHistoryPagedResponse> GET_ENVIRONMENT_HISTORY_PAGE_STR_FACT = new PagedListResponseFactory< - GetEnvironmentHistoryRequest, - EnvironmentHistory, + GetEnvironmentHistoryRequest, EnvironmentHistory, GetEnvironmentHistoryPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java index 42dcf9144..a24ba786a 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/FulfillmentsStubSettings.java @@ -50,9 +50,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java index 9bd3e58b2..a0a11255d 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAgentsStub.java @@ -46,6 +46,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java index e4ced7ffb..81b9bff95 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcAnswerRecordsStub.java @@ -33,6 +33,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java index 29aadffb7..06354dc5c 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcContextsStub.java @@ -38,6 +38,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java index d826056e5..db27b0a69 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationProfilesStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java index d3f4f18be..34b47ee64 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcConversationsStub.java @@ -38,6 +38,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java index 241c1345a..6c57f0aea 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcDocumentsStub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java index 57a808781..c52b14794 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEntityTypesStub.java @@ -46,6 +46,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java index 9d08e05c2..c23a10cbf 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcEnvironmentsStub.java @@ -40,6 +40,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java index 187fe7091..551fa0a9f 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcFulfillmentsStub.java @@ -30,6 +30,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java index dc96833e0..bf1cd5978 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcIntentsStub.java @@ -43,6 +43,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java index 761100664..2d8ba1677 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcKnowledgeBasesStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java index 370dc73a8..07447b07c 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcParticipantsStub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java index 4a160d5cf..f0a00d450 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionEntityTypesStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java index a7665312a..f3a5a6670 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcSessionsStub.java @@ -32,6 +32,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsCallableFactory.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsCallableFactory.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsCallableFactory.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsCallableFactory.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java similarity index 99% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java index 3677f2bf7..d656f2820 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/GrpcVersionsStub.java @@ -37,6 +37,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java index 5a071d951..f0c0b841a 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/IntentsStubSettings.java @@ -73,9 +73,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java index 57bc94ba5..5b3e5f081 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/KnowledgeBasesStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -152,8 +152,7 @@ public Iterable extractResources(ListKnowledgeBasesResponse paylo ListKnowledgeBasesRequest, ListKnowledgeBasesResponse, ListKnowledgeBasesPagedResponse> LIST_KNOWLEDGE_BASES_PAGE_STR_FACT = new PagedListResponseFactory< - ListKnowledgeBasesRequest, - ListKnowledgeBasesResponse, + ListKnowledgeBasesRequest, ListKnowledgeBasesResponse, ListKnowledgeBasesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java index da87ad783..b25623030 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/ParticipantsStubSettings.java @@ -68,9 +68,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java similarity index 95% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java index 621ce74d2..a98c60505 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionEntityTypesStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -100,8 +100,7 @@ public class SessionEntityTypesStubSettings extends StubSettings listSessionEntityTypesSettings; private final UnaryCallSettings @@ -157,13 +156,11 @@ public Iterable extractResources( }; private static final PagedListResponseFactory< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionEntityTypesPagedResponse> LIST_SESSION_ENTITY_TYPES_PAGE_STR_FACT = new PagedListResponseFactory< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionEntityTypesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -173,8 +170,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, SessionEntityType> pageContext = PageContext.create( @@ -185,8 +181,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listSessionEntityTypes. */ public PagedCallSettings< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionEntityTypesPagedResponse> listSessionEntityTypesSettings() { return listSessionEntityTypesSettings; @@ -304,8 +299,7 @@ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionEntityTypesPagedResponse> listSessionEntityTypesSettings; private final UnaryCallSettings.Builder @@ -448,8 +442,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listSessionEntityTypes. */ public PagedCallSettings.Builder< - ListSessionEntityTypesRequest, - ListSessionEntityTypesResponse, + ListSessionEntityTypesRequest, ListSessionEntityTypesResponse, ListSessionEntityTypesPagedResponse> listSessionEntityTypesSettings() { return listSessionEntityTypesSettings; diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java similarity index 97% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java index 76c01d261..ede9ca8df 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/SessionsStubSettings.java @@ -52,9 +52,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStub.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStub.java similarity index 100% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStub.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStub.java diff --git a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java similarity index 98% rename from google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java index 18ef5b3e5..4529e00ac 100644 --- a/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java +++ b/owl-bot-staging/v2/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/VersionsStubSettings.java @@ -64,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (dialogflow.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AgentsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AgentsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AgentsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AgentsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AnswerRecordsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AnswerRecordsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AnswerRecordsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/AnswerRecordsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/DocumentsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/DocumentsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/DocumentsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/DocumentsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EntityTypesClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EntityTypesClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EntityTypesClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EntityTypesClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EnvironmentsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EnvironmentsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EnvironmentsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/EnvironmentsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/FulfillmentsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/FulfillmentsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/FulfillmentsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/FulfillmentsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/IntentsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/IntentsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/IntentsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/IntentsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgents.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgents.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgents.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgents.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAgentsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecords.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecords.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecords.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecords.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecordsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecordsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecordsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockAnswerRecordsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContexts.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContexts.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContexts.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContexts.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockContextsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfiles.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfiles.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfiles.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfiles.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfilesImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfilesImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfilesImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationProfilesImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversations.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversations.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversations.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversations.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockConversationsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocuments.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocuments.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocuments.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocuments.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocumentsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocumentsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocumentsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockDocumentsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypes.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypes.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypes.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypes.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEntityTypesImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironments.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironments.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironments.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironments.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironmentsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironmentsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironmentsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockEnvironmentsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillments.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillments.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillments.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillments.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillmentsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillmentsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillmentsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockFulfillmentsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntents.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntents.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntents.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntents.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockIntentsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBases.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBases.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBases.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBases.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBasesImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBasesImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBasesImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockKnowledgeBasesImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipants.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipants.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipants.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipants.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipantsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipantsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipantsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockParticipantsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypes.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypes.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypes.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypes.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionEntityTypesImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessions.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessions.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessions.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessions.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockSessionsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersions.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersions.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersions.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersions.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersionsImpl.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersionsImpl.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersionsImpl.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/MockVersionsImpl.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/SessionsClientTest.java diff --git a/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/VersionsClientTest.java b/owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/VersionsClientTest.java similarity index 100% rename from google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/VersionsClientTest.java rename to owl-bot-staging/v2/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/VersionsClientTest.java diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java similarity index 58% rename from grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java index a821d4d0b..348fa1fa6 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; /** - * - * *

  * Service for managing [Agents][google.cloud.dialogflow.v2.Agent].
  * 
@@ -34,456 +17,347 @@ private AgentsGrpc() {} public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Agents"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetAgentRequest, com.google.cloud.dialogflow.v2.Agent> - getGetAgentMethod; + private static volatile io.grpc.MethodDescriptor getGetAgentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetAgent", requestType = com.google.cloud.dialogflow.v2.GetAgentRequest.class, responseType = com.google.cloud.dialogflow.v2.Agent.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetAgentRequest, com.google.cloud.dialogflow.v2.Agent> - getGetAgentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetAgentRequest, com.google.cloud.dialogflow.v2.Agent> - getGetAgentMethod; + public static io.grpc.MethodDescriptor getGetAgentMethod() { + io.grpc.MethodDescriptor getGetAgentMethod; if ((getGetAgentMethod = AgentsGrpc.getGetAgentMethod) == null) { synchronized (AgentsGrpc.class) { if ((getGetAgentMethod = AgentsGrpc.getGetAgentMethod) == null) { - AgentsGrpc.getGetAgentMethod = - getGetAgentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetAgentRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Agent.getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("GetAgent")) - .build(); + AgentsGrpc.getGetAgentMethod = getGetAgentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetAgentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Agent.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("GetAgent")) + .build(); } } } return getGetAgentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SetAgentRequest, com.google.cloud.dialogflow.v2.Agent> - getSetAgentMethod; + private static volatile io.grpc.MethodDescriptor getSetAgentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetAgent", requestType = com.google.cloud.dialogflow.v2.SetAgentRequest.class, responseType = com.google.cloud.dialogflow.v2.Agent.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SetAgentRequest, com.google.cloud.dialogflow.v2.Agent> - getSetAgentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SetAgentRequest, com.google.cloud.dialogflow.v2.Agent> - getSetAgentMethod; + public static io.grpc.MethodDescriptor getSetAgentMethod() { + io.grpc.MethodDescriptor getSetAgentMethod; if ((getSetAgentMethod = AgentsGrpc.getSetAgentMethod) == null) { synchronized (AgentsGrpc.class) { if ((getSetAgentMethod = AgentsGrpc.getSetAgentMethod) == null) { - AgentsGrpc.getSetAgentMethod = - getSetAgentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAgent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SetAgentRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Agent.getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("SetAgent")) - .build(); + AgentsGrpc.getSetAgentMethod = getSetAgentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SetAgentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Agent.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("SetAgent")) + .build(); } } } return getSetAgentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteAgentRequest, com.google.protobuf.Empty> - getDeleteAgentMethod; + private static volatile io.grpc.MethodDescriptor getDeleteAgentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteAgent", requestType = com.google.cloud.dialogflow.v2.DeleteAgentRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteAgentRequest, com.google.protobuf.Empty> - getDeleteAgentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteAgentRequest, com.google.protobuf.Empty> - getDeleteAgentMethod; + public static io.grpc.MethodDescriptor getDeleteAgentMethod() { + io.grpc.MethodDescriptor getDeleteAgentMethod; if ((getDeleteAgentMethod = AgentsGrpc.getDeleteAgentMethod) == null) { synchronized (AgentsGrpc.class) { if ((getDeleteAgentMethod = AgentsGrpc.getDeleteAgentMethod) == null) { - AgentsGrpc.getDeleteAgentMethod = - getDeleteAgentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAgent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteAgentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("DeleteAgent")) - .build(); + AgentsGrpc.getDeleteAgentMethod = getDeleteAgentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteAgentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("DeleteAgent")) + .build(); } } } return getDeleteAgentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SearchAgentsRequest, - com.google.cloud.dialogflow.v2.SearchAgentsResponse> - getSearchAgentsMethod; + private static volatile io.grpc.MethodDescriptor getSearchAgentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchAgents", requestType = com.google.cloud.dialogflow.v2.SearchAgentsRequest.class, responseType = com.google.cloud.dialogflow.v2.SearchAgentsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SearchAgentsRequest, - com.google.cloud.dialogflow.v2.SearchAgentsResponse> - getSearchAgentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.SearchAgentsRequest, - com.google.cloud.dialogflow.v2.SearchAgentsResponse> - getSearchAgentsMethod; + public static io.grpc.MethodDescriptor getSearchAgentsMethod() { + io.grpc.MethodDescriptor getSearchAgentsMethod; if ((getSearchAgentsMethod = AgentsGrpc.getSearchAgentsMethod) == null) { synchronized (AgentsGrpc.class) { if ((getSearchAgentsMethod = AgentsGrpc.getSearchAgentsMethod) == null) { - AgentsGrpc.getSearchAgentsMethod = - getSearchAgentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAgents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SearchAgentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.SearchAgentsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("SearchAgents")) - .build(); + AgentsGrpc.getSearchAgentsMethod = getSearchAgentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAgents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SearchAgentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SearchAgentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("SearchAgents")) + .build(); } } } return getSearchAgentsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.TrainAgentRequest, com.google.longrunning.Operation> - getTrainAgentMethod; + private static volatile io.grpc.MethodDescriptor getTrainAgentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TrainAgent", requestType = com.google.cloud.dialogflow.v2.TrainAgentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.TrainAgentRequest, com.google.longrunning.Operation> - getTrainAgentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.TrainAgentRequest, com.google.longrunning.Operation> - getTrainAgentMethod; + public static io.grpc.MethodDescriptor getTrainAgentMethod() { + io.grpc.MethodDescriptor getTrainAgentMethod; if ((getTrainAgentMethod = AgentsGrpc.getTrainAgentMethod) == null) { synchronized (AgentsGrpc.class) { if ((getTrainAgentMethod = AgentsGrpc.getTrainAgentMethod) == null) { - AgentsGrpc.getTrainAgentMethod = - getTrainAgentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TrainAgent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.TrainAgentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("TrainAgent")) - .build(); + AgentsGrpc.getTrainAgentMethod = getTrainAgentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TrainAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.TrainAgentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("TrainAgent")) + .build(); } } } return getTrainAgentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ExportAgentRequest, com.google.longrunning.Operation> - getExportAgentMethod; + private static volatile io.grpc.MethodDescriptor getExportAgentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportAgent", requestType = com.google.cloud.dialogflow.v2.ExportAgentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ExportAgentRequest, com.google.longrunning.Operation> - getExportAgentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ExportAgentRequest, com.google.longrunning.Operation> - getExportAgentMethod; + public static io.grpc.MethodDescriptor getExportAgentMethod() { + io.grpc.MethodDescriptor getExportAgentMethod; if ((getExportAgentMethod = AgentsGrpc.getExportAgentMethod) == null) { synchronized (AgentsGrpc.class) { if ((getExportAgentMethod = AgentsGrpc.getExportAgentMethod) == null) { - AgentsGrpc.getExportAgentMethod = - getExportAgentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAgent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ExportAgentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("ExportAgent")) - .build(); + AgentsGrpc.getExportAgentMethod = getExportAgentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ExportAgentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("ExportAgent")) + .build(); } } } return getExportAgentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ImportAgentRequest, com.google.longrunning.Operation> - getImportAgentMethod; + private static volatile io.grpc.MethodDescriptor getImportAgentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ImportAgent", requestType = com.google.cloud.dialogflow.v2.ImportAgentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ImportAgentRequest, com.google.longrunning.Operation> - getImportAgentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ImportAgentRequest, com.google.longrunning.Operation> - getImportAgentMethod; + public static io.grpc.MethodDescriptor getImportAgentMethod() { + io.grpc.MethodDescriptor getImportAgentMethod; if ((getImportAgentMethod = AgentsGrpc.getImportAgentMethod) == null) { synchronized (AgentsGrpc.class) { if ((getImportAgentMethod = AgentsGrpc.getImportAgentMethod) == null) { - AgentsGrpc.getImportAgentMethod = - getImportAgentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportAgent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ImportAgentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("ImportAgent")) - .build(); + AgentsGrpc.getImportAgentMethod = getImportAgentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ImportAgentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("ImportAgent")) + .build(); } } } return getImportAgentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.RestoreAgentRequest, com.google.longrunning.Operation> - getRestoreAgentMethod; + private static volatile io.grpc.MethodDescriptor getRestoreAgentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RestoreAgent", requestType = com.google.cloud.dialogflow.v2.RestoreAgentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.RestoreAgentRequest, com.google.longrunning.Operation> - getRestoreAgentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.RestoreAgentRequest, com.google.longrunning.Operation> - getRestoreAgentMethod; + public static io.grpc.MethodDescriptor getRestoreAgentMethod() { + io.grpc.MethodDescriptor getRestoreAgentMethod; if ((getRestoreAgentMethod = AgentsGrpc.getRestoreAgentMethod) == null) { synchronized (AgentsGrpc.class) { if ((getRestoreAgentMethod = AgentsGrpc.getRestoreAgentMethod) == null) { - AgentsGrpc.getRestoreAgentMethod = - getRestoreAgentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreAgent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.RestoreAgentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("RestoreAgent")) - .build(); + AgentsGrpc.getRestoreAgentMethod = getRestoreAgentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.RestoreAgentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("RestoreAgent")) + .build(); } } } return getRestoreAgentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetValidationResultRequest, - com.google.cloud.dialogflow.v2.ValidationResult> - getGetValidationResultMethod; + private static volatile io.grpc.MethodDescriptor getGetValidationResultMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetValidationResult", requestType = com.google.cloud.dialogflow.v2.GetValidationResultRequest.class, responseType = com.google.cloud.dialogflow.v2.ValidationResult.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetValidationResultRequest, - com.google.cloud.dialogflow.v2.ValidationResult> - getGetValidationResultMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetValidationResultRequest, - com.google.cloud.dialogflow.v2.ValidationResult> - getGetValidationResultMethod; + public static io.grpc.MethodDescriptor getGetValidationResultMethod() { + io.grpc.MethodDescriptor 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(SERVICE_NAME, "GetValidationResult")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetValidationResultRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ValidationResult.getDefaultInstance())) - .setSchemaDescriptor( - new AgentsMethodDescriptorSupplier("GetValidationResult")) - .build(); + AgentsGrpc.getGetValidationResultMethod = getGetValidationResultMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetValidationResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetValidationResultRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ValidationResult.getDefaultInstance())) + .setSchemaDescriptor(new AgentsMethodDescriptorSupplier("GetValidationResult")) + .build(); } } } return getGetValidationResultMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static AgentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentsStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentsStub(channel, callOptions); + } + }; return AgentsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static AgentsBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static AgentsBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentsBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentsBlockingStub(channel, callOptions); + } + }; return AgentsBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AgentsFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AgentsFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AgentsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AgentsFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentsFutureStub(channel, callOptions); + } + }; return AgentsFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for managing [Agents][google.cloud.dialogflow.v2.Agent].
    * 
*/ - public abstract static class AgentsImplBase implements io.grpc.BindableService { + public static abstract class AgentsImplBase implements io.grpc.BindableService { /** - * - * *
      * Retrieves the specified agent.
      * 
*/ - public void getAgent( - com.google.cloud.dialogflow.v2.GetAgentRequest request, + public void getAgent(com.google.cloud.dialogflow.v2.GetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); } /** - * - * *
      * Creates/updates the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -491,29 +365,22 @@ public void getAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void setAgent( - com.google.cloud.dialogflow.v2.SetAgentRequest request, + public void setAgent(com.google.cloud.dialogflow.v2.SetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAgentMethod(), responseObserver); } /** - * - * *
      * Deletes the specified agent.
      * 
*/ - public void deleteAgent( - com.google.cloud.dialogflow.v2.DeleteAgentRequest request, + public void deleteAgent(com.google.cloud.dialogflow.v2.DeleteAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAgentMethod(), responseObserver); } /** - * - * *
      * Returns the list of agents.
      * Since there is at most one conversational agent per project, this method is
@@ -523,17 +390,12 @@ public void deleteAgent(
      * Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
      * 
*/ - public void searchAgents( - com.google.cloud.dialogflow.v2.SearchAgentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchAgentsMethod(), responseObserver); + public void searchAgents(com.google.cloud.dialogflow.v2.SearchAgentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAgentsMethod(), responseObserver); } /** - * - * *
      * Trains the specified agent.
      * This method is a [long-running
@@ -548,15 +410,12 @@ public void searchAgents(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void trainAgent( - com.google.cloud.dialogflow.v2.TrainAgentRequest request, + public void trainAgent(com.google.cloud.dialogflow.v2.TrainAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTrainAgentMethod(), responseObserver); } /** - * - * *
      * Exports the specified agent to a ZIP file.
      * This method is a [long-running
@@ -567,16 +426,12 @@ public void trainAgent(
      * - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
      * 
*/ - public void exportAgent( - com.google.cloud.dialogflow.v2.ExportAgentRequest request, + public void exportAgent(com.google.cloud.dialogflow.v2.ExportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAgentMethod(), responseObserver); } /** - * - * *
      * Imports the specified agent from a ZIP file.
      * Uploads new intents and entity types without deleting the existing ones.
@@ -600,16 +455,12 @@ public void exportAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void importAgent( - com.google.cloud.dialogflow.v2.ImportAgentRequest request, + public void importAgent(com.google.cloud.dialogflow.v2.ImportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportAgentMethod(), responseObserver); } /** - * - * *
      * Restores the specified agent from a ZIP file.
      * Replaces the current agent version with a new one. All the intents and
@@ -632,126 +483,120 @@ public void importAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void restoreAgent( - com.google.cloud.dialogflow.v2.RestoreAgentRequest request, + public void restoreAgent(com.google.cloud.dialogflow.v2.RestoreAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreAgentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreAgentMethod(), 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.v2.GetValidationResultRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetValidationResultMethod(), responseObserver); + public void getValidationResult(com.google.cloud.dialogflow.v2.GetValidationResultRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetValidationResultMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetAgentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetAgentRequest, - com.google.cloud.dialogflow.v2.Agent>(this, METHODID_GET_AGENT))) + getGetAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetAgentRequest, + com.google.cloud.dialogflow.v2.Agent>( + this, METHODID_GET_AGENT))) .addMethod( - getSetAgentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.SetAgentRequest, - com.google.cloud.dialogflow.v2.Agent>(this, METHODID_SET_AGENT))) + getSetAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.SetAgentRequest, + com.google.cloud.dialogflow.v2.Agent>( + this, METHODID_SET_AGENT))) .addMethod( - getDeleteAgentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteAgentRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_AGENT))) + getDeleteAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteAgentRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_AGENT))) .addMethod( - getSearchAgentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.SearchAgentsRequest, - com.google.cloud.dialogflow.v2.SearchAgentsResponse>( - this, METHODID_SEARCH_AGENTS))) + getSearchAgentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.SearchAgentsRequest, + com.google.cloud.dialogflow.v2.SearchAgentsResponse>( + this, METHODID_SEARCH_AGENTS))) .addMethod( - getTrainAgentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.TrainAgentRequest, - com.google.longrunning.Operation>(this, METHODID_TRAIN_AGENT))) + getTrainAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.TrainAgentRequest, + com.google.longrunning.Operation>( + this, METHODID_TRAIN_AGENT))) .addMethod( - getExportAgentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ExportAgentRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_AGENT))) + getExportAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ExportAgentRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_AGENT))) .addMethod( - getImportAgentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ImportAgentRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_AGENT))) + getImportAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ImportAgentRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_AGENT))) .addMethod( - getRestoreAgentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.RestoreAgentRequest, - com.google.longrunning.Operation>(this, METHODID_RESTORE_AGENT))) + getRestoreAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.RestoreAgentRequest, + com.google.longrunning.Operation>( + this, METHODID_RESTORE_AGENT))) .addMethod( - getGetValidationResultMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetValidationResultRequest, - com.google.cloud.dialogflow.v2.ValidationResult>( - this, METHODID_GET_VALIDATION_RESULT))) + getGetValidationResultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetValidationResultRequest, + com.google.cloud.dialogflow.v2.ValidationResult>( + this, METHODID_GET_VALIDATION_RESULT))) .build(); } } /** - * - * *
    * Service for managing [Agents][google.cloud.dialogflow.v2.Agent].
    * 
*/ public static final class AgentsStub extends io.grpc.stub.AbstractAsyncStub { - private AgentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private AgentsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AgentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AgentsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AgentsStub(channel, callOptions); } /** - * - * *
      * Retrieves the specified agent.
      * 
*/ - public void getAgent( - com.google.cloud.dialogflow.v2.GetAgentRequest request, + public void getAgent(com.google.cloud.dialogflow.v2.GetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAgentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates/updates the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -759,32 +604,24 @@ public void getAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void setAgent( - com.google.cloud.dialogflow.v2.SetAgentRequest request, + public void setAgent(com.google.cloud.dialogflow.v2.SetAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetAgentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes the specified agent.
      * 
*/ - public void deleteAgent( - com.google.cloud.dialogflow.v2.DeleteAgentRequest request, + public void deleteAgent(com.google.cloud.dialogflow.v2.DeleteAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns the list of agents.
      * Since there is at most one conversational agent per project, this method is
@@ -794,19 +631,13 @@ public void deleteAgent(
      * Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
      * 
*/ - public void searchAgents( - com.google.cloud.dialogflow.v2.SearchAgentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void searchAgents(com.google.cloud.dialogflow.v2.SearchAgentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Trains the specified agent.
      * This method is a [long-running
@@ -821,16 +652,13 @@ public void searchAgents(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void trainAgent( - com.google.cloud.dialogflow.v2.TrainAgentRequest request, + public void trainAgent(com.google.cloud.dialogflow.v2.TrainAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTrainAgentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Exports the specified agent to a ZIP file.
      * This method is a [long-running
@@ -841,18 +669,13 @@ public void trainAgent(
      * - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
      * 
*/ - public void exportAgent( - com.google.cloud.dialogflow.v2.ExportAgentRequest request, + public void exportAgent(com.google.cloud.dialogflow.v2.ExportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportAgentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getExportAgentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Imports the specified agent from a ZIP file.
      * Uploads new intents and entity types without deleting the existing ones.
@@ -876,18 +699,13 @@ public void exportAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void importAgent( - com.google.cloud.dialogflow.v2.ImportAgentRequest request, + public void importAgent(com.google.cloud.dialogflow.v2.ImportAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportAgentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getImportAgentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Restores the specified agent from a ZIP file.
      * Replaces the current agent version with a new one. All the intents and
@@ -910,68 +728,53 @@ public void importAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void restoreAgent( - com.google.cloud.dialogflow.v2.RestoreAgentRequest request, + public void restoreAgent(com.google.cloud.dialogflow.v2.RestoreAgentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreAgentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRestoreAgentMethod(), getCallOptions()), 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.v2.GetValidationResultRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getValidationResult(com.google.cloud.dialogflow.v2.GetValidationResultRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetValidationResultMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetValidationResultMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service for managing [Agents][google.cloud.dialogflow.v2.Agent].
    * 
*/ - public static final class AgentsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AgentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AgentsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AgentsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AgentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AgentsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AgentsBlockingStub(channel, callOptions); } /** - * - * *
      * Retrieves the specified agent.
      * 
*/ - public com.google.cloud.dialogflow.v2.Agent getAgent( - com.google.cloud.dialogflow.v2.GetAgentRequest request) { + public com.google.cloud.dialogflow.v2.Agent getAgent(com.google.cloud.dialogflow.v2.GetAgentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAgentMethod(), getCallOptions(), request); } /** - * - * *
      * Creates/updates the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -979,28 +782,22 @@ public com.google.cloud.dialogflow.v2.Agent getAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.cloud.dialogflow.v2.Agent setAgent( - com.google.cloud.dialogflow.v2.SetAgentRequest request) { + public com.google.cloud.dialogflow.v2.Agent setAgent(com.google.cloud.dialogflow.v2.SetAgentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSetAgentMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes the specified agent.
      * 
*/ - public com.google.protobuf.Empty deleteAgent( - com.google.cloud.dialogflow.v2.DeleteAgentRequest request) { + public com.google.protobuf.Empty deleteAgent(com.google.cloud.dialogflow.v2.DeleteAgentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAgentMethod(), getCallOptions(), request); } /** - * - * *
      * Returns the list of agents.
      * Since there is at most one conversational agent per project, this method is
@@ -1010,15 +807,12 @@ public com.google.protobuf.Empty deleteAgent(
      * Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
      * 
*/ - public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents( - com.google.cloud.dialogflow.v2.SearchAgentsRequest request) { + public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents(com.google.cloud.dialogflow.v2.SearchAgentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchAgentsMethod(), getCallOptions(), request); } /** - * - * *
      * Trains the specified agent.
      * This method is a [long-running
@@ -1033,15 +827,12 @@ public com.google.cloud.dialogflow.v2.SearchAgentsResponse searchAgents(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation trainAgent( - com.google.cloud.dialogflow.v2.TrainAgentRequest request) { + public com.google.longrunning.Operation trainAgent(com.google.cloud.dialogflow.v2.TrainAgentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTrainAgentMethod(), getCallOptions(), request); } /** - * - * *
      * Exports the specified agent to a ZIP file.
      * This method is a [long-running
@@ -1052,15 +843,12 @@ public com.google.longrunning.Operation trainAgent(
      * - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
      * 
*/ - public com.google.longrunning.Operation exportAgent( - com.google.cloud.dialogflow.v2.ExportAgentRequest request) { + public com.google.longrunning.Operation exportAgent(com.google.cloud.dialogflow.v2.ExportAgentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportAgentMethod(), getCallOptions(), request); } /** - * - * *
      * Imports the specified agent from a ZIP file.
      * Uploads new intents and entity types without deleting the existing ones.
@@ -1084,15 +872,12 @@ public com.google.longrunning.Operation exportAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation importAgent( - com.google.cloud.dialogflow.v2.ImportAgentRequest request) { + public com.google.longrunning.Operation importAgent(com.google.cloud.dialogflow.v2.ImportAgentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getImportAgentMethod(), getCallOptions(), request); } /** - * - * *
      * Restores the specified agent from a ZIP file.
      * Replaces the current agent version with a new one. All the intents and
@@ -1115,61 +900,52 @@ public com.google.longrunning.Operation importAgent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation restoreAgent( - com.google.cloud.dialogflow.v2.RestoreAgentRequest request) { + public com.google.longrunning.Operation restoreAgent(com.google.cloud.dialogflow.v2.RestoreAgentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRestoreAgentMethod(), 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.v2.ValidationResult getValidationResult( - com.google.cloud.dialogflow.v2.GetValidationResultRequest request) { + public com.google.cloud.dialogflow.v2.ValidationResult getValidationResult(com.google.cloud.dialogflow.v2.GetValidationResultRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetValidationResultMethod(), getCallOptions(), request); } } /** - * - * *
    * Service for managing [Agents][google.cloud.dialogflow.v2.Agent].
    * 
*/ - public static final class AgentsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AgentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AgentsFutureStub extends io.grpc.stub.AbstractFutureStub { + private AgentsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AgentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AgentsFutureStub(channel, callOptions); } /** - * - * *
      * Retrieves the specified agent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getAgent(com.google.cloud.dialogflow.v2.GetAgentRequest request) { + public com.google.common.util.concurrent.ListenableFuture getAgent( + com.google.cloud.dialogflow.v2.GetAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); } /** - * - * *
      * Creates/updates the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -1177,28 +953,24 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - setAgent(com.google.cloud.dialogflow.v2.SetAgentRequest request) { + public com.google.common.util.concurrent.ListenableFuture setAgent( + com.google.cloud.dialogflow.v2.SetAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetAgentMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes the specified agent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteAgent(com.google.cloud.dialogflow.v2.DeleteAgentRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteAgent( + com.google.cloud.dialogflow.v2.DeleteAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAgentMethod(), getCallOptions()), request); } /** - * - * *
      * Returns the list of agents.
      * Since there is at most one conversational agent per project, this method is
@@ -1208,16 +980,13 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.SearchAgentsResponse> - searchAgents(com.google.cloud.dialogflow.v2.SearchAgentsRequest request) { + public com.google.common.util.concurrent.ListenableFuture searchAgents( + com.google.cloud.dialogflow.v2.SearchAgentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request); } /** - * - * *
      * Trains the specified agent.
      * This method is a [long-running
@@ -1232,15 +1001,13 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - trainAgent(com.google.cloud.dialogflow.v2.TrainAgentRequest request) { + public com.google.common.util.concurrent.ListenableFuture trainAgent( + com.google.cloud.dialogflow.v2.TrainAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTrainAgentMethod(), getCallOptions()), request); } /** - * - * *
      * Exports the specified agent to a ZIP file.
      * This method is a [long-running
@@ -1251,15 +1018,13 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - exportAgent(com.google.cloud.dialogflow.v2.ExportAgentRequest request) { + public com.google.common.util.concurrent.ListenableFuture exportAgent( + com.google.cloud.dialogflow.v2.ExportAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportAgentMethod(), getCallOptions()), request); } /** - * - * *
      * Imports the specified agent from a ZIP file.
      * Uploads new intents and entity types without deleting the existing ones.
@@ -1283,15 +1048,13 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - importAgent(com.google.cloud.dialogflow.v2.ImportAgentRequest request) { + public com.google.common.util.concurrent.ListenableFuture importAgent( + com.google.cloud.dialogflow.v2.ImportAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getImportAgentMethod(), getCallOptions()), request); } /** - * - * *
      * Restores the specified agent from a ZIP file.
      * Replaces the current agent version with a new one. All the intents and
@@ -1314,23 +1077,20 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - restoreAgent(com.google.cloud.dialogflow.v2.RestoreAgentRequest request) { + public com.google.common.util.concurrent.ListenableFuture restoreAgent( + com.google.cloud.dialogflow.v2.RestoreAgentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreAgentMethod(), 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.v2.ValidationResult> - getValidationResult(com.google.cloud.dialogflow.v2.GetValidationResultRequest request) { + public com.google.common.util.concurrent.ListenableFuture getValidationResult( + com.google.cloud.dialogflow.v2.GetValidationResultRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetValidationResultMethod(), getCallOptions()), request); } @@ -1346,11 +1106,11 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca 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, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AgentsImplBase serviceImpl; private final int methodId; @@ -1364,51 +1124,40 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_AGENT: - serviceImpl.getAgent( - (com.google.cloud.dialogflow.v2.GetAgentRequest) request, + serviceImpl.getAgent((com.google.cloud.dialogflow.v2.GetAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_AGENT: - serviceImpl.setAgent( - (com.google.cloud.dialogflow.v2.SetAgentRequest) request, + serviceImpl.setAgent((com.google.cloud.dialogflow.v2.SetAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_AGENT: - serviceImpl.deleteAgent( - (com.google.cloud.dialogflow.v2.DeleteAgentRequest) request, + serviceImpl.deleteAgent((com.google.cloud.dialogflow.v2.DeleteAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEARCH_AGENTS: - serviceImpl.searchAgents( - (com.google.cloud.dialogflow.v2.SearchAgentsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.searchAgents((com.google.cloud.dialogflow.v2.SearchAgentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TRAIN_AGENT: - serviceImpl.trainAgent( - (com.google.cloud.dialogflow.v2.TrainAgentRequest) request, + serviceImpl.trainAgent((com.google.cloud.dialogflow.v2.TrainAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_EXPORT_AGENT: - serviceImpl.exportAgent( - (com.google.cloud.dialogflow.v2.ExportAgentRequest) request, + serviceImpl.exportAgent((com.google.cloud.dialogflow.v2.ExportAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_IMPORT_AGENT: - serviceImpl.importAgent( - (com.google.cloud.dialogflow.v2.ImportAgentRequest) request, + serviceImpl.importAgent((com.google.cloud.dialogflow.v2.ImportAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESTORE_AGENT: - serviceImpl.restoreAgent( - (com.google.cloud.dialogflow.v2.RestoreAgentRequest) request, + serviceImpl.restoreAgent((com.google.cloud.dialogflow.v2.RestoreAgentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_VALIDATION_RESULT: - serviceImpl.getValidationResult( - (com.google.cloud.dialogflow.v2.GetValidationResultRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getValidationResult((com.google.cloud.dialogflow.v2.GetValidationResultRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -1426,9 +1175,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class AgentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class AgentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AgentsBaseDescriptorSupplier() {} @java.lang.Override @@ -1442,11 +1190,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class AgentsFileDescriptorSupplier extends AgentsBaseDescriptorSupplier { + private static final class AgentsFileDescriptorSupplier + extends AgentsBaseDescriptorSupplier { AgentsFileDescriptorSupplier() {} } - private static final class AgentsMethodDescriptorSupplier extends AgentsBaseDescriptorSupplier + private static final class AgentsMethodDescriptorSupplier + extends AgentsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -1468,20 +1218,18 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (AgentsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AgentsFileDescriptorSupplier()) - .addMethod(getGetAgentMethod()) - .addMethod(getSetAgentMethod()) - .addMethod(getDeleteAgentMethod()) - .addMethod(getSearchAgentsMethod()) - .addMethod(getTrainAgentMethod()) - .addMethod(getExportAgentMethod()) - .addMethod(getImportAgentMethod()) - .addMethod(getRestoreAgentMethod()) - .addMethod(getGetValidationResultMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AgentsFileDescriptorSupplier()) + .addMethod(getGetAgentMethod()) + .addMethod(getSetAgentMethod()) + .addMethod(getDeleteAgentMethod()) + .addMethod(getSearchAgentsMethod()) + .addMethod(getTrainAgentMethod()) + .addMethod(getExportAgentMethod()) + .addMethod(getImportAgentMethod()) + .addMethod(getRestoreAgentMethod()) + .addMethod(getGetValidationResultMethod()) + .build(); } } } diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java new file mode 100644 index 000000000..6b13b39e8 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsGrpc.java @@ -0,0 +1,392 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/answer_record.proto") +public final class AnswerRecordsGrpc { + + private AnswerRecordsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.AnswerRecords"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListAnswerRecordsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAnswerRecords", + requestType = com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAnswerRecordsMethod() { + io.grpc.MethodDescriptor getListAnswerRecordsMethod; + if ((getListAnswerRecordsMethod = AnswerRecordsGrpc.getListAnswerRecordsMethod) == null) { + synchronized (AnswerRecordsGrpc.class) { + if ((getListAnswerRecordsMethod = AnswerRecordsGrpc.getListAnswerRecordsMethod) == null) { + AnswerRecordsGrpc.getListAnswerRecordsMethod = getListAnswerRecordsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAnswerRecords")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AnswerRecordsMethodDescriptorSupplier("ListAnswerRecords")) + .build(); + } + } + } + return getListAnswerRecordsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateAnswerRecordMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAnswerRecord", + requestType = com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest.class, + responseType = com.google.cloud.dialogflow.v2.AnswerRecord.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateAnswerRecordMethod() { + io.grpc.MethodDescriptor getUpdateAnswerRecordMethod; + if ((getUpdateAnswerRecordMethod = AnswerRecordsGrpc.getUpdateAnswerRecordMethod) == null) { + synchronized (AnswerRecordsGrpc.class) { + if ((getUpdateAnswerRecordMethod = AnswerRecordsGrpc.getUpdateAnswerRecordMethod) == null) { + AnswerRecordsGrpc.getUpdateAnswerRecordMethod = getUpdateAnswerRecordMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAnswerRecord")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.AnswerRecord.getDefaultInstance())) + .setSchemaDescriptor(new AnswerRecordsMethodDescriptorSupplier("UpdateAnswerRecord")) + .build(); + } + } + } + return getUpdateAnswerRecordMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AnswerRecordsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnswerRecordsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnswerRecordsStub(channel, callOptions); + } + }; + return AnswerRecordsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AnswerRecordsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnswerRecordsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnswerRecordsBlockingStub(channel, callOptions); + } + }; + return AnswerRecordsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AnswerRecordsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnswerRecordsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnswerRecordsFutureStub(channel, callOptions); + } + }; + return AnswerRecordsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
+   * 
+ */ + public static abstract class AnswerRecordsImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the list of all answer records in the specified project in reverse
+     * chronological order.
+     * 
+ */ + public void listAnswerRecords(com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAnswerRecordsMethod(), responseObserver); + } + + /** + *
+     * Updates the specified answer record.
+     * 
+ */ + public void updateAnswerRecord(com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAnswerRecordMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAnswerRecordsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest, + com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse>( + this, METHODID_LIST_ANSWER_RECORDS))) + .addMethod( + getUpdateAnswerRecordMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest, + com.google.cloud.dialogflow.v2.AnswerRecord>( + this, METHODID_UPDATE_ANSWER_RECORD))) + .build(); + } + } + + /** + *
+   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
+   * 
+ */ + public static final class AnswerRecordsStub extends io.grpc.stub.AbstractAsyncStub { + private AnswerRecordsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnswerRecordsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnswerRecordsStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all answer records in the specified project in reverse
+     * chronological order.
+     * 
+ */ + public void listAnswerRecords(com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified answer record.
+     * 
+ */ + public void updateAnswerRecord(com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
+   * 
+ */ + public static final class AnswerRecordsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AnswerRecordsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnswerRecordsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnswerRecordsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all answer records in the specified project in reverse
+     * chronological order.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListAnswerRecordsResponse listAnswerRecords(com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAnswerRecordsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified answer record.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.AnswerRecord updateAnswerRecord(com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAnswerRecordMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
+   * 
+ */ + public static final class AnswerRecordsFutureStub extends io.grpc.stub.AbstractFutureStub { + private AnswerRecordsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnswerRecordsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnswerRecordsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all answer records in the specified project in reverse
+     * chronological order.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAnswerRecords( + com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAnswerRecordsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified answer record.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateAnswerRecord( + com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAnswerRecordMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ANSWER_RECORDS = 0; + private static final int METHODID_UPDATE_ANSWER_RECORD = 1; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AnswerRecordsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AnswerRecordsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_ANSWER_RECORDS: + serviceImpl.listAnswerRecords((com.google.cloud.dialogflow.v2.ListAnswerRecordsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ANSWER_RECORD: + serviceImpl.updateAnswerRecord((com.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AnswerRecordsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AnswerRecordsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AnswerRecords"); + } + } + + private static final class AnswerRecordsFileDescriptorSupplier + extends AnswerRecordsBaseDescriptorSupplier { + AnswerRecordsFileDescriptorSupplier() {} + } + + private static final class AnswerRecordsMethodDescriptorSupplier + extends AnswerRecordsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AnswerRecordsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AnswerRecordsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AnswerRecordsFileDescriptorSupplier()) + .addMethod(getListAnswerRecordsMethod()) + .addMethod(getUpdateAnswerRecordMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java new file mode 100644 index 000000000..51cc61a74 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextsGrpc.java @@ -0,0 +1,736 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/context.proto") +public final class ContextsGrpc { + + private ContextsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Contexts"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListContextsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListContexts", + requestType = com.google.cloud.dialogflow.v2.ListContextsRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListContextsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListContextsMethod() { + io.grpc.MethodDescriptor getListContextsMethod; + if ((getListContextsMethod = ContextsGrpc.getListContextsMethod) == null) { + synchronized (ContextsGrpc.class) { + if ((getListContextsMethod = ContextsGrpc.getListContextsMethod) == null) { + ContextsGrpc.getListContextsMethod = getListContextsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContexts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListContextsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListContextsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("ListContexts")) + .build(); + } + } + } + return getListContextsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetContext", + requestType = com.google.cloud.dialogflow.v2.GetContextRequest.class, + responseType = com.google.cloud.dialogflow.v2.Context.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetContextMethod() { + io.grpc.MethodDescriptor getGetContextMethod; + if ((getGetContextMethod = ContextsGrpc.getGetContextMethod) == null) { + synchronized (ContextsGrpc.class) { + if ((getGetContextMethod = ContextsGrpc.getGetContextMethod) == null) { + ContextsGrpc.getGetContextMethod = getGetContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Context.getDefaultInstance())) + .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("GetContext")) + .build(); + } + } + } + return getGetContextMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateContext", + requestType = com.google.cloud.dialogflow.v2.CreateContextRequest.class, + responseType = com.google.cloud.dialogflow.v2.Context.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateContextMethod() { + io.grpc.MethodDescriptor getCreateContextMethod; + if ((getCreateContextMethod = ContextsGrpc.getCreateContextMethod) == null) { + synchronized (ContextsGrpc.class) { + if ((getCreateContextMethod = ContextsGrpc.getCreateContextMethod) == null) { + ContextsGrpc.getCreateContextMethod = getCreateContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Context.getDefaultInstance())) + .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("CreateContext")) + .build(); + } + } + } + return getCreateContextMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateContext", + requestType = com.google.cloud.dialogflow.v2.UpdateContextRequest.class, + responseType = com.google.cloud.dialogflow.v2.Context.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateContextMethod() { + io.grpc.MethodDescriptor getUpdateContextMethod; + if ((getUpdateContextMethod = ContextsGrpc.getUpdateContextMethod) == null) { + synchronized (ContextsGrpc.class) { + if ((getUpdateContextMethod = ContextsGrpc.getUpdateContextMethod) == null) { + ContextsGrpc.getUpdateContextMethod = getUpdateContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Context.getDefaultInstance())) + .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("UpdateContext")) + .build(); + } + } + } + return getUpdateContextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteContext", + requestType = com.google.cloud.dialogflow.v2.DeleteContextRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteContextMethod() { + io.grpc.MethodDescriptor getDeleteContextMethod; + if ((getDeleteContextMethod = ContextsGrpc.getDeleteContextMethod) == null) { + synchronized (ContextsGrpc.class) { + if ((getDeleteContextMethod = ContextsGrpc.getDeleteContextMethod) == null) { + ContextsGrpc.getDeleteContextMethod = getDeleteContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("DeleteContext")) + .build(); + } + } + } + return getDeleteContextMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAllContextsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAllContexts", + requestType = com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAllContextsMethod() { + io.grpc.MethodDescriptor getDeleteAllContextsMethod; + if ((getDeleteAllContextsMethod = ContextsGrpc.getDeleteAllContextsMethod) == null) { + synchronized (ContextsGrpc.class) { + if ((getDeleteAllContextsMethod = ContextsGrpc.getDeleteAllContextsMethod) == null) { + ContextsGrpc.getDeleteAllContextsMethod = getDeleteAllContextsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAllContexts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ContextsMethodDescriptorSupplier("DeleteAllContexts")) + .build(); + } + } + } + return getDeleteAllContextsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ContextsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ContextsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ContextsStub(channel, callOptions); + } + }; + return ContextsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ContextsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ContextsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ContextsBlockingStub(channel, callOptions); + } + }; + return ContextsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ContextsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ContextsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ContextsFutureStub(channel, callOptions); + } + }; + return ContextsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
+   * 
+ */ + public static abstract class ContextsImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the list of all contexts in the specified session.
+     * 
+ */ + public void listContexts(com.google.cloud.dialogflow.v2.ListContextsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListContextsMethod(), responseObserver); + } + + /** + *
+     * Retrieves the specified context.
+     * 
+ */ + public void getContext(com.google.cloud.dialogflow.v2.GetContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContextMethod(), responseObserver); + } + + /** + *
+     * Creates a context.
+     * If the specified context already exists, overrides the context.
+     * 
+ */ + public void createContext(com.google.cloud.dialogflow.v2.CreateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateContextMethod(), responseObserver); + } + + /** + *
+     * Updates the specified context.
+     * 
+ */ + public void updateContext(com.google.cloud.dialogflow.v2.UpdateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateContextMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified context.
+     * 
+ */ + public void deleteContext(com.google.cloud.dialogflow.v2.DeleteContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteContextMethod(), responseObserver); + } + + /** + *
+     * Deletes all active contexts in the specified session.
+     * 
+ */ + public void deleteAllContexts(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAllContextsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListContextsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListContextsRequest, + com.google.cloud.dialogflow.v2.ListContextsResponse>( + this, METHODID_LIST_CONTEXTS))) + .addMethod( + getGetContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetContextRequest, + com.google.cloud.dialogflow.v2.Context>( + this, METHODID_GET_CONTEXT))) + .addMethod( + getCreateContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateContextRequest, + com.google.cloud.dialogflow.v2.Context>( + this, METHODID_CREATE_CONTEXT))) + .addMethod( + getUpdateContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateContextRequest, + com.google.cloud.dialogflow.v2.Context>( + this, METHODID_UPDATE_CONTEXT))) + .addMethod( + getDeleteContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteContextRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CONTEXT))) + .addMethod( + getDeleteAllContextsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ALL_CONTEXTS))) + .build(); + } + } + + /** + *
+   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
+   * 
+ */ + public static final class ContextsStub extends io.grpc.stub.AbstractAsyncStub { + private ContextsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ContextsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ContextsStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all contexts in the specified session.
+     * 
+ */ + public void listContexts(com.google.cloud.dialogflow.v2.ListContextsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListContextsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the specified context.
+     * 
+ */ + public void getContext(com.google.cloud.dialogflow.v2.GetContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetContextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a context.
+     * If the specified context already exists, overrides the context.
+     * 
+ */ + public void createContext(com.google.cloud.dialogflow.v2.CreateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateContextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified context.
+     * 
+ */ + public void updateContext(com.google.cloud.dialogflow.v2.UpdateContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified context.
+     * 
+ */ + public void deleteContext(com.google.cloud.dialogflow.v2.DeleteContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes all active contexts in the specified session.
+     * 
+ */ + public void deleteAllContexts(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
+   * 
+ */ + public static final class ContextsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ContextsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ContextsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ContextsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all contexts in the specified session.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListContextsResponse listContexts(com.google.cloud.dialogflow.v2.ListContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListContextsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the specified context.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Context getContext(com.google.cloud.dialogflow.v2.GetContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetContextMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a context.
+     * If the specified context already exists, overrides the context.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Context createContext(com.google.cloud.dialogflow.v2.CreateContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateContextMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified context.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Context updateContext(com.google.cloud.dialogflow.v2.UpdateContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateContextMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified context.
+     * 
+ */ + public com.google.protobuf.Empty deleteContext(com.google.cloud.dialogflow.v2.DeleteContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteContextMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes all active contexts in the specified session.
+     * 
+ */ + public com.google.protobuf.Empty deleteAllContexts(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAllContextsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
+   * 
+ */ + public static final class ContextsFutureStub extends io.grpc.stub.AbstractFutureStub { + private ContextsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ContextsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ContextsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all contexts in the specified session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listContexts( + com.google.cloud.dialogflow.v2.ListContextsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListContextsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the specified context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getContext( + com.google.cloud.dialogflow.v2.GetContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetContextMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a context.
+     * If the specified context already exists, overrides the context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createContext( + com.google.cloud.dialogflow.v2.CreateContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateContextMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateContext( + com.google.cloud.dialogflow.v2.UpdateContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateContextMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified context.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteContext( + com.google.cloud.dialogflow.v2.DeleteContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteContextMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes all active contexts in the specified session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAllContexts( + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAllContextsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CONTEXTS = 0; + private static final int METHODID_GET_CONTEXT = 1; + private static final int METHODID_CREATE_CONTEXT = 2; + private static final int METHODID_UPDATE_CONTEXT = 3; + private static final int METHODID_DELETE_CONTEXT = 4; + private static final int METHODID_DELETE_ALL_CONTEXTS = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ContextsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ContextsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CONTEXTS: + serviceImpl.listContexts((com.google.cloud.dialogflow.v2.ListContextsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONTEXT: + serviceImpl.getContext((com.google.cloud.dialogflow.v2.GetContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONTEXT: + serviceImpl.createContext((com.google.cloud.dialogflow.v2.CreateContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONTEXT: + serviceImpl.updateContext((com.google.cloud.dialogflow.v2.UpdateContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONTEXT: + serviceImpl.deleteContext((com.google.cloud.dialogflow.v2.DeleteContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ALL_CONTEXTS: + serviceImpl.deleteAllContexts((com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ContextsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ContextsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Contexts"); + } + } + + private static final class ContextsFileDescriptorSupplier + extends ContextsBaseDescriptorSupplier { + ContextsFileDescriptorSupplier() {} + } + + private static final class ContextsMethodDescriptorSupplier + extends ContextsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ContextsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ContextsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ContextsFileDescriptorSupplier()) + .addMethod(getListContextsMethod()) + .addMethod(getGetContextMethod()) + .addMethod(getCreateContextMethod()) + .addMethod(getUpdateContextMethod()) + .addMethod(getDeleteContextMethod()) + .addMethod(getDeleteAllContextsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java new file mode 100644 index 000000000..1d9448ab0 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesGrpc.java @@ -0,0 +1,670 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/conversation_profile.proto") +public final class ConversationProfilesGrpc { + + private ConversationProfilesGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.ConversationProfiles"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListConversationProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversationProfiles", + requestType = com.google.cloud.dialogflow.v2.ListConversationProfilesRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListConversationProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConversationProfilesMethod() { + io.grpc.MethodDescriptor getListConversationProfilesMethod; + if ((getListConversationProfilesMethod = ConversationProfilesGrpc.getListConversationProfilesMethod) == null) { + synchronized (ConversationProfilesGrpc.class) { + if ((getListConversationProfilesMethod = ConversationProfilesGrpc.getListConversationProfilesMethod) == null) { + ConversationProfilesGrpc.getListConversationProfilesMethod = getListConversationProfilesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversationProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListConversationProfilesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListConversationProfilesResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationProfilesMethodDescriptorSupplier("ListConversationProfiles")) + .build(); + } + } + } + return getListConversationProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConversationProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversationProfile", + requestType = com.google.cloud.dialogflow.v2.GetConversationProfileRequest.class, + responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConversationProfileMethod() { + io.grpc.MethodDescriptor getGetConversationProfileMethod; + if ((getGetConversationProfileMethod = ConversationProfilesGrpc.getGetConversationProfileMethod) == null) { + synchronized (ConversationProfilesGrpc.class) { + if ((getGetConversationProfileMethod = ConversationProfilesGrpc.getGetConversationProfileMethod) == null) { + ConversationProfilesGrpc.getGetConversationProfileMethod = getGetConversationProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversationProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetConversationProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance())) + .setSchemaDescriptor(new ConversationProfilesMethodDescriptorSupplier("GetConversationProfile")) + .build(); + } + } + } + return getGetConversationProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateConversationProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversationProfile", + requestType = com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.class, + responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConversationProfileMethod() { + io.grpc.MethodDescriptor getCreateConversationProfileMethod; + if ((getCreateConversationProfileMethod = ConversationProfilesGrpc.getCreateConversationProfileMethod) == null) { + synchronized (ConversationProfilesGrpc.class) { + if ((getCreateConversationProfileMethod = ConversationProfilesGrpc.getCreateConversationProfileMethod) == null) { + ConversationProfilesGrpc.getCreateConversationProfileMethod = getCreateConversationProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversationProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance())) + .setSchemaDescriptor(new ConversationProfilesMethodDescriptorSupplier("CreateConversationProfile")) + .build(); + } + } + } + return getCreateConversationProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConversationProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConversationProfile", + requestType = com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest.class, + responseType = com.google.cloud.dialogflow.v2.ConversationProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConversationProfileMethod() { + io.grpc.MethodDescriptor getUpdateConversationProfileMethod; + if ((getUpdateConversationProfileMethod = ConversationProfilesGrpc.getUpdateConversationProfileMethod) == null) { + synchronized (ConversationProfilesGrpc.class) { + if ((getUpdateConversationProfileMethod = ConversationProfilesGrpc.getUpdateConversationProfileMethod) == null) { + ConversationProfilesGrpc.getUpdateConversationProfileMethod = getUpdateConversationProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversationProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance())) + .setSchemaDescriptor(new ConversationProfilesMethodDescriptorSupplier("UpdateConversationProfile")) + .build(); + } + } + } + return getUpdateConversationProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConversationProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversationProfile", + requestType = com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConversationProfileMethod() { + io.grpc.MethodDescriptor getDeleteConversationProfileMethod; + if ((getDeleteConversationProfileMethod = ConversationProfilesGrpc.getDeleteConversationProfileMethod) == null) { + synchronized (ConversationProfilesGrpc.class) { + if ((getDeleteConversationProfileMethod = ConversationProfilesGrpc.getDeleteConversationProfileMethod) == null) { + ConversationProfilesGrpc.getDeleteConversationProfileMethod = getDeleteConversationProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversationProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConversationProfilesMethodDescriptorSupplier("DeleteConversationProfile")) + .build(); + } + } + } + return getDeleteConversationProfileMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConversationProfilesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationProfilesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationProfilesStub(channel, callOptions); + } + }; + return ConversationProfilesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConversationProfilesBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationProfilesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationProfilesBlockingStub(channel, callOptions); + } + }; + return ConversationProfilesBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConversationProfilesFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationProfilesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationProfilesFutureStub(channel, callOptions); + } + }; + return ConversationProfilesFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
+   * 
+ */ + public static abstract class ConversationProfilesImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the list of all conversation profiles in the specified project.
+     * 
+ */ + public void listConversationProfiles(com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConversationProfilesMethod(), responseObserver); + } + + /** + *
+     * Retrieves the specified conversation profile.
+     * 
+ */ + public void getConversationProfile(com.google.cloud.dialogflow.v2.GetConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConversationProfileMethod(), responseObserver); + } + + /** + *
+     * Creates a conversation profile in the specified project.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public void createConversationProfile(com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConversationProfileMethod(), responseObserver); + } + + /** + *
+     * Updates the specified conversation profile.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public void updateConversationProfile(com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConversationProfileMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified conversation profile.
+     * 
+ */ + public void deleteConversationProfile(com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConversationProfileMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListConversationProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListConversationProfilesRequest, + com.google.cloud.dialogflow.v2.ListConversationProfilesResponse>( + this, METHODID_LIST_CONVERSATION_PROFILES))) + .addMethod( + getGetConversationProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetConversationProfileRequest, + com.google.cloud.dialogflow.v2.ConversationProfile>( + this, METHODID_GET_CONVERSATION_PROFILE))) + .addMethod( + getCreateConversationProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest, + com.google.cloud.dialogflow.v2.ConversationProfile>( + this, METHODID_CREATE_CONVERSATION_PROFILE))) + .addMethod( + getUpdateConversationProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest, + com.google.cloud.dialogflow.v2.ConversationProfile>( + this, METHODID_UPDATE_CONVERSATION_PROFILE))) + .addMethod( + getDeleteConversationProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CONVERSATION_PROFILE))) + .build(); + } + } + + /** + *
+   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
+   * 
+ */ + public static final class ConversationProfilesStub extends io.grpc.stub.AbstractAsyncStub { + private ConversationProfilesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationProfilesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationProfilesStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all conversation profiles in the specified project.
+     * 
+ */ + public void listConversationProfiles(com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the specified conversation profile.
+     * 
+ */ + public void getConversationProfile(com.google.cloud.dialogflow.v2.GetConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a conversation profile in the specified project.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public void createConversationProfile(com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified conversation profile.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public void updateConversationProfile(com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified conversation profile.
+     * 
+ */ + public void deleteConversationProfile(com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
+   * 
+ */ + public static final class ConversationProfilesBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ConversationProfilesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationProfilesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationProfilesBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all conversation profiles in the specified project.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListConversationProfilesResponse listConversationProfiles(com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversationProfilesMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the specified conversation profile.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile(com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversationProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a conversation profile in the specified project.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ConversationProfile createConversationProfile(com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversationProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified conversation profile.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ConversationProfile updateConversationProfile(com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConversationProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified conversation profile.
+     * 
+ */ + public com.google.protobuf.Empty deleteConversationProfile(com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversationProfileMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
+   * 
+ */ + public static final class ConversationProfilesFutureStub extends io.grpc.stub.AbstractFutureStub { + private ConversationProfilesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConversationProfilesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationProfilesFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all conversation profiles in the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConversationProfiles( + com.google.cloud.dialogflow.v2.ListConversationProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversationProfilesMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the specified conversation profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConversationProfile( + com.google.cloud.dialogflow.v2.GetConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConversationProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a conversation profile in the specified project.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConversationProfile( + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConversationProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified conversation profile.
+     * [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
+     * aren't populated in the response. You can retrieve them via
+     * [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConversationProfile( + com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConversationProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified conversation profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConversationProfile( + com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversationProfileMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CONVERSATION_PROFILES = 0; + private static final int METHODID_GET_CONVERSATION_PROFILE = 1; + private static final int METHODID_CREATE_CONVERSATION_PROFILE = 2; + private static final int METHODID_UPDATE_CONVERSATION_PROFILE = 3; + private static final int METHODID_DELETE_CONVERSATION_PROFILE = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ConversationProfilesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConversationProfilesImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CONVERSATION_PROFILES: + serviceImpl.listConversationProfiles((com.google.cloud.dialogflow.v2.ListConversationProfilesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONVERSATION_PROFILE: + serviceImpl.getConversationProfile((com.google.cloud.dialogflow.v2.GetConversationProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONVERSATION_PROFILE: + serviceImpl.createConversationProfile((com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONVERSATION_PROFILE: + serviceImpl.updateConversationProfile((com.google.cloud.dialogflow.v2.UpdateConversationProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONVERSATION_PROFILE: + serviceImpl.deleteConversationProfile((com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ConversationProfilesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConversationProfilesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConversationProfiles"); + } + } + + private static final class ConversationProfilesFileDescriptorSupplier + extends ConversationProfilesBaseDescriptorSupplier { + ConversationProfilesFileDescriptorSupplier() {} + } + + private static final class ConversationProfilesMethodDescriptorSupplier + extends ConversationProfilesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConversationProfilesMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ConversationProfilesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConversationProfilesFileDescriptorSupplier()) + .addMethod(getListConversationProfilesMethod()) + .addMethod(getGetConversationProfileMethod()) + .addMethod(getCreateConversationProfileMethod()) + .addMethod(getUpdateConversationProfileMethod()) + .addMethod(getDeleteConversationProfileMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java similarity index 50% rename from grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java index 66d87a760..bccb20098 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; /** - * - * *
  * Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation].
  * 
@@ -34,293 +17,213 @@ private ConversationsGrpc() {} public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Conversations"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getCreateConversationMethod; + private static volatile io.grpc.MethodDescriptor getCreateConversationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateConversation", requestType = com.google.cloud.dialogflow.v2.CreateConversationRequest.class, responseType = com.google.cloud.dialogflow.v2.Conversation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getCreateConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getCreateConversationMethod; + public static io.grpc.MethodDescriptor getCreateConversationMethod() { + io.grpc.MethodDescriptor getCreateConversationMethod; if ((getCreateConversationMethod = ConversationsGrpc.getCreateConversationMethod) == null) { synchronized (ConversationsGrpc.class) { if ((getCreateConversationMethod = ConversationsGrpc.getCreateConversationMethod) == null) { - ConversationsGrpc.getCreateConversationMethod = - getCreateConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("CreateConversation")) - .build(); + ConversationsGrpc.getCreateConversationMethod = getCreateConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationsMethodDescriptorSupplier("CreateConversation")) + .build(); } } } return getCreateConversationMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListConversationsRequest, - com.google.cloud.dialogflow.v2.ListConversationsResponse> - getListConversationsMethod; + private static volatile io.grpc.MethodDescriptor getListConversationsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListConversations", requestType = com.google.cloud.dialogflow.v2.ListConversationsRequest.class, responseType = com.google.cloud.dialogflow.v2.ListConversationsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListConversationsRequest, - com.google.cloud.dialogflow.v2.ListConversationsResponse> - getListConversationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListConversationsRequest, - com.google.cloud.dialogflow.v2.ListConversationsResponse> - getListConversationsMethod; + public static io.grpc.MethodDescriptor getListConversationsMethod() { + io.grpc.MethodDescriptor getListConversationsMethod; if ((getListConversationsMethod = ConversationsGrpc.getListConversationsMethod) == null) { synchronized (ConversationsGrpc.class) { if ((getListConversationsMethod = ConversationsGrpc.getListConversationsMethod) == null) { - ConversationsGrpc.getListConversationsMethod = - getListConversationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListConversationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListConversationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("ListConversations")) - .build(); + ConversationsGrpc.getListConversationsMethod = getListConversationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListConversationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationsMethodDescriptorSupplier("ListConversations")) + .build(); } } } return getListConversationsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getGetConversationMethod; + private static volatile io.grpc.MethodDescriptor getGetConversationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetConversation", requestType = com.google.cloud.dialogflow.v2.GetConversationRequest.class, responseType = com.google.cloud.dialogflow.v2.Conversation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getGetConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getGetConversationMethod; + public static io.grpc.MethodDescriptor getGetConversationMethod() { + io.grpc.MethodDescriptor getGetConversationMethod; if ((getGetConversationMethod = ConversationsGrpc.getGetConversationMethod) == null) { synchronized (ConversationsGrpc.class) { if ((getGetConversationMethod = ConversationsGrpc.getGetConversationMethod) == null) { - ConversationsGrpc.getGetConversationMethod = - getGetConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("GetConversation")) - .build(); + ConversationsGrpc.getGetConversationMethod = getGetConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationsMethodDescriptorSupplier("GetConversation")) + .build(); } } } return getGetConversationMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CompleteConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getCompleteConversationMethod; + private static volatile io.grpc.MethodDescriptor getCompleteConversationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CompleteConversation", requestType = com.google.cloud.dialogflow.v2.CompleteConversationRequest.class, responseType = com.google.cloud.dialogflow.v2.Conversation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CompleteConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getCompleteConversationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CompleteConversationRequest, - com.google.cloud.dialogflow.v2.Conversation> - getCompleteConversationMethod; + public static io.grpc.MethodDescriptor getCompleteConversationMethod() { + io.grpc.MethodDescriptor getCompleteConversationMethod; if ((getCompleteConversationMethod = ConversationsGrpc.getCompleteConversationMethod) == null) { synchronized (ConversationsGrpc.class) { - if ((getCompleteConversationMethod = ConversationsGrpc.getCompleteConversationMethod) - == null) { - ConversationsGrpc.getCompleteConversationMethod = - getCompleteConversationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CompleteConversation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CompleteConversationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("CompleteConversation")) - .build(); + if ((getCompleteConversationMethod = ConversationsGrpc.getCompleteConversationMethod) == null) { + ConversationsGrpc.getCompleteConversationMethod = getCompleteConversationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CompleteConversationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance())) + .setSchemaDescriptor(new ConversationsMethodDescriptorSupplier("CompleteConversation")) + .build(); } } } return getCompleteConversationMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListMessagesRequest, - com.google.cloud.dialogflow.v2.ListMessagesResponse> - getListMessagesMethod; + private static volatile io.grpc.MethodDescriptor getListMessagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListMessages", requestType = com.google.cloud.dialogflow.v2.ListMessagesRequest.class, responseType = com.google.cloud.dialogflow.v2.ListMessagesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListMessagesRequest, - com.google.cloud.dialogflow.v2.ListMessagesResponse> - getListMessagesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListMessagesRequest, - com.google.cloud.dialogflow.v2.ListMessagesResponse> - getListMessagesMethod; + public static io.grpc.MethodDescriptor getListMessagesMethod() { + io.grpc.MethodDescriptor getListMessagesMethod; if ((getListMessagesMethod = ConversationsGrpc.getListMessagesMethod) == null) { synchronized (ConversationsGrpc.class) { if ((getListMessagesMethod = ConversationsGrpc.getListMessagesMethod) == null) { - ConversationsGrpc.getListMessagesMethod = - getListMessagesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMessages")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListMessagesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListMessagesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConversationsMethodDescriptorSupplier("ListMessages")) - .build(); + ConversationsGrpc.getListMessagesMethod = getListMessagesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMessages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListMessagesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListMessagesResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConversationsMethodDescriptorSupplier("ListMessages")) + .build(); } } } return getListMessagesMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static ConversationsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationsStub(channel, callOptions); + } + }; return ConversationsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static ConversationsBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static ConversationsBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationsBlockingStub(channel, callOptions); + } + }; return ConversationsBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConversationsFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConversationsFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConversationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConversationsFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConversationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConversationsFutureStub(channel, callOptions); + } + }; return ConversationsFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation].
    * 
*/ - public abstract static class ConversationsImplBase implements io.grpc.BindableService { + public static abstract class ConversationsImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates a new conversation. Conversations are auto-completed after 24
      * hours.
@@ -338,60 +241,43 @@ public abstract static class ConversationsImplBase implements io.grpc.BindableSe
      * will transfer to Assist Stage.
      * 
*/ - public void createConversation( - com.google.cloud.dialogflow.v2.CreateConversationRequest request, + public void createConversation(com.google.cloud.dialogflow.v2.CreateConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConversationMethod(), responseObserver); } /** - * - * *
      * Returns the list of all conversations in the specified project.
      * 
*/ - public void listConversations( - com.google.cloud.dialogflow.v2.ListConversationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConversationsMethod(), responseObserver); + public void listConversations(com.google.cloud.dialogflow.v2.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConversationsMethod(), responseObserver); } /** - * - * *
      * Retrieves the specific conversation.
      * 
*/ - public void getConversation( - com.google.cloud.dialogflow.v2.GetConversationRequest request, + public void getConversation(com.google.cloud.dialogflow.v2.GetConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConversationMethod(), responseObserver); } /** - * - * *
      * Completes the specified conversation. Finished conversations are purged
      * from the database after 30 days.
      * 
*/ - public void completeConversation( - com.google.cloud.dialogflow.v2.CompleteConversationRequest request, + public void completeConversation(com.google.cloud.dialogflow.v2.CompleteConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteConversationMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteConversationMethod(), responseObserver); } /** - * - * *
      * Lists messages that belong to a given conversation.
      * `messages` are ordered by `create_time` in descending order. To fetch
@@ -400,77 +286,70 @@ public void completeConversation(
      * [first item's create_time of previous request]` and empty page_token.
      * 
*/ - public void listMessages( - com.google.cloud.dialogflow.v2.ListMessagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMessagesMethod(), responseObserver); + public void listMessages(com.google.cloud.dialogflow.v2.ListMessagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMessagesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateConversationRequest, - com.google.cloud.dialogflow.v2.Conversation>( - this, METHODID_CREATE_CONVERSATION))) + getCreateConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateConversationRequest, + com.google.cloud.dialogflow.v2.Conversation>( + this, METHODID_CREATE_CONVERSATION))) .addMethod( - getListConversationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListConversationsRequest, - com.google.cloud.dialogflow.v2.ListConversationsResponse>( - this, METHODID_LIST_CONVERSATIONS))) + getListConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListConversationsRequest, + com.google.cloud.dialogflow.v2.ListConversationsResponse>( + this, METHODID_LIST_CONVERSATIONS))) .addMethod( - getGetConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetConversationRequest, - com.google.cloud.dialogflow.v2.Conversation>( - this, METHODID_GET_CONVERSATION))) + getGetConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetConversationRequest, + com.google.cloud.dialogflow.v2.Conversation>( + this, METHODID_GET_CONVERSATION))) .addMethod( - getCompleteConversationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CompleteConversationRequest, - com.google.cloud.dialogflow.v2.Conversation>( - this, METHODID_COMPLETE_CONVERSATION))) + getCompleteConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CompleteConversationRequest, + com.google.cloud.dialogflow.v2.Conversation>( + this, METHODID_COMPLETE_CONVERSATION))) .addMethod( - getListMessagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListMessagesRequest, - com.google.cloud.dialogflow.v2.ListMessagesResponse>( - this, METHODID_LIST_MESSAGES))) + getListMessagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListMessagesRequest, + com.google.cloud.dialogflow.v2.ListMessagesResponse>( + this, METHODID_LIST_MESSAGES))) .build(); } } /** - * - * *
    * Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation].
    * 
*/ - public static final class ConversationsStub - extends io.grpc.stub.AbstractAsyncStub { - private ConversationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ConversationsStub extends io.grpc.stub.AbstractAsyncStub { + private ConversationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ConversationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ConversationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConversationsStub(channel, callOptions); } /** - * - * *
      * Creates a new conversation. Conversations are auto-completed after 24
      * hours.
@@ -488,68 +367,47 @@ protected ConversationsStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * will transfer to Assist Stage.
      * 
*/ - public void createConversation( - com.google.cloud.dialogflow.v2.CreateConversationRequest request, + public void createConversation(com.google.cloud.dialogflow.v2.CreateConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversationMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Returns the list of all conversations in the specified project.
      * 
*/ - public void listConversations( - com.google.cloud.dialogflow.v2.ListConversationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listConversations(com.google.cloud.dialogflow.v2.ListConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversationsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListConversationsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves the specific conversation.
      * 
*/ - public void getConversation( - com.google.cloud.dialogflow.v2.GetConversationRequest request, + public void getConversation(com.google.cloud.dialogflow.v2.GetConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversationMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetConversationMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Completes the specified conversation. Finished conversations are purged
      * from the database after 30 days.
      * 
*/ - public void completeConversation( - com.google.cloud.dialogflow.v2.CompleteConversationRequest request, + public void completeConversation(com.google.cloud.dialogflow.v2.CompleteConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists messages that belong to a given conversation.
      * `messages` are ordered by `create_time` in descending order. To fetch
@@ -558,27 +416,21 @@ public void completeConversation(
      * [first item's create_time of previous request]` and empty page_token.
      * 
*/ - public void listMessages( - com.google.cloud.dialogflow.v2.ListMessagesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listMessages(com.google.cloud.dialogflow.v2.ListMessagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMessagesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListMessagesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation].
    * 
*/ - public static final class ConversationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConversationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ConversationsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ConversationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -589,8 +441,6 @@ protected ConversationsBlockingStub build( } /** - * - * *
      * Creates a new conversation. Conversations are auto-completed after 24
      * hours.
@@ -608,55 +458,43 @@ protected ConversationsBlockingStub build(
      * will transfer to Assist Stage.
      * 
*/ - public com.google.cloud.dialogflow.v2.Conversation createConversation( - com.google.cloud.dialogflow.v2.CreateConversationRequest request) { + public com.google.cloud.dialogflow.v2.Conversation createConversation(com.google.cloud.dialogflow.v2.CreateConversationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateConversationMethod(), getCallOptions(), request); } /** - * - * *
      * Returns the list of all conversations in the specified project.
      * 
*/ - public com.google.cloud.dialogflow.v2.ListConversationsResponse listConversations( - com.google.cloud.dialogflow.v2.ListConversationsRequest request) { + public com.google.cloud.dialogflow.v2.ListConversationsResponse listConversations(com.google.cloud.dialogflow.v2.ListConversationsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConversationsMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves the specific conversation.
      * 
*/ - public com.google.cloud.dialogflow.v2.Conversation getConversation( - com.google.cloud.dialogflow.v2.GetConversationRequest request) { + public com.google.cloud.dialogflow.v2.Conversation getConversation(com.google.cloud.dialogflow.v2.GetConversationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetConversationMethod(), getCallOptions(), request); } /** - * - * *
      * Completes the specified conversation. Finished conversations are purged
      * from the database after 30 days.
      * 
*/ - public com.google.cloud.dialogflow.v2.Conversation completeConversation( - com.google.cloud.dialogflow.v2.CompleteConversationRequest request) { + public com.google.cloud.dialogflow.v2.Conversation completeConversation(com.google.cloud.dialogflow.v2.CompleteConversationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompleteConversationMethod(), getCallOptions(), request); } /** - * - * *
      * Lists messages that belong to a given conversation.
      * `messages` are ordered by `create_time` in descending order. To fetch
@@ -665,23 +503,20 @@ public com.google.cloud.dialogflow.v2.Conversation completeConversation(
      * [first item's create_time of previous request]` and empty page_token.
      * 
*/ - public com.google.cloud.dialogflow.v2.ListMessagesResponse listMessages( - com.google.cloud.dialogflow.v2.ListMessagesRequest request) { + public com.google.cloud.dialogflow.v2.ListMessagesResponse listMessages(com.google.cloud.dialogflow.v2.ListMessagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMessagesMethod(), getCallOptions(), request); } } /** - * - * *
    * Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation].
    * 
*/ - public static final class ConversationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConversationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ConversationsFutureStub extends io.grpc.stub.AbstractFutureStub { + private ConversationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -692,8 +527,6 @@ protected ConversationsFutureStub build( } /** - * - * *
      * Creates a new conversation. Conversations are auto-completed after 24
      * hours.
@@ -711,59 +544,47 @@ protected ConversationsFutureStub build(
      * will transfer to Assist Stage.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Conversation> - createConversation(com.google.cloud.dialogflow.v2.CreateConversationRequest request) { + public com.google.common.util.concurrent.ListenableFuture createConversation( + com.google.cloud.dialogflow.v2.CreateConversationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); } /** - * - * *
      * Returns the list of all conversations in the specified project.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListConversationsResponse> - listConversations(com.google.cloud.dialogflow.v2.ListConversationsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listConversations( + com.google.cloud.dialogflow.v2.ListConversationsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConversationsMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves the specific conversation.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Conversation> - getConversation(com.google.cloud.dialogflow.v2.GetConversationRequest request) { + public com.google.common.util.concurrent.ListenableFuture getConversation( + com.google.cloud.dialogflow.v2.GetConversationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetConversationMethod(), getCallOptions()), request); } /** - * - * *
      * Completes the specified conversation. Finished conversations are purged
      * from the database after 30 days.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Conversation> - completeConversation(com.google.cloud.dialogflow.v2.CompleteConversationRequest request) { + public com.google.common.util.concurrent.ListenableFuture completeConversation( + com.google.cloud.dialogflow.v2.CompleteConversationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompleteConversationMethod(), getCallOptions()), request); } /** - * - * *
      * Lists messages that belong to a given conversation.
      * `messages` are ordered by `create_time` in descending order. To fetch
@@ -772,9 +593,8 @@ protected ConversationsFutureStub build(
      * [first item's create_time of previous request]` and empty page_token.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListMessagesResponse> - listMessages(com.google.cloud.dialogflow.v2.ListMessagesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listMessages( + com.google.cloud.dialogflow.v2.ListMessagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMessagesMethod(), getCallOptions()), request); } @@ -786,11 +606,11 @@ protected ConversationsFutureStub build( private static final int METHODID_COMPLETE_CONVERSATION = 3; private static final int METHODID_LIST_MESSAGES = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final ConversationsImplBase serviceImpl; private final int methodId; @@ -804,35 +624,24 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_CONVERSATION: - serviceImpl.createConversation( - (com.google.cloud.dialogflow.v2.CreateConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createConversation((com.google.cloud.dialogflow.v2.CreateConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_CONVERSATIONS: - serviceImpl.listConversations( - (com.google.cloud.dialogflow.v2.ListConversationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.dialogflow.v2.ListConversationsResponse>) - responseObserver); + serviceImpl.listConversations((com.google.cloud.dialogflow.v2.ListConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CONVERSATION: - serviceImpl.getConversation( - (com.google.cloud.dialogflow.v2.GetConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getConversation((com.google.cloud.dialogflow.v2.GetConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMPLETE_CONVERSATION: - serviceImpl.completeConversation( - (com.google.cloud.dialogflow.v2.CompleteConversationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.completeConversation((com.google.cloud.dialogflow.v2.CompleteConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_MESSAGES: - serviceImpl.listMessages( - (com.google.cloud.dialogflow.v2.ListMessagesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listMessages((com.google.cloud.dialogflow.v2.ListMessagesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -850,9 +659,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ConversationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ConversationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConversationsBaseDescriptorSupplier() {} @java.lang.Override @@ -894,16 +702,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ConversationsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConversationsFileDescriptorSupplier()) - .addMethod(getCreateConversationMethod()) - .addMethod(getListConversationsMethod()) - .addMethod(getGetConversationMethod()) - .addMethod(getCompleteConversationMethod()) - .addMethod(getListMessagesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConversationsFileDescriptorSupplier()) + .addMethod(getCreateConversationMethod()) + .addMethod(getListConversationsMethod()) + .addMethod(getGetConversationMethod()) + .addMethod(getCompleteConversationMethod()) + .addMethod(getListMessagesMethod()) + .build(); } } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java similarity index 53% rename from grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java index e6bff38b5..d09fd99e7 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; /** - * - * *
  * Service for managing knowledge [Documents][google.cloud.dialogflow.v2.Document].
  * 
@@ -34,346 +17,264 @@ private DocumentsGrpc() {} public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Documents"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListDocumentsRequest, - com.google.cloud.dialogflow.v2.ListDocumentsResponse> - getListDocumentsMethod; + private static volatile io.grpc.MethodDescriptor getListDocumentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListDocuments", requestType = com.google.cloud.dialogflow.v2.ListDocumentsRequest.class, responseType = com.google.cloud.dialogflow.v2.ListDocumentsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListDocumentsRequest, - com.google.cloud.dialogflow.v2.ListDocumentsResponse> - getListDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListDocumentsRequest, - com.google.cloud.dialogflow.v2.ListDocumentsResponse> - getListDocumentsMethod; + public static io.grpc.MethodDescriptor getListDocumentsMethod() { + io.grpc.MethodDescriptor getListDocumentsMethod; if ((getListDocumentsMethod = DocumentsGrpc.getListDocumentsMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getListDocumentsMethod = DocumentsGrpc.getListDocumentsMethod) == null) { - DocumentsGrpc.getListDocumentsMethod = - getListDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListDocumentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListDocumentsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ListDocuments")) - .build(); + DocumentsGrpc.getListDocumentsMethod = getListDocumentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDocuments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListDocumentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListDocumentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ListDocuments")) + .build(); } } } return getListDocumentsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetDocumentRequest, - com.google.cloud.dialogflow.v2.Document> - getGetDocumentMethod; + private static volatile io.grpc.MethodDescriptor getGetDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetDocument", requestType = com.google.cloud.dialogflow.v2.GetDocumentRequest.class, responseType = com.google.cloud.dialogflow.v2.Document.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetDocumentRequest, - com.google.cloud.dialogflow.v2.Document> - getGetDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetDocumentRequest, - com.google.cloud.dialogflow.v2.Document> - getGetDocumentMethod; + public static io.grpc.MethodDescriptor getGetDocumentMethod() { + io.grpc.MethodDescriptor getGetDocumentMethod; if ((getGetDocumentMethod = DocumentsGrpc.getGetDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getGetDocumentMethod = DocumentsGrpc.getGetDocumentMethod) == null) { - DocumentsGrpc.getGetDocumentMethod = - getGetDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Document.getDefaultInstance())) - .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("GetDocument")) - .build(); + DocumentsGrpc.getGetDocumentMethod = getGetDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Document.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("GetDocument")) + .build(); } } } return getGetDocumentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation> - getCreateDocumentMethod; + private static volatile io.grpc.MethodDescriptor getCreateDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateDocument", requestType = com.google.cloud.dialogflow.v2.CreateDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation> - getCreateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateDocumentRequest, com.google.longrunning.Operation> - getCreateDocumentMethod; + public static io.grpc.MethodDescriptor getCreateDocumentMethod() { + io.grpc.MethodDescriptor getCreateDocumentMethod; if ((getCreateDocumentMethod = DocumentsGrpc.getCreateDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getCreateDocumentMethod = DocumentsGrpc.getCreateDocumentMethod) == null) { - DocumentsGrpc.getCreateDocumentMethod = - getCreateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("CreateDocument")) - .build(); + DocumentsGrpc.getCreateDocumentMethod = getCreateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("CreateDocument")) + .build(); } } } return getCreateDocumentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation> - getDeleteDocumentMethod; + private static volatile io.grpc.MethodDescriptor getDeleteDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteDocument", requestType = com.google.cloud.dialogflow.v2.DeleteDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation> - getDeleteDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteDocumentRequest, com.google.longrunning.Operation> - getDeleteDocumentMethod; + public static io.grpc.MethodDescriptor getDeleteDocumentMethod() { + io.grpc.MethodDescriptor getDeleteDocumentMethod; if ((getDeleteDocumentMethod = DocumentsGrpc.getDeleteDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getDeleteDocumentMethod = DocumentsGrpc.getDeleteDocumentMethod) == null) { - DocumentsGrpc.getDeleteDocumentMethod = - getDeleteDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("DeleteDocument")) - .build(); + DocumentsGrpc.getDeleteDocumentMethod = getDeleteDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("DeleteDocument")) + .build(); } } } return getDeleteDocumentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation> - getUpdateDocumentMethod; + private static volatile io.grpc.MethodDescriptor getUpdateDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateDocument", requestType = com.google.cloud.dialogflow.v2.UpdateDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation> - getUpdateDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateDocumentRequest, com.google.longrunning.Operation> - getUpdateDocumentMethod; + public static io.grpc.MethodDescriptor getUpdateDocumentMethod() { + io.grpc.MethodDescriptor getUpdateDocumentMethod; if ((getUpdateDocumentMethod = DocumentsGrpc.getUpdateDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getUpdateDocumentMethod = DocumentsGrpc.getUpdateDocumentMethod) == null) { - DocumentsGrpc.getUpdateDocumentMethod = - getUpdateDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("UpdateDocument")) - .build(); + DocumentsGrpc.getUpdateDocumentMethod = getUpdateDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("UpdateDocument")) + .build(); } } } return getUpdateDocumentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation> - getReloadDocumentMethod; + private static volatile io.grpc.MethodDescriptor getReloadDocumentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ReloadDocument", requestType = com.google.cloud.dialogflow.v2.ReloadDocumentRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation> - getReloadDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ReloadDocumentRequest, com.google.longrunning.Operation> - getReloadDocumentMethod; + public static io.grpc.MethodDescriptor getReloadDocumentMethod() { + io.grpc.MethodDescriptor getReloadDocumentMethod; if ((getReloadDocumentMethod = DocumentsGrpc.getReloadDocumentMethod) == null) { synchronized (DocumentsGrpc.class) { if ((getReloadDocumentMethod = DocumentsGrpc.getReloadDocumentMethod) == null) { - DocumentsGrpc.getReloadDocumentMethod = - getReloadDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReloadDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ReloadDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ReloadDocument")) - .build(); + DocumentsGrpc.getReloadDocumentMethod = getReloadDocumentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReloadDocument")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ReloadDocumentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DocumentsMethodDescriptorSupplier("ReloadDocument")) + .build(); } } } return getReloadDocumentMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static DocumentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentsStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentsStub(channel, callOptions); + } + }; return DocumentsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static DocumentsBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static DocumentsBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentsBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentsBlockingStub(channel, callOptions); + } + }; return DocumentsBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DocumentsFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DocumentsFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentsFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentsFutureStub(channel, callOptions); + } + }; return DocumentsFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for managing knowledge [Documents][google.cloud.dialogflow.v2.Document].
    * 
*/ - public abstract static class DocumentsImplBase implements io.grpc.BindableService { + public static abstract class DocumentsImplBase implements io.grpc.BindableService { /** - * - * *
      * Returns the list of all documents of the knowledge base.
      * 
*/ - public void listDocuments( - com.google.cloud.dialogflow.v2.ListDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDocumentsMethod(), responseObserver); + public void listDocuments(com.google.cloud.dialogflow.v2.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDocumentsMethod(), responseObserver); } /** - * - * *
      * Retrieves the specified document.
      * 
*/ - public void getDocument( - com.google.cloud.dialogflow.v2.GetDocumentRequest request, + public void getDocument(com.google.cloud.dialogflow.v2.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDocumentMethod(), responseObserver); } /** - * - * *
      * Creates a new document.
      * This method is a [long-running
@@ -383,16 +284,12 @@ public void getDocument(
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public void createDocument( - com.google.cloud.dialogflow.v2.CreateDocumentRequest request, + public void createDocument(com.google.cloud.dialogflow.v2.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDocumentMethod(), responseObserver); } /** - * - * *
      * Deletes the specified document.
      * This method is a [long-running
@@ -403,16 +300,12 @@ public void createDocument(
      *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ - public void deleteDocument( - com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, + public void deleteDocument(com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDocumentMethod(), responseObserver); } /** - * - * *
      * Updates the specified document.
      * This method is a [long-running
@@ -422,16 +315,12 @@ public void deleteDocument(
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public void updateDocument( - com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, + public void updateDocument(com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDocumentMethod(), responseObserver); } /** - * - * *
      * Reloads the specified document from its specified source, content_uri or
      * content. The previously loaded content of the document will be deleted.
@@ -446,110 +335,99 @@ public void updateDocument(
      * only use `projects.knowledgeBases.documents`.
      * 
*/ - public void reloadDocument( - com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, + public void reloadDocument(com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getReloadDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReloadDocumentMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListDocumentsRequest, - com.google.cloud.dialogflow.v2.ListDocumentsResponse>( - this, METHODID_LIST_DOCUMENTS))) + getListDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListDocumentsRequest, + com.google.cloud.dialogflow.v2.ListDocumentsResponse>( + this, METHODID_LIST_DOCUMENTS))) .addMethod( - getGetDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetDocumentRequest, - com.google.cloud.dialogflow.v2.Document>(this, METHODID_GET_DOCUMENT))) + getGetDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetDocumentRequest, + com.google.cloud.dialogflow.v2.Document>( + this, METHODID_GET_DOCUMENT))) .addMethod( - getCreateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_DOCUMENT))) + getCreateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateDocumentRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_DOCUMENT))) .addMethod( - getDeleteDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_DOCUMENT))) + getDeleteDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteDocumentRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_DOCUMENT))) .addMethod( - getUpdateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_DOCUMENT))) + getUpdateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateDocumentRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_DOCUMENT))) .addMethod( - getReloadDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ReloadDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_RELOAD_DOCUMENT))) + getReloadDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ReloadDocumentRequest, + com.google.longrunning.Operation>( + this, METHODID_RELOAD_DOCUMENT))) .build(); } } /** - * - * *
    * Service for managing knowledge [Documents][google.cloud.dialogflow.v2.Document].
    * 
*/ public static final class DocumentsStub extends io.grpc.stub.AbstractAsyncStub { - private DocumentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private DocumentsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected DocumentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected DocumentsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsStub(channel, callOptions); } /** - * - * *
      * Returns the list of all documents of the knowledge base.
      * 
*/ - public void listDocuments( - com.google.cloud.dialogflow.v2.ListDocumentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listDocuments(com.google.cloud.dialogflow.v2.ListDocumentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDocumentsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves the specified document.
      * 
*/ - public void getDocument( - com.google.cloud.dialogflow.v2.GetDocumentRequest request, + public void getDocument(com.google.cloud.dialogflow.v2.GetDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDocumentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new document.
      * This method is a [long-running
@@ -559,18 +437,13 @@ public void getDocument(
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public void createDocument( - com.google.cloud.dialogflow.v2.CreateDocumentRequest request, + public void createDocument(com.google.cloud.dialogflow.v2.CreateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes the specified document.
      * This method is a [long-running
@@ -581,18 +454,13 @@ public void createDocument(
      *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ - public void deleteDocument( - com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, + public void deleteDocument(com.google.cloud.dialogflow.v2.DeleteDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the specified document.
      * This method is a [long-running
@@ -602,18 +470,13 @@ public void deleteDocument(
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public void updateDocument( - com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, + public void updateDocument(com.google.cloud.dialogflow.v2.UpdateDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Reloads the specified document from its specified source, content_uri or
      * content. The previously loaded content of the document will be deleted.
@@ -628,26 +491,21 @@ public void updateDocument(
      * only use `projects.knowledgeBases.documents`.
      * 
*/ - public void reloadDocument( - com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, + public void reloadDocument(com.google.cloud.dialogflow.v2.ReloadDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service for managing knowledge [Documents][google.cloud.dialogflow.v2.Document].
    * 
*/ - public static final class DocumentsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class DocumentsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private DocumentsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -658,34 +516,26 @@ protected DocumentsBlockingStub build( } /** - * - * *
      * Returns the list of all documents of the knowledge base.
      * 
*/ - public com.google.cloud.dialogflow.v2.ListDocumentsResponse listDocuments( - com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { + public com.google.cloud.dialogflow.v2.ListDocumentsResponse listDocuments(com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListDocumentsMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves the specified document.
      * 
*/ - public com.google.cloud.dialogflow.v2.Document getDocument( - com.google.cloud.dialogflow.v2.GetDocumentRequest request) { + public com.google.cloud.dialogflow.v2.Document getDocument(com.google.cloud.dialogflow.v2.GetDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDocumentMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a new document.
      * This method is a [long-running
@@ -695,15 +545,12 @@ public com.google.cloud.dialogflow.v2.Document getDocument(
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public com.google.longrunning.Operation createDocument( - com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { + public com.google.longrunning.Operation createDocument(com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateDocumentMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes the specified document.
      * This method is a [long-running
@@ -714,15 +561,12 @@ public com.google.longrunning.Operation createDocument(
      *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ - public com.google.longrunning.Operation deleteDocument( - com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { + public com.google.longrunning.Operation deleteDocument(com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteDocumentMethod(), getCallOptions(), request); } /** - * - * *
      * Updates the specified document.
      * This method is a [long-running
@@ -732,15 +576,12 @@ public com.google.longrunning.Operation deleteDocument(
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public com.google.longrunning.Operation updateDocument( - com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { + public com.google.longrunning.Operation updateDocument(com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDocumentMethod(), getCallOptions(), request); } /** - * - * *
      * Reloads the specified document from its specified source, content_uri or
      * content. The previously loaded content of the document will be deleted.
@@ -755,62 +596,52 @@ public com.google.longrunning.Operation updateDocument(
      * only use `projects.knowledgeBases.documents`.
      * 
*/ - public com.google.longrunning.Operation reloadDocument( - com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { + public com.google.longrunning.Operation reloadDocument(com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReloadDocumentMethod(), getCallOptions(), request); } } /** - * - * *
    * Service for managing knowledge [Documents][google.cloud.dialogflow.v2.Document].
    * 
*/ - public static final class DocumentsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class DocumentsFutureStub extends io.grpc.stub.AbstractFutureStub { + private DocumentsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected DocumentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new DocumentsFutureStub(channel, callOptions); } /** - * - * *
      * Returns the list of all documents of the knowledge base.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListDocumentsResponse> - listDocuments(com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listDocuments( + com.google.cloud.dialogflow.v2.ListDocumentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListDocumentsMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves the specified document.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.Document> - getDocument(com.google.cloud.dialogflow.v2.GetDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture getDocument( + com.google.cloud.dialogflow.v2.GetDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDocumentMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new document.
      * This method is a [long-running
@@ -820,15 +651,13 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createDocument(com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture createDocument( + com.google.cloud.dialogflow.v2.CreateDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateDocumentMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes the specified document.
      * This method is a [long-running
@@ -839,15 +668,13 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      *   message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteDocument(com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteDocument( + com.google.cloud.dialogflow.v2.DeleteDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteDocumentMethod(), getCallOptions()), request); } /** - * - * *
      * Updates the specified document.
      * This method is a [long-running
@@ -857,15 +684,13 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * - `response`: [Document][google.cloud.dialogflow.v2.Document]
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateDocument(com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateDocument( + com.google.cloud.dialogflow.v2.UpdateDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDocumentMethod(), getCallOptions()), request); } /** - * - * *
      * Reloads the specified document from its specified source, content_uri or
      * content. The previously loaded content of the document will be deleted.
@@ -880,8 +705,8 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * only use `projects.knowledgeBases.documents`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - reloadDocument(com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture reloadDocument( + com.google.cloud.dialogflow.v2.ReloadDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReloadDocumentMethod(), getCallOptions()), request); } @@ -894,11 +719,11 @@ protected DocumentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_UPDATE_DOCUMENT = 4; private static final int METHODID_RELOAD_DOCUMENT = 5; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final DocumentsImplBase serviceImpl; private final int methodId; @@ -912,35 +737,27 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_DOCUMENTS: - serviceImpl.listDocuments( - (com.google.cloud.dialogflow.v2.ListDocumentsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listDocuments((com.google.cloud.dialogflow.v2.ListDocumentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_DOCUMENT: - serviceImpl.getDocument( - (com.google.cloud.dialogflow.v2.GetDocumentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getDocument((com.google.cloud.dialogflow.v2.GetDocumentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_DOCUMENT: - serviceImpl.createDocument( - (com.google.cloud.dialogflow.v2.CreateDocumentRequest) request, + serviceImpl.createDocument((com.google.cloud.dialogflow.v2.CreateDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_DOCUMENT: - serviceImpl.deleteDocument( - (com.google.cloud.dialogflow.v2.DeleteDocumentRequest) request, + serviceImpl.deleteDocument((com.google.cloud.dialogflow.v2.DeleteDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_DOCUMENT: - serviceImpl.updateDocument( - (com.google.cloud.dialogflow.v2.UpdateDocumentRequest) request, + serviceImpl.updateDocument((com.google.cloud.dialogflow.v2.UpdateDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RELOAD_DOCUMENT: - serviceImpl.reloadDocument( - (com.google.cloud.dialogflow.v2.ReloadDocumentRequest) request, + serviceImpl.reloadDocument((com.google.cloud.dialogflow.v2.ReloadDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -959,9 +776,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class DocumentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class DocumentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { DocumentsBaseDescriptorSupplier() {} @java.lang.Override @@ -1003,17 +819,15 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (DocumentsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentsFileDescriptorSupplier()) - .addMethod(getListDocumentsMethod()) - .addMethod(getGetDocumentMethod()) - .addMethod(getCreateDocumentMethod()) - .addMethod(getDeleteDocumentMethod()) - .addMethod(getUpdateDocumentMethod()) - .addMethod(getReloadDocumentMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentsFileDescriptorSupplier()) + .addMethod(getListDocumentsMethod()) + .addMethod(getGetDocumentMethod()) + .addMethod(getCreateDocumentMethod()) + .addMethod(getDeleteDocumentMethod()) + .addMethod(getUpdateDocumentMethod()) + .addMethod(getReloadDocumentMethod()) + .build(); } } } diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java similarity index 54% rename from grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java index 5d3ae4ca7..e48031246 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; /** - * - * *
  * Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].
  * 
@@ -34,553 +17,388 @@ private EntityTypesGrpc() {} public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.EntityTypes"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListEntityTypesResponse> - getListEntityTypesMethod; + private static volatile io.grpc.MethodDescriptor getListEntityTypesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListEntityTypes", requestType = com.google.cloud.dialogflow.v2.ListEntityTypesRequest.class, responseType = com.google.cloud.dialogflow.v2.ListEntityTypesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListEntityTypesResponse> - getListEntityTypesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListEntityTypesResponse> - getListEntityTypesMethod; + public static io.grpc.MethodDescriptor getListEntityTypesMethod() { + io.grpc.MethodDescriptor getListEntityTypesMethod; if ((getListEntityTypesMethod = EntityTypesGrpc.getListEntityTypesMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getListEntityTypesMethod = EntityTypesGrpc.getListEntityTypesMethod) == null) { - EntityTypesGrpc.getListEntityTypesMethod = - getListEntityTypesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntityTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListEntityTypesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListEntityTypesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("ListEntityTypes")) - .build(); + EntityTypesGrpc.getListEntityTypesMethod = getListEntityTypesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntityTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListEntityTypesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListEntityTypesResponse.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("ListEntityTypes")) + .build(); } } } return getListEntityTypesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getGetEntityTypeMethod; + private static volatile io.grpc.MethodDescriptor getGetEntityTypeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetEntityType", requestType = com.google.cloud.dialogflow.v2.GetEntityTypeRequest.class, responseType = com.google.cloud.dialogflow.v2.EntityType.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getGetEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getGetEntityTypeMethod; + public static io.grpc.MethodDescriptor getGetEntityTypeMethod() { + io.grpc.MethodDescriptor getGetEntityTypeMethod; if ((getGetEntityTypeMethod = EntityTypesGrpc.getGetEntityTypeMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getGetEntityTypeMethod = EntityTypesGrpc.getGetEntityTypeMethod) == null) { - EntityTypesGrpc.getGetEntityTypeMethod = - getGetEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance())) - .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("GetEntityType")) - .build(); + EntityTypesGrpc.getGetEntityTypeMethod = getGetEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("GetEntityType")) + .build(); } } } return getGetEntityTypeMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getCreateEntityTypeMethod; + private static volatile io.grpc.MethodDescriptor getCreateEntityTypeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateEntityType", requestType = com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.class, responseType = com.google.cloud.dialogflow.v2.EntityType.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getCreateEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getCreateEntityTypeMethod; + public static io.grpc.MethodDescriptor getCreateEntityTypeMethod() { + io.grpc.MethodDescriptor getCreateEntityTypeMethod; if ((getCreateEntityTypeMethod = EntityTypesGrpc.getCreateEntityTypeMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getCreateEntityTypeMethod = EntityTypesGrpc.getCreateEntityTypeMethod) == null) { - EntityTypesGrpc.getCreateEntityTypeMethod = - getCreateEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("CreateEntityType")) - .build(); + EntityTypesGrpc.getCreateEntityTypeMethod = getCreateEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("CreateEntityType")) + .build(); } } } return getCreateEntityTypeMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getUpdateEntityTypeMethod; + private static volatile io.grpc.MethodDescriptor getUpdateEntityTypeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateEntityType", requestType = com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest.class, responseType = com.google.cloud.dialogflow.v2.EntityType.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getUpdateEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType> - getUpdateEntityTypeMethod; + public static io.grpc.MethodDescriptor getUpdateEntityTypeMethod() { + io.grpc.MethodDescriptor getUpdateEntityTypeMethod; if ((getUpdateEntityTypeMethod = EntityTypesGrpc.getUpdateEntityTypeMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getUpdateEntityTypeMethod = EntityTypesGrpc.getUpdateEntityTypeMethod) == null) { - EntityTypesGrpc.getUpdateEntityTypeMethod = - getUpdateEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("UpdateEntityType")) - .build(); + EntityTypesGrpc.getUpdateEntityTypeMethod = getUpdateEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("UpdateEntityType")) + .build(); } } } return getUpdateEntityTypeMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest, com.google.protobuf.Empty> - getDeleteEntityTypeMethod; + private static volatile io.grpc.MethodDescriptor getDeleteEntityTypeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteEntityType", requestType = com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest, com.google.protobuf.Empty> - getDeleteEntityTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest, com.google.protobuf.Empty> - getDeleteEntityTypeMethod; + public static io.grpc.MethodDescriptor getDeleteEntityTypeMethod() { + io.grpc.MethodDescriptor getDeleteEntityTypeMethod; if ((getDeleteEntityTypeMethod = EntityTypesGrpc.getDeleteEntityTypeMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getDeleteEntityTypeMethod = EntityTypesGrpc.getDeleteEntityTypeMethod) == null) { - EntityTypesGrpc.getDeleteEntityTypeMethod = - getDeleteEntityTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntityType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("DeleteEntityType")) - .build(); + EntityTypesGrpc.getDeleteEntityTypeMethod = getDeleteEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("DeleteEntityType")) + .build(); } } } return getDeleteEntityTypeMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest, - com.google.longrunning.Operation> - getBatchUpdateEntityTypesMethod; + private static volatile io.grpc.MethodDescriptor getBatchUpdateEntityTypesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchUpdateEntityTypes", requestType = com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest, - com.google.longrunning.Operation> - getBatchUpdateEntityTypesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest, - com.google.longrunning.Operation> - getBatchUpdateEntityTypesMethod; - if ((getBatchUpdateEntityTypesMethod = EntityTypesGrpc.getBatchUpdateEntityTypesMethod) - == null) { + public static io.grpc.MethodDescriptor getBatchUpdateEntityTypesMethod() { + io.grpc.MethodDescriptor getBatchUpdateEntityTypesMethod; + if ((getBatchUpdateEntityTypesMethod = EntityTypesGrpc.getBatchUpdateEntityTypesMethod) == null) { synchronized (EntityTypesGrpc.class) { - if ((getBatchUpdateEntityTypesMethod = EntityTypesGrpc.getBatchUpdateEntityTypesMethod) - == null) { - EntityTypesGrpc.getBatchUpdateEntityTypesMethod = - getBatchUpdateEntityTypesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchUpdateEntityTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("BatchUpdateEntityTypes")) - .build(); + if ((getBatchUpdateEntityTypesMethod = EntityTypesGrpc.getBatchUpdateEntityTypesMethod) == null) { + EntityTypesGrpc.getBatchUpdateEntityTypesMethod = getBatchUpdateEntityTypesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchUpdateEntityTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("BatchUpdateEntityTypes")) + .build(); } } } return getBatchUpdateEntityTypesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest, - com.google.longrunning.Operation> - getBatchDeleteEntityTypesMethod; + private static volatile io.grpc.MethodDescriptor getBatchDeleteEntityTypesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchDeleteEntityTypes", requestType = com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest, - com.google.longrunning.Operation> - getBatchDeleteEntityTypesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest, - com.google.longrunning.Operation> - getBatchDeleteEntityTypesMethod; - if ((getBatchDeleteEntityTypesMethod = EntityTypesGrpc.getBatchDeleteEntityTypesMethod) - == null) { + public static io.grpc.MethodDescriptor getBatchDeleteEntityTypesMethod() { + io.grpc.MethodDescriptor getBatchDeleteEntityTypesMethod; + if ((getBatchDeleteEntityTypesMethod = EntityTypesGrpc.getBatchDeleteEntityTypesMethod) == null) { synchronized (EntityTypesGrpc.class) { - if ((getBatchDeleteEntityTypesMethod = EntityTypesGrpc.getBatchDeleteEntityTypesMethod) - == null) { - EntityTypesGrpc.getBatchDeleteEntityTypesMethod = - getBatchDeleteEntityTypesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchDeleteEntityTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("BatchDeleteEntityTypes")) - .build(); + if ((getBatchDeleteEntityTypesMethod = EntityTypesGrpc.getBatchDeleteEntityTypesMethod) == null) { + EntityTypesGrpc.getBatchDeleteEntityTypesMethod = getBatchDeleteEntityTypesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDeleteEntityTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("BatchDeleteEntityTypes")) + .build(); } } } return getBatchDeleteEntityTypesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest, - com.google.longrunning.Operation> - getBatchCreateEntitiesMethod; + private static volatile io.grpc.MethodDescriptor getBatchCreateEntitiesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchCreateEntities", requestType = com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest, - com.google.longrunning.Operation> - getBatchCreateEntitiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest, - com.google.longrunning.Operation> - getBatchCreateEntitiesMethod; + public static io.grpc.MethodDescriptor getBatchCreateEntitiesMethod() { + io.grpc.MethodDescriptor getBatchCreateEntitiesMethod; if ((getBatchCreateEntitiesMethod = EntityTypesGrpc.getBatchCreateEntitiesMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getBatchCreateEntitiesMethod = EntityTypesGrpc.getBatchCreateEntitiesMethod) == null) { - EntityTypesGrpc.getBatchCreateEntitiesMethod = - getBatchCreateEntitiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchCreateEntities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("BatchCreateEntities")) - .build(); + EntityTypesGrpc.getBatchCreateEntitiesMethod = getBatchCreateEntitiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateEntities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("BatchCreateEntities")) + .build(); } } } return getBatchCreateEntitiesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest, - com.google.longrunning.Operation> - getBatchUpdateEntitiesMethod; + private static volatile io.grpc.MethodDescriptor getBatchUpdateEntitiesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchUpdateEntities", requestType = com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest, - com.google.longrunning.Operation> - getBatchUpdateEntitiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest, - com.google.longrunning.Operation> - getBatchUpdateEntitiesMethod; + public static io.grpc.MethodDescriptor getBatchUpdateEntitiesMethod() { + io.grpc.MethodDescriptor getBatchUpdateEntitiesMethod; if ((getBatchUpdateEntitiesMethod = EntityTypesGrpc.getBatchUpdateEntitiesMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getBatchUpdateEntitiesMethod = EntityTypesGrpc.getBatchUpdateEntitiesMethod) == null) { - EntityTypesGrpc.getBatchUpdateEntitiesMethod = - getBatchUpdateEntitiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchUpdateEntities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("BatchUpdateEntities")) - .build(); + EntityTypesGrpc.getBatchUpdateEntitiesMethod = getBatchUpdateEntitiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchUpdateEntities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("BatchUpdateEntities")) + .build(); } } } return getBatchUpdateEntitiesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest, - com.google.longrunning.Operation> - getBatchDeleteEntitiesMethod; + private static volatile io.grpc.MethodDescriptor getBatchDeleteEntitiesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchDeleteEntities", requestType = com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest, - com.google.longrunning.Operation> - getBatchDeleteEntitiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest, - com.google.longrunning.Operation> - getBatchDeleteEntitiesMethod; + public static io.grpc.MethodDescriptor getBatchDeleteEntitiesMethod() { + io.grpc.MethodDescriptor getBatchDeleteEntitiesMethod; if ((getBatchDeleteEntitiesMethod = EntityTypesGrpc.getBatchDeleteEntitiesMethod) == null) { synchronized (EntityTypesGrpc.class) { if ((getBatchDeleteEntitiesMethod = EntityTypesGrpc.getBatchDeleteEntitiesMethod) == null) { - EntityTypesGrpc.getBatchDeleteEntitiesMethod = - getBatchDeleteEntitiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchDeleteEntities")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new EntityTypesMethodDescriptorSupplier("BatchDeleteEntities")) - .build(); + EntityTypesGrpc.getBatchDeleteEntitiesMethod = getBatchDeleteEntitiesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDeleteEntities")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new EntityTypesMethodDescriptorSupplier("BatchDeleteEntities")) + .build(); } } } return getBatchDeleteEntitiesMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static EntityTypesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EntityTypesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EntityTypesStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EntityTypesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EntityTypesStub(channel, callOptions); + } + }; return EntityTypesStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static EntityTypesBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static EntityTypesBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EntityTypesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EntityTypesBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EntityTypesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EntityTypesBlockingStub(channel, callOptions); + } + }; return EntityTypesBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static EntityTypesFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static EntityTypesFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EntityTypesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EntityTypesFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EntityTypesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EntityTypesFutureStub(channel, callOptions); + } + }; return EntityTypesFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].
    * 
*/ - public abstract static class EntityTypesImplBase implements io.grpc.BindableService { + public static abstract class EntityTypesImplBase implements io.grpc.BindableService { /** - * - * *
      * Returns the list of all entity types in the specified agent.
      * 
*/ - public void listEntityTypes( - com.google.cloud.dialogflow.v2.ListEntityTypesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEntityTypesMethod(), responseObserver); + public void listEntityTypes(com.google.cloud.dialogflow.v2.ListEntityTypesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEntityTypesMethod(), responseObserver); } /** - * - * *
      * Retrieves the specified entity type.
      * 
*/ - public void getEntityType( - com.google.cloud.dialogflow.v2.GetEntityTypeRequest request, + public void getEntityType(com.google.cloud.dialogflow.v2.GetEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEntityTypeMethod(), responseObserver); } /** - * - * *
      * Creates an entity type in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -588,16 +406,12 @@ public void getEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void createEntityType( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request, + public void createEntityType(com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEntityTypeMethod(), responseObserver); } /** - * - * *
      * Updates the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -605,16 +419,12 @@ public void createEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void updateEntityType( - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request, + public void updateEntityType(com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEntityTypeMethod(), responseObserver); } /** - * - * *
      * Deletes the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -622,16 +432,12 @@ public void updateEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void deleteEntityType( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request, + public void deleteEntityType(com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEntityTypeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEntityTypeMethod(), responseObserver); } /** - * - * *
      * Updates/Creates multiple entity types in the specified agent.
      * This method is a [long-running
@@ -645,16 +451,12 @@ public void deleteEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchUpdateEntityTypes( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request, + public void batchUpdateEntityTypes(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchUpdateEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchUpdateEntityTypesMethod(), responseObserver); } /** - * - * *
      * Deletes entity types in the specified agent.
      * This method is a [long-running
@@ -669,16 +471,12 @@ public void batchUpdateEntityTypes(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchDeleteEntityTypes( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request, + public void batchDeleteEntityTypes(com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteEntityTypesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchDeleteEntityTypesMethod(), responseObserver); } /** - * - * *
      * Creates multiple new entities in the specified entity type.
      * This method is a [long-running
@@ -693,16 +491,12 @@ public void batchDeleteEntityTypes(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchCreateEntities( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request, + public void batchCreateEntities(com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCreateEntitiesMethod(), responseObserver); } /** - * - * *
      * Updates or creates multiple entities in the specified entity type. This
      * method does not affect entities in the entity type that aren't explicitly
@@ -719,16 +513,12 @@ public void batchCreateEntities(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchUpdateEntities( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request, + public void batchUpdateEntities(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchUpdateEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchUpdateEntitiesMethod(), responseObserver); } /** - * - * *
      * Deletes entities in the specified entity type.
      * This method is a [long-running
@@ -743,137 +533,127 @@ public void batchUpdateEntities(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchDeleteEntities( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request, + public void batchDeleteEntities(com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteEntitiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchDeleteEntitiesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListEntityTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListEntityTypesRequest, - com.google.cloud.dialogflow.v2.ListEntityTypesResponse>( - this, METHODID_LIST_ENTITY_TYPES))) + getListEntityTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListEntityTypesRequest, + com.google.cloud.dialogflow.v2.ListEntityTypesResponse>( + this, METHODID_LIST_ENTITY_TYPES))) .addMethod( - getGetEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType>(this, METHODID_GET_ENTITY_TYPE))) + getGetEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetEntityTypeRequest, + com.google.cloud.dialogflow.v2.EntityType>( + this, METHODID_GET_ENTITY_TYPE))) .addMethod( - getCreateEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType>( - this, METHODID_CREATE_ENTITY_TYPE))) + getCreateEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest, + com.google.cloud.dialogflow.v2.EntityType>( + this, METHODID_CREATE_ENTITY_TYPE))) .addMethod( - getUpdateEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest, - com.google.cloud.dialogflow.v2.EntityType>( - this, METHODID_UPDATE_ENTITY_TYPE))) + getUpdateEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest, + com.google.cloud.dialogflow.v2.EntityType>( + this, METHODID_UPDATE_ENTITY_TYPE))) .addMethod( - getDeleteEntityTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ENTITY_TYPE))) + getDeleteEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ENTITY_TYPE))) .addMethod( - getBatchUpdateEntityTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_ENTITY_TYPES))) + getBatchUpdateEntityTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_UPDATE_ENTITY_TYPES))) .addMethod( - getBatchDeleteEntityTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_ENTITY_TYPES))) + getBatchDeleteEntityTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_DELETE_ENTITY_TYPES))) .addMethod( - getBatchCreateEntitiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_CREATE_ENTITIES))) + getBatchCreateEntitiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_CREATE_ENTITIES))) .addMethod( - getBatchUpdateEntitiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_ENTITIES))) + getBatchUpdateEntitiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_UPDATE_ENTITIES))) .addMethod( - getBatchDeleteEntitiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_ENTITIES))) + getBatchDeleteEntitiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_DELETE_ENTITIES))) .build(); } } /** - * - * *
    * Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].
    * 
*/ - public static final class EntityTypesStub - extends io.grpc.stub.AbstractAsyncStub { - private EntityTypesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class EntityTypesStub extends io.grpc.stub.AbstractAsyncStub { + private EntityTypesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected EntityTypesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected EntityTypesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new EntityTypesStub(channel, callOptions); } /** - * - * *
      * Returns the list of all entity types in the specified agent.
      * 
*/ - public void listEntityTypes( - com.google.cloud.dialogflow.v2.ListEntityTypesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listEntityTypes(com.google.cloud.dialogflow.v2.ListEntityTypesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves the specified entity type.
      * 
*/ - public void getEntityType( - com.google.cloud.dialogflow.v2.GetEntityTypeRequest request, + public void getEntityType(com.google.cloud.dialogflow.v2.GetEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates an entity type in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -881,18 +661,13 @@ public void getEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void createEntityType( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request, + public void createEntityType(com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -900,18 +675,13 @@ public void createEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void updateEntityType( - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request, + public void updateEntityType(com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -919,18 +689,13 @@ public void updateEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void deleteEntityType( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request, + public void deleteEntityType(com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates/Creates multiple entity types in the specified agent.
      * This method is a [long-running
@@ -944,18 +709,13 @@ public void deleteEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchUpdateEntityTypes( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request, + public void batchUpdateEntityTypes(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateEntityTypesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchUpdateEntityTypesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes entity types in the specified agent.
      * This method is a [long-running
@@ -970,18 +730,13 @@ public void batchUpdateEntityTypes(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchDeleteEntityTypes( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request, + public void batchDeleteEntityTypes(com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteEntityTypesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchDeleteEntityTypesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates multiple new entities in the specified entity type.
      * This method is a [long-running
@@ -996,18 +751,13 @@ public void batchDeleteEntityTypes(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchCreateEntities( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request, + public void batchCreateEntities(com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateEntitiesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchCreateEntitiesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates or creates multiple entities in the specified entity type. This
      * method does not affect entities in the entity type that aren't explicitly
@@ -1024,18 +774,13 @@ public void batchCreateEntities(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchUpdateEntities( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request, + public void batchUpdateEntities(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateEntitiesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchUpdateEntitiesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes entities in the specified entity type.
      * This method is a [long-running
@@ -1050,26 +795,21 @@ public void batchUpdateEntities(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchDeleteEntities( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request, + public void batchDeleteEntities(com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteEntitiesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchDeleteEntitiesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].
    * 
*/ - public static final class EntityTypesBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private EntityTypesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class EntityTypesBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private EntityTypesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1080,34 +820,26 @@ protected EntityTypesBlockingStub build( } /** - * - * *
      * Returns the list of all entity types in the specified agent.
      * 
*/ - public com.google.cloud.dialogflow.v2.ListEntityTypesResponse listEntityTypes( - com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) { + public com.google.cloud.dialogflow.v2.ListEntityTypesResponse listEntityTypes(com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListEntityTypesMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves the specified entity type.
      * 
*/ - public com.google.cloud.dialogflow.v2.EntityType getEntityType( - com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) { + public com.google.cloud.dialogflow.v2.EntityType getEntityType(com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetEntityTypeMethod(), getCallOptions(), request); } /** - * - * *
      * Creates an entity type in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -1115,15 +847,12 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.cloud.dialogflow.v2.EntityType createEntityType( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) { + public com.google.cloud.dialogflow.v2.EntityType createEntityType(com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateEntityTypeMethod(), getCallOptions(), request); } /** - * - * *
      * Updates the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -1131,15 +860,12 @@ public com.google.cloud.dialogflow.v2.EntityType createEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.cloud.dialogflow.v2.EntityType updateEntityType( - com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) { + public com.google.cloud.dialogflow.v2.EntityType updateEntityType(com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateEntityTypeMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -1147,15 +873,12 @@ public com.google.cloud.dialogflow.v2.EntityType updateEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.protobuf.Empty deleteEntityType( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) { + public com.google.protobuf.Empty deleteEntityType(com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteEntityTypeMethod(), getCallOptions(), request); } /** - * - * *
      * Updates/Creates multiple entity types in the specified agent.
      * This method is a [long-running
@@ -1169,15 +892,12 @@ public com.google.protobuf.Empty deleteEntityType(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation batchUpdateEntityTypes( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) { + public com.google.longrunning.Operation batchUpdateEntityTypes(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateEntityTypesMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes entity types in the specified agent.
      * This method is a [long-running
@@ -1192,15 +912,12 @@ public com.google.longrunning.Operation batchUpdateEntityTypes(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation batchDeleteEntityTypes( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) { + public com.google.longrunning.Operation batchDeleteEntityTypes(com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteEntityTypesMethod(), getCallOptions(), request); } /** - * - * *
      * Creates multiple new entities in the specified entity type.
      * This method is a [long-running
@@ -1215,15 +932,12 @@ public com.google.longrunning.Operation batchDeleteEntityTypes(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation batchCreateEntities( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) { + public com.google.longrunning.Operation batchCreateEntities(com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateEntitiesMethod(), getCallOptions(), request); } /** - * - * *
      * Updates or creates multiple entities in the specified entity type. This
      * method does not affect entities in the entity type that aren't explicitly
@@ -1240,15 +954,12 @@ public com.google.longrunning.Operation batchCreateEntities(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation batchUpdateEntities( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) { + public com.google.longrunning.Operation batchUpdateEntities(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateEntitiesMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes entities in the specified entity type.
      * This method is a [long-running
@@ -1263,23 +974,20 @@ public com.google.longrunning.Operation batchUpdateEntities(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation batchDeleteEntities( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) { + public com.google.longrunning.Operation batchDeleteEntities(com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteEntitiesMethod(), getCallOptions(), request); } } /** - * - * *
    * Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].
    * 
*/ - public static final class EntityTypesFutureStub - extends io.grpc.stub.AbstractFutureStub { - private EntityTypesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class EntityTypesFutureStub extends io.grpc.stub.AbstractFutureStub { + private EntityTypesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1290,36 +998,28 @@ protected EntityTypesFutureStub build( } /** - * - * *
      * Returns the list of all entity types in the specified agent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListEntityTypesResponse> - listEntityTypes(com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) { + public com.google.common.util.concurrent.ListenableFuture listEntityTypes( + com.google.cloud.dialogflow.v2.ListEntityTypesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEntityTypesMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves the specified entity type.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.EntityType> - getEntityType(com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) { + public com.google.common.util.concurrent.ListenableFuture getEntityType( + com.google.cloud.dialogflow.v2.GetEntityTypeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEntityTypeMethod(), getCallOptions()), request); } /** - * - * *
      * Creates an entity type in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -1327,16 +1027,13 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.EntityType> - createEntityType(com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) { + public com.google.common.util.concurrent.ListenableFuture createEntityType( + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEntityTypeMethod(), getCallOptions()), request); } /** - * - * *
      * Updates the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -1344,16 +1041,13 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.EntityType> - updateEntityType(com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateEntityType( + com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEntityTypeMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes the specified entity type.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -1361,15 +1055,13 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteEntityType(com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteEntityType( + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEntityTypeMethod(), getCallOptions()), request); } /** - * - * *
      * Updates/Creates multiple entity types in the specified agent.
      * This method is a [long-running
@@ -1383,16 +1075,13 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchUpdateEntityTypes( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchUpdateEntityTypes( + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateEntityTypesMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes entity types in the specified agent.
      * This method is a [long-running
@@ -1407,16 +1096,13 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchDeleteEntityTypes( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchDeleteEntityTypes( + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteEntityTypesMethod(), getCallOptions()), request); } /** - * - * *
      * Creates multiple new entities in the specified entity type.
      * This method is a [long-running
@@ -1431,15 +1117,13 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchCreateEntities(com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchCreateEntities( + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateEntitiesMethod(), getCallOptions()), request); } /** - * - * *
      * Updates or creates multiple entities in the specified entity type. This
      * method does not affect entities in the entity type that aren't explicitly
@@ -1456,15 +1140,13 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchUpdateEntities(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchUpdateEntities( + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateEntitiesMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes entities in the specified entity type.
      * This method is a [long-running
@@ -1479,8 +1161,8 @@ protected EntityTypesFutureStub build(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchDeleteEntities(com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchDeleteEntities( + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteEntitiesMethod(), getCallOptions()), request); } @@ -1497,11 +1179,11 @@ protected EntityTypesFutureStub build( private static final int METHODID_BATCH_UPDATE_ENTITIES = 8; private static final int METHODID_BATCH_DELETE_ENTITIES = 9; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final EntityTypesImplBase serviceImpl; private final int methodId; @@ -1515,57 +1197,43 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_ENTITY_TYPES: - serviceImpl.listEntityTypes( - (com.google.cloud.dialogflow.v2.ListEntityTypesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listEntityTypes((com.google.cloud.dialogflow.v2.ListEntityTypesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ENTITY_TYPE: - serviceImpl.getEntityType( - (com.google.cloud.dialogflow.v2.GetEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getEntityType((com.google.cloud.dialogflow.v2.GetEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_ENTITY_TYPE: - serviceImpl.createEntityType( - (com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createEntityType((com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_ENTITY_TYPE: - serviceImpl.updateEntityType( - (com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateEntityType((com.google.cloud.dialogflow.v2.UpdateEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_ENTITY_TYPE: - serviceImpl.deleteEntityType( - (com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) request, + serviceImpl.deleteEntityType((com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_UPDATE_ENTITY_TYPES: - serviceImpl.batchUpdateEntityTypes( - (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) request, + serviceImpl.batchUpdateEntityTypes((com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_DELETE_ENTITY_TYPES: - serviceImpl.batchDeleteEntityTypes( - (com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) request, + serviceImpl.batchDeleteEntityTypes((com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_CREATE_ENTITIES: - serviceImpl.batchCreateEntities( - (com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) request, + serviceImpl.batchCreateEntities((com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_UPDATE_ENTITIES: - serviceImpl.batchUpdateEntities( - (com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) request, + serviceImpl.batchUpdateEntities((com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_DELETE_ENTITIES: - serviceImpl.batchDeleteEntities( - (com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) request, + serviceImpl.batchDeleteEntities((com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1584,9 +1252,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class EntityTypesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class EntityTypesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { EntityTypesBaseDescriptorSupplier() {} @java.lang.Override @@ -1628,21 +1295,19 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (EntityTypesGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EntityTypesFileDescriptorSupplier()) - .addMethod(getListEntityTypesMethod()) - .addMethod(getGetEntityTypeMethod()) - .addMethod(getCreateEntityTypeMethod()) - .addMethod(getUpdateEntityTypeMethod()) - .addMethod(getDeleteEntityTypeMethod()) - .addMethod(getBatchUpdateEntityTypesMethod()) - .addMethod(getBatchDeleteEntityTypesMethod()) - .addMethod(getBatchCreateEntitiesMethod()) - .addMethod(getBatchUpdateEntitiesMethod()) - .addMethod(getBatchDeleteEntitiesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EntityTypesFileDescriptorSupplier()) + .addMethod(getListEntityTypesMethod()) + .addMethod(getGetEntityTypeMethod()) + .addMethod(getCreateEntityTypeMethod()) + .addMethod(getUpdateEntityTypeMethod()) + .addMethod(getDeleteEntityTypeMethod()) + .addMethod(getBatchUpdateEntityTypesMethod()) + .addMethod(getBatchDeleteEntityTypesMethod()) + .addMethod(getBatchCreateEntitiesMethod()) + .addMethod(getBatchUpdateEntitiesMethod()) + .addMethod(getBatchDeleteEntitiesMethod()) + .build(); } } } diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java new file mode 100644 index 000000000..ae953c687 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsGrpc.java @@ -0,0 +1,772 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/environment.proto") +public final class EnvironmentsGrpc { + + private EnvironmentsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Environments"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListEnvironmentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEnvironments", + requestType = com.google.cloud.dialogflow.v2.ListEnvironmentsRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListEnvironmentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEnvironmentsMethod() { + io.grpc.MethodDescriptor getListEnvironmentsMethod; + if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getListEnvironmentsMethod = EnvironmentsGrpc.getListEnvironmentsMethod) == null) { + EnvironmentsGrpc.getListEnvironmentsMethod = getListEnvironmentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListEnvironmentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListEnvironmentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("ListEnvironments")) + .build(); + } + } + } + return getListEnvironmentsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEnvironment", + requestType = com.google.cloud.dialogflow.v2.GetEnvironmentRequest.class, + responseType = com.google.cloud.dialogflow.v2.Environment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEnvironmentMethod() { + io.grpc.MethodDescriptor getGetEnvironmentMethod; + if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getGetEnvironmentMethod = EnvironmentsGrpc.getGetEnvironmentMethod) == null) { + EnvironmentsGrpc.getGetEnvironmentMethod = getGetEnvironmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetEnvironmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Environment.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("GetEnvironment")) + .build(); + } + } + } + return getGetEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment", + requestType = com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.class, + responseType = com.google.cloud.dialogflow.v2.Environment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateEnvironmentMethod() { + io.grpc.MethodDescriptor getCreateEnvironmentMethod; + if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getCreateEnvironmentMethod = EnvironmentsGrpc.getCreateEnvironmentMethod) == null) { + EnvironmentsGrpc.getCreateEnvironmentMethod = getCreateEnvironmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Environment.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("CreateEnvironment")) + .build(); + } + } + } + return getCreateEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEnvironment", + requestType = com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest.class, + responseType = com.google.cloud.dialogflow.v2.Environment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateEnvironmentMethod() { + io.grpc.MethodDescriptor getUpdateEnvironmentMethod; + if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getUpdateEnvironmentMethod = EnvironmentsGrpc.getUpdateEnvironmentMethod) == null) { + EnvironmentsGrpc.getUpdateEnvironmentMethod = getUpdateEnvironmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Environment.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("UpdateEnvironment")) + .build(); + } + } + } + return getUpdateEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment", + requestType = com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteEnvironmentMethod() { + io.grpc.MethodDescriptor getDeleteEnvironmentMethod; + if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getDeleteEnvironmentMethod = EnvironmentsGrpc.getDeleteEnvironmentMethod) == null) { + EnvironmentsGrpc.getDeleteEnvironmentMethod = getDeleteEnvironmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("DeleteEnvironment")) + .build(); + } + } + } + return getDeleteEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEnvironmentHistoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEnvironmentHistory", + requestType = com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.class, + responseType = com.google.cloud.dialogflow.v2.EnvironmentHistory.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEnvironmentHistoryMethod() { + io.grpc.MethodDescriptor getGetEnvironmentHistoryMethod; + if ((getGetEnvironmentHistoryMethod = EnvironmentsGrpc.getGetEnvironmentHistoryMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getGetEnvironmentHistoryMethod = EnvironmentsGrpc.getGetEnvironmentHistoryMethod) == null) { + EnvironmentsGrpc.getGetEnvironmentHistoryMethod = getGetEnvironmentHistoryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironmentHistory")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.EnvironmentHistory.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentsMethodDescriptorSupplier("GetEnvironmentHistory")) + .build(); + } + } + } + return getGetEnvironmentHistoryMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static EnvironmentsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnvironmentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnvironmentsStub(channel, callOptions); + } + }; + return EnvironmentsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EnvironmentsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnvironmentsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnvironmentsBlockingStub(channel, callOptions); + } + }; + return EnvironmentsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static EnvironmentsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EnvironmentsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnvironmentsFutureStub(channel, callOptions); + } + }; + return EnvironmentsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
+   * 
+ */ + public static abstract class EnvironmentsImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the list of all non-default environments of the specified agent.
+     * 
+ */ + public void listEnvironments(com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEnvironmentsMethod(), responseObserver); + } + + /** + *
+     * Retrieves the specified agent environment.
+     * 
+ */ + public void getEnvironment(com.google.cloud.dialogflow.v2.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnvironmentMethod(), responseObserver); + } + + /** + *
+     * Creates an agent environment.
+     * 
+ */ + public void createEnvironment(com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEnvironmentMethod(), responseObserver); + } + + /** + *
+     * Updates the specified agent environment.
+     * This method allows you to deploy new agent versions into the environment.
+     * When an environment is pointed to a new agent version by setting
+     * `environment.agent_version`, the environment is temporarily set to the
+     * `LOADING` state. During that time, the environment continues serving the
+     * previous version of the agent. After the new agent version is done loading,
+     * the environment is set back to the `RUNNING` state.
+     * You can use "-" as Environment ID in environment name to update an agent
+     * version in the default environment. WARNING: this will negate all recent
+     * changes to the draft agent and can't be undone. You may want to save the
+     * draft agent to a version before calling this method.
+     * 
+ */ + public void updateEnvironment(com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEnvironmentMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified agent environment.
+     * 
+ */ + public void deleteEnvironment(com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEnvironmentMethod(), responseObserver); + } + + /** + *
+     * Gets the history of the specified environment.
+     * 
+ */ + public void getEnvironmentHistory(com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnvironmentHistoryMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListEnvironmentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListEnvironmentsRequest, + com.google.cloud.dialogflow.v2.ListEnvironmentsResponse>( + this, METHODID_LIST_ENVIRONMENTS))) + .addMethod( + getGetEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetEnvironmentRequest, + com.google.cloud.dialogflow.v2.Environment>( + this, METHODID_GET_ENVIRONMENT))) + .addMethod( + getCreateEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest, + com.google.cloud.dialogflow.v2.Environment>( + this, METHODID_CREATE_ENVIRONMENT))) + .addMethod( + getUpdateEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest, + com.google.cloud.dialogflow.v2.Environment>( + this, METHODID_UPDATE_ENVIRONMENT))) + .addMethod( + getDeleteEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ENVIRONMENT))) + .addMethod( + getGetEnvironmentHistoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest, + com.google.cloud.dialogflow.v2.EnvironmentHistory>( + this, METHODID_GET_ENVIRONMENT_HISTORY))) + .build(); + } + } + + /** + *
+   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
+   * 
+ */ + public static final class EnvironmentsStub extends io.grpc.stub.AbstractAsyncStub { + private EnvironmentsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnvironmentsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnvironmentsStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all non-default environments of the specified agent.
+     * 
+ */ + public void listEnvironments(com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the specified agent environment.
+     * 
+ */ + public void getEnvironment(com.google.cloud.dialogflow.v2.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an agent environment.
+     * 
+ */ + public void createEnvironment(com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified agent environment.
+     * This method allows you to deploy new agent versions into the environment.
+     * When an environment is pointed to a new agent version by setting
+     * `environment.agent_version`, the environment is temporarily set to the
+     * `LOADING` state. During that time, the environment continues serving the
+     * previous version of the agent. After the new agent version is done loading,
+     * the environment is set back to the `RUNNING` state.
+     * You can use "-" as Environment ID in environment name to update an agent
+     * version in the default environment. WARNING: this will negate all recent
+     * changes to the draft agent and can't be undone. You may want to save the
+     * draft agent to a version before calling this method.
+     * 
+ */ + public void updateEnvironment(com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified agent environment.
+     * 
+ */ + public void deleteEnvironment(com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the history of the specified environment.
+     * 
+ */ + public void getEnvironmentHistory(com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnvironmentHistoryMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
+   * 
+ */ + public static final class EnvironmentsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private EnvironmentsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnvironmentsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnvironmentsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all non-default environments of the specified agent.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListEnvironmentsResponse listEnvironments(com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the specified agent environment.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Environment getEnvironment(com.google.cloud.dialogflow.v2.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an agent environment.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Environment createEnvironment(com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified agent environment.
+     * This method allows you to deploy new agent versions into the environment.
+     * When an environment is pointed to a new agent version by setting
+     * `environment.agent_version`, the environment is temporarily set to the
+     * `LOADING` state. During that time, the environment continues serving the
+     * previous version of the agent. After the new agent version is done loading,
+     * the environment is set back to the `RUNNING` state.
+     * You can use "-" as Environment ID in environment name to update an agent
+     * version in the default environment. WARNING: this will negate all recent
+     * changes to the draft agent and can't be undone. You may want to save the
+     * draft agent to a version before calling this method.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Environment updateEnvironment(com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEnvironmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified agent environment.
+     * 
+ */ + public com.google.protobuf.Empty deleteEnvironment(com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the history of the specified environment.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.EnvironmentHistory getEnvironmentHistory(com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnvironmentHistoryMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
+   * 
+ */ + public static final class EnvironmentsFutureStub extends io.grpc.stub.AbstractFutureStub { + private EnvironmentsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EnvironmentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EnvironmentsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all non-default environments of the specified agent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEnvironments( + com.google.cloud.dialogflow.v2.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the specified agent environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEnvironment( + com.google.cloud.dialogflow.v2.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an agent environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createEnvironment( + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified agent environment.
+     * This method allows you to deploy new agent versions into the environment.
+     * When an environment is pointed to a new agent version by setting
+     * `environment.agent_version`, the environment is temporarily set to the
+     * `LOADING` state. During that time, the environment continues serving the
+     * previous version of the agent. After the new agent version is done loading,
+     * the environment is set back to the `RUNNING` state.
+     * You can use "-" as Environment ID in environment name to update an agent
+     * version in the default environment. WARNING: this will negate all recent
+     * changes to the draft agent and can't be undone. You may want to save the
+     * draft agent to a version before calling this method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateEnvironment( + com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEnvironmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified agent environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteEnvironment( + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the history of the specified environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEnvironmentHistory( + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEnvironmentHistoryMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ENVIRONMENTS = 0; + private static final int METHODID_GET_ENVIRONMENT = 1; + private static final int METHODID_CREATE_ENVIRONMENT = 2; + private static final int METHODID_UPDATE_ENVIRONMENT = 3; + private static final int METHODID_DELETE_ENVIRONMENT = 4; + private static final int METHODID_GET_ENVIRONMENT_HISTORY = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EnvironmentsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EnvironmentsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_ENVIRONMENTS: + serviceImpl.listEnvironments((com.google.cloud.dialogflow.v2.ListEnvironmentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ENVIRONMENT: + serviceImpl.getEnvironment((com.google.cloud.dialogflow.v2.GetEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ENVIRONMENT: + serviceImpl.createEnvironment((com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ENVIRONMENT: + serviceImpl.updateEnvironment((com.google.cloud.dialogflow.v2.UpdateEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ENVIRONMENT: + serviceImpl.deleteEnvironment((com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ENVIRONMENT_HISTORY: + serviceImpl.getEnvironmentHistory((com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class EnvironmentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EnvironmentsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Environments"); + } + } + + private static final class EnvironmentsFileDescriptorSupplier + extends EnvironmentsBaseDescriptorSupplier { + EnvironmentsFileDescriptorSupplier() {} + } + + private static final class EnvironmentsMethodDescriptorSupplier + extends EnvironmentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EnvironmentsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EnvironmentsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EnvironmentsFileDescriptorSupplier()) + .addMethod(getListEnvironmentsMethod()) + .addMethod(getGetEnvironmentMethod()) + .addMethod(getCreateEnvironmentMethod()) + .addMethod(getUpdateEnvironmentMethod()) + .addMethod(getDeleteEnvironmentMethod()) + .addMethod(getGetEnvironmentHistoryMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java new file mode 100644 index 000000000..3c743a864 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsGrpc.java @@ -0,0 +1,388 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/fulfillment.proto") +public final class FulfillmentsGrpc { + + private FulfillmentsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Fulfillments"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetFulfillmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFulfillment", + requestType = com.google.cloud.dialogflow.v2.GetFulfillmentRequest.class, + responseType = com.google.cloud.dialogflow.v2.Fulfillment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFulfillmentMethod() { + io.grpc.MethodDescriptor getGetFulfillmentMethod; + if ((getGetFulfillmentMethod = FulfillmentsGrpc.getGetFulfillmentMethod) == null) { + synchronized (FulfillmentsGrpc.class) { + if ((getGetFulfillmentMethod = FulfillmentsGrpc.getGetFulfillmentMethod) == null) { + FulfillmentsGrpc.getGetFulfillmentMethod = getGetFulfillmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFulfillment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetFulfillmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance())) + .setSchemaDescriptor(new FulfillmentsMethodDescriptorSupplier("GetFulfillment")) + .build(); + } + } + } + return getGetFulfillmentMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFulfillmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFulfillment", + requestType = com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest.class, + responseType = com.google.cloud.dialogflow.v2.Fulfillment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFulfillmentMethod() { + io.grpc.MethodDescriptor getUpdateFulfillmentMethod; + if ((getUpdateFulfillmentMethod = FulfillmentsGrpc.getUpdateFulfillmentMethod) == null) { + synchronized (FulfillmentsGrpc.class) { + if ((getUpdateFulfillmentMethod = FulfillmentsGrpc.getUpdateFulfillmentMethod) == null) { + FulfillmentsGrpc.getUpdateFulfillmentMethod = getUpdateFulfillmentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFulfillment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance())) + .setSchemaDescriptor(new FulfillmentsMethodDescriptorSupplier("UpdateFulfillment")) + .build(); + } + } + } + return getUpdateFulfillmentMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static FulfillmentsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FulfillmentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FulfillmentsStub(channel, callOptions); + } + }; + return FulfillmentsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static FulfillmentsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FulfillmentsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FulfillmentsBlockingStub(channel, callOptions); + } + }; + return FulfillmentsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static FulfillmentsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public FulfillmentsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FulfillmentsFutureStub(channel, callOptions); + } + }; + return FulfillmentsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
+   * 
+ */ + public static abstract class FulfillmentsImplBase implements io.grpc.BindableService { + + /** + *
+     * Retrieves the fulfillment.
+     * 
+ */ + public void getFulfillment(com.google.cloud.dialogflow.v2.GetFulfillmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFulfillmentMethod(), responseObserver); + } + + /** + *
+     * Updates the fulfillment.
+     * 
+ */ + public void updateFulfillment(com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFulfillmentMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetFulfillmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetFulfillmentRequest, + com.google.cloud.dialogflow.v2.Fulfillment>( + this, METHODID_GET_FULFILLMENT))) + .addMethod( + getUpdateFulfillmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest, + com.google.cloud.dialogflow.v2.Fulfillment>( + this, METHODID_UPDATE_FULFILLMENT))) + .build(); + } + } + + /** + *
+   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
+   * 
+ */ + public static final class FulfillmentsStub extends io.grpc.stub.AbstractAsyncStub { + private FulfillmentsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FulfillmentsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FulfillmentsStub(channel, callOptions); + } + + /** + *
+     * Retrieves the fulfillment.
+     * 
+ */ + public void getFulfillment(com.google.cloud.dialogflow.v2.GetFulfillmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFulfillmentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the fulfillment.
+     * 
+ */ + public void updateFulfillment(com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFulfillmentMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
+   * 
+ */ + public static final class FulfillmentsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private FulfillmentsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FulfillmentsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FulfillmentsBlockingStub(channel, callOptions); + } + + /** + *
+     * Retrieves the fulfillment.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Fulfillment getFulfillment(com.google.cloud.dialogflow.v2.GetFulfillmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFulfillmentMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the fulfillment.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Fulfillment updateFulfillment(com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFulfillmentMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
+   * 
+ */ + public static final class FulfillmentsFutureStub extends io.grpc.stub.AbstractFutureStub { + private FulfillmentsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected FulfillmentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new FulfillmentsFutureStub(channel, callOptions); + } + + /** + *
+     * Retrieves the fulfillment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFulfillment( + com.google.cloud.dialogflow.v2.GetFulfillmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFulfillmentMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the fulfillment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFulfillment( + com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFulfillmentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_FULFILLMENT = 0; + private static final int METHODID_UPDATE_FULFILLMENT = 1; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final FulfillmentsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(FulfillmentsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_FULFILLMENT: + serviceImpl.getFulfillment((com.google.cloud.dialogflow.v2.GetFulfillmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FULFILLMENT: + serviceImpl.updateFulfillment((com.google.cloud.dialogflow.v2.UpdateFulfillmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class FulfillmentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + FulfillmentsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.FulfillmentProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Fulfillments"); + } + } + + private static final class FulfillmentsFileDescriptorSupplier + extends FulfillmentsBaseDescriptorSupplier { + FulfillmentsFileDescriptorSupplier() {} + } + + private static final class FulfillmentsMethodDescriptorSupplier + extends FulfillmentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + FulfillmentsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (FulfillmentsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new FulfillmentsFileDescriptorSupplier()) + .addMethod(getGetFulfillmentMethod()) + .addMethod(getUpdateFulfillmentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java similarity index 51% rename from grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java index 50d14b2e7..896727a63 100644 --- a/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/IntentsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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; /** - * - * *
  * Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
  * 
@@ -34,393 +17,295 @@ private IntentsGrpc() {} public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Intents"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListIntentsRequest, - com.google.cloud.dialogflow.v2.ListIntentsResponse> - getListIntentsMethod; + private static volatile io.grpc.MethodDescriptor getListIntentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListIntents", requestType = com.google.cloud.dialogflow.v2.ListIntentsRequest.class, responseType = com.google.cloud.dialogflow.v2.ListIntentsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListIntentsRequest, - com.google.cloud.dialogflow.v2.ListIntentsResponse> - getListIntentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.ListIntentsRequest, - com.google.cloud.dialogflow.v2.ListIntentsResponse> - getListIntentsMethod; + public static io.grpc.MethodDescriptor getListIntentsMethod() { + io.grpc.MethodDescriptor getListIntentsMethod; if ((getListIntentsMethod = IntentsGrpc.getListIntentsMethod) == null) { synchronized (IntentsGrpc.class) { if ((getListIntentsMethod = IntentsGrpc.getListIntentsMethod) == null) { - IntentsGrpc.getListIntentsMethod = - getListIntentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIntents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListIntentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.ListIntentsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("ListIntents")) - .build(); + IntentsGrpc.getListIntentsMethod = getListIntentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIntents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListIntentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListIntentsResponse.getDefaultInstance())) + .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("ListIntents")) + .build(); } } } return getListIntentsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetIntentRequest, com.google.cloud.dialogflow.v2.Intent> - getGetIntentMethod; + private static volatile io.grpc.MethodDescriptor getGetIntentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIntent", requestType = com.google.cloud.dialogflow.v2.GetIntentRequest.class, responseType = com.google.cloud.dialogflow.v2.Intent.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetIntentRequest, com.google.cloud.dialogflow.v2.Intent> - getGetIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.GetIntentRequest, com.google.cloud.dialogflow.v2.Intent> - getGetIntentMethod; + public static io.grpc.MethodDescriptor getGetIntentMethod() { + io.grpc.MethodDescriptor getGetIntentMethod; if ((getGetIntentMethod = IntentsGrpc.getGetIntentMethod) == null) { synchronized (IntentsGrpc.class) { if ((getGetIntentMethod = IntentsGrpc.getGetIntentMethod) == null) { - IntentsGrpc.getGetIntentMethod = - getGetIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.GetIntentRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Intent.getDefaultInstance())) - .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("GetIntent")) - .build(); + IntentsGrpc.getGetIntentMethod = getGetIntentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIntent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetIntentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Intent.getDefaultInstance())) + .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("GetIntent")) + .build(); } } } return getGetIntentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateIntentRequest, com.google.cloud.dialogflow.v2.Intent> - getCreateIntentMethod; + private static volatile io.grpc.MethodDescriptor getCreateIntentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateIntent", requestType = com.google.cloud.dialogflow.v2.CreateIntentRequest.class, responseType = com.google.cloud.dialogflow.v2.Intent.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateIntentRequest, com.google.cloud.dialogflow.v2.Intent> - getCreateIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.CreateIntentRequest, - com.google.cloud.dialogflow.v2.Intent> - getCreateIntentMethod; + public static io.grpc.MethodDescriptor getCreateIntentMethod() { + io.grpc.MethodDescriptor getCreateIntentMethod; if ((getCreateIntentMethod = IntentsGrpc.getCreateIntentMethod) == null) { synchronized (IntentsGrpc.class) { if ((getCreateIntentMethod = IntentsGrpc.getCreateIntentMethod) == null) { - IntentsGrpc.getCreateIntentMethod = - getCreateIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.CreateIntentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Intent.getDefaultInstance())) - .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("CreateIntent")) - .build(); + IntentsGrpc.getCreateIntentMethod = getCreateIntentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIntent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateIntentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Intent.getDefaultInstance())) + .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("CreateIntent")) + .build(); } } } return getCreateIntentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateIntentRequest, com.google.cloud.dialogflow.v2.Intent> - getUpdateIntentMethod; + private static volatile io.grpc.MethodDescriptor getUpdateIntentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateIntent", requestType = com.google.cloud.dialogflow.v2.UpdateIntentRequest.class, responseType = com.google.cloud.dialogflow.v2.Intent.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateIntentRequest, com.google.cloud.dialogflow.v2.Intent> - getUpdateIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.UpdateIntentRequest, - com.google.cloud.dialogflow.v2.Intent> - getUpdateIntentMethod; + public static io.grpc.MethodDescriptor getUpdateIntentMethod() { + io.grpc.MethodDescriptor getUpdateIntentMethod; if ((getUpdateIntentMethod = IntentsGrpc.getUpdateIntentMethod) == null) { synchronized (IntentsGrpc.class) { if ((getUpdateIntentMethod = IntentsGrpc.getUpdateIntentMethod) == null) { - IntentsGrpc.getUpdateIntentMethod = - getUpdateIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.UpdateIntentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.Intent.getDefaultInstance())) - .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("UpdateIntent")) - .build(); + IntentsGrpc.getUpdateIntentMethod = getUpdateIntentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateIntent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateIntentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Intent.getDefaultInstance())) + .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("UpdateIntent")) + .build(); } } } return getUpdateIntentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteIntentRequest, com.google.protobuf.Empty> - getDeleteIntentMethod; + private static volatile io.grpc.MethodDescriptor getDeleteIntentMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteIntent", requestType = com.google.cloud.dialogflow.v2.DeleteIntentRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteIntentRequest, com.google.protobuf.Empty> - getDeleteIntentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.DeleteIntentRequest, com.google.protobuf.Empty> - getDeleteIntentMethod; + public static io.grpc.MethodDescriptor getDeleteIntentMethod() { + io.grpc.MethodDescriptor getDeleteIntentMethod; if ((getDeleteIntentMethod = IntentsGrpc.getDeleteIntentMethod) == null) { synchronized (IntentsGrpc.class) { if ((getDeleteIntentMethod = IntentsGrpc.getDeleteIntentMethod) == null) { - IntentsGrpc.getDeleteIntentMethod = - getDeleteIntentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIntent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.DeleteIntentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("DeleteIntent")) - .build(); + IntentsGrpc.getDeleteIntentMethod = getDeleteIntentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIntent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteIntentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("DeleteIntent")) + .build(); } } } return getDeleteIntentMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest, - com.google.longrunning.Operation> - getBatchUpdateIntentsMethod; + private static volatile io.grpc.MethodDescriptor getBatchUpdateIntentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchUpdateIntents", requestType = com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest, - com.google.longrunning.Operation> - getBatchUpdateIntentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest, - com.google.longrunning.Operation> - getBatchUpdateIntentsMethod; + public static io.grpc.MethodDescriptor getBatchUpdateIntentsMethod() { + io.grpc.MethodDescriptor getBatchUpdateIntentsMethod; if ((getBatchUpdateIntentsMethod = IntentsGrpc.getBatchUpdateIntentsMethod) == null) { synchronized (IntentsGrpc.class) { if ((getBatchUpdateIntentsMethod = IntentsGrpc.getBatchUpdateIntentsMethod) == null) { - IntentsGrpc.getBatchUpdateIntentsMethod = - getBatchUpdateIntentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchUpdateIntents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new IntentsMethodDescriptorSupplier("BatchUpdateIntents")) - .build(); + IntentsGrpc.getBatchUpdateIntentsMethod = getBatchUpdateIntentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchUpdateIntents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("BatchUpdateIntents")) + .build(); } } } return getBatchUpdateIntentsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest, - com.google.longrunning.Operation> - getBatchDeleteIntentsMethod; + private static volatile io.grpc.MethodDescriptor getBatchDeleteIntentsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchDeleteIntents", requestType = com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest, - com.google.longrunning.Operation> - getBatchDeleteIntentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest, - com.google.longrunning.Operation> - getBatchDeleteIntentsMethod; + public static io.grpc.MethodDescriptor getBatchDeleteIntentsMethod() { + io.grpc.MethodDescriptor getBatchDeleteIntentsMethod; if ((getBatchDeleteIntentsMethod = IntentsGrpc.getBatchDeleteIntentsMethod) == null) { synchronized (IntentsGrpc.class) { if ((getBatchDeleteIntentsMethod = IntentsGrpc.getBatchDeleteIntentsMethod) == null) { - IntentsGrpc.getBatchDeleteIntentsMethod = - getBatchDeleteIntentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDeleteIntents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new IntentsMethodDescriptorSupplier("BatchDeleteIntents")) - .build(); + IntentsGrpc.getBatchDeleteIntentsMethod = getBatchDeleteIntentsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDeleteIntents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new IntentsMethodDescriptorSupplier("BatchDeleteIntents")) + .build(); } } } return getBatchDeleteIntentsMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static IntentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IntentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IntentsStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IntentsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IntentsStub(channel, callOptions); + } + }; return IntentsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static IntentsBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static IntentsBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IntentsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IntentsBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IntentsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IntentsBlockingStub(channel, callOptions); + } + }; return IntentsBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static IntentsFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static IntentsFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IntentsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IntentsFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IntentsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IntentsFutureStub(channel, callOptions); + } + }; return IntentsFutureStub.newStub(factory, channel); } /** - * - * *
    * Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
    * 
*/ - public abstract static class IntentsImplBase implements io.grpc.BindableService { + public static abstract class IntentsImplBase implements io.grpc.BindableService { /** - * - * *
      * Returns the list of all intents in the specified agent.
      * 
*/ - public void listIntents( - com.google.cloud.dialogflow.v2.ListIntentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListIntentsMethod(), responseObserver); + public void listIntents(com.google.cloud.dialogflow.v2.ListIntentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListIntentsMethod(), responseObserver); } /** - * - * *
      * Retrieves the specified intent.
      * 
*/ - public void getIntent( - com.google.cloud.dialogflow.v2.GetIntentRequest request, + public void getIntent(com.google.cloud.dialogflow.v2.GetIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIntentMethod(), responseObserver); } /** - * - * *
      * Creates an intent in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -428,16 +313,12 @@ public void getIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void createIntent( - com.google.cloud.dialogflow.v2.CreateIntentRequest request, + public void createIntent(com.google.cloud.dialogflow.v2.CreateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateIntentMethod(), responseObserver); } /** - * - * *
      * Updates the specified intent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -445,16 +326,12 @@ public void createIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void updateIntent( - com.google.cloud.dialogflow.v2.UpdateIntentRequest request, + public void updateIntent(com.google.cloud.dialogflow.v2.UpdateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateIntentMethod(), responseObserver); } /** - * - * *
      * Deletes the specified intent and its direct or indirect followup intents.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -462,16 +339,12 @@ public void updateIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void deleteIntent( - com.google.cloud.dialogflow.v2.DeleteIntentRequest request, + public void deleteIntent(com.google.cloud.dialogflow.v2.DeleteIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteIntentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteIntentMethod(), responseObserver); } /** - * - * *
      * Updates/Creates multiple intents in the specified agent.
      * This method is a [long-running
@@ -485,16 +358,12 @@ public void deleteIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchUpdateIntents( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request, + public void batchUpdateIntents(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchUpdateIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchUpdateIntentsMethod(), responseObserver); } /** - * - * *
      * Deletes intents in the specified agent.
      * This method is a [long-running
@@ -509,114 +378,106 @@ public void batchUpdateIntents(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchDeleteIntents( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request, + public void batchDeleteIntents(com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteIntentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchDeleteIntentsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListIntentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.ListIntentsRequest, - com.google.cloud.dialogflow.v2.ListIntentsResponse>( - this, METHODID_LIST_INTENTS))) + getListIntentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListIntentsRequest, + com.google.cloud.dialogflow.v2.ListIntentsResponse>( + this, METHODID_LIST_INTENTS))) .addMethod( - getGetIntentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.GetIntentRequest, - com.google.cloud.dialogflow.v2.Intent>(this, METHODID_GET_INTENT))) + getGetIntentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetIntentRequest, + com.google.cloud.dialogflow.v2.Intent>( + this, METHODID_GET_INTENT))) .addMethod( - getCreateIntentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.CreateIntentRequest, - com.google.cloud.dialogflow.v2.Intent>(this, METHODID_CREATE_INTENT))) + getCreateIntentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateIntentRequest, + com.google.cloud.dialogflow.v2.Intent>( + this, METHODID_CREATE_INTENT))) .addMethod( - getUpdateIntentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.UpdateIntentRequest, - com.google.cloud.dialogflow.v2.Intent>(this, METHODID_UPDATE_INTENT))) + getUpdateIntentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateIntentRequest, + com.google.cloud.dialogflow.v2.Intent>( + this, METHODID_UPDATE_INTENT))) .addMethod( - getDeleteIntentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.DeleteIntentRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_INTENT))) + getDeleteIntentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteIntentRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_INTENT))) .addMethod( - getBatchUpdateIntentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_UPDATE_INTENTS))) + getBatchUpdateIntentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_UPDATE_INTENTS))) .addMethod( - getBatchDeleteIntentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_DELETE_INTENTS))) + getBatchDeleteIntentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_DELETE_INTENTS))) .build(); } } /** - * - * *
    * Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
    * 
*/ public static final class IntentsStub extends io.grpc.stub.AbstractAsyncStub { - private IntentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private IntentsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IntentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IntentsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IntentsStub(channel, callOptions); } /** - * - * *
      * Returns the list of all intents in the specified agent.
      * 
*/ - public void listIntents( - com.google.cloud.dialogflow.v2.ListIntentsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listIntents(com.google.cloud.dialogflow.v2.ListIntentsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListIntentsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListIntentsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Retrieves the specified intent.
      * 
*/ - public void getIntent( - com.google.cloud.dialogflow.v2.GetIntentRequest request, + public void getIntent(com.google.cloud.dialogflow.v2.GetIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIntentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates an intent in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -624,18 +485,13 @@ public void getIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void createIntent( - com.google.cloud.dialogflow.v2.CreateIntentRequest request, + public void createIntent(com.google.cloud.dialogflow.v2.CreateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateIntentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateIntentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates the specified intent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -643,18 +499,13 @@ public void createIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void updateIntent( - com.google.cloud.dialogflow.v2.UpdateIntentRequest request, + public void updateIntent(com.google.cloud.dialogflow.v2.UpdateIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateIntentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateIntentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes the specified intent and its direct or indirect followup intents.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -662,18 +513,13 @@ public void updateIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void deleteIntent( - com.google.cloud.dialogflow.v2.DeleteIntentRequest request, + public void deleteIntent(com.google.cloud.dialogflow.v2.DeleteIntentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates/Creates multiple intents in the specified agent.
      * This method is a [long-running
@@ -687,18 +533,13 @@ public void deleteIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchUpdateIntents( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request, + public void batchUpdateIntents(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateIntentsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchUpdateIntentsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes intents in the specified agent.
      * This method is a [long-running
@@ -713,63 +554,51 @@ public void batchUpdateIntents(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public void batchDeleteIntents( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request, + public void batchDeleteIntents(com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteIntentsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchDeleteIntentsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
    * 
*/ - public static final class IntentsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private IntentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IntentsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private IntentsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IntentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IntentsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IntentsBlockingStub(channel, callOptions); } /** - * - * *
      * Returns the list of all intents in the specified agent.
      * 
*/ - public com.google.cloud.dialogflow.v2.ListIntentsResponse listIntents( - com.google.cloud.dialogflow.v2.ListIntentsRequest request) { + public com.google.cloud.dialogflow.v2.ListIntentsResponse listIntents(com.google.cloud.dialogflow.v2.ListIntentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListIntentsMethod(), getCallOptions(), request); } /** - * - * *
      * Retrieves the specified intent.
      * 
*/ - public com.google.cloud.dialogflow.v2.Intent getIntent( - com.google.cloud.dialogflow.v2.GetIntentRequest request) { + public com.google.cloud.dialogflow.v2.Intent getIntent(com.google.cloud.dialogflow.v2.GetIntentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetIntentMethod(), getCallOptions(), request); } /** - * - * *
      * Creates an intent in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -777,15 +606,12 @@ public com.google.cloud.dialogflow.v2.Intent getIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.cloud.dialogflow.v2.Intent createIntent( - com.google.cloud.dialogflow.v2.CreateIntentRequest request) { + public com.google.cloud.dialogflow.v2.Intent createIntent(com.google.cloud.dialogflow.v2.CreateIntentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateIntentMethod(), getCallOptions(), request); } /** - * - * *
      * Updates the specified intent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -793,15 +619,12 @@ public com.google.cloud.dialogflow.v2.Intent createIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.cloud.dialogflow.v2.Intent updateIntent( - com.google.cloud.dialogflow.v2.UpdateIntentRequest request) { + public com.google.cloud.dialogflow.v2.Intent updateIntent(com.google.cloud.dialogflow.v2.UpdateIntentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateIntentMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes the specified intent and its direct or indirect followup intents.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -809,15 +632,12 @@ public com.google.cloud.dialogflow.v2.Intent updateIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.protobuf.Empty deleteIntent( - com.google.cloud.dialogflow.v2.DeleteIntentRequest request) { + public com.google.protobuf.Empty deleteIntent(com.google.cloud.dialogflow.v2.DeleteIntentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteIntentMethod(), getCallOptions(), request); } /** - * - * *
      * Updates/Creates multiple intents in the specified agent.
      * This method is a [long-running
@@ -831,15 +651,12 @@ public com.google.protobuf.Empty deleteIntent(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation batchUpdateIntents( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) { + public com.google.longrunning.Operation batchUpdateIntents(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateIntentsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes intents in the specified agent.
      * This method is a [long-running
@@ -854,61 +671,52 @@ public com.google.longrunning.Operation batchUpdateIntents(
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.longrunning.Operation batchDeleteIntents( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) { + public com.google.longrunning.Operation batchDeleteIntents(com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteIntentsMethod(), getCallOptions(), request); } } /** - * - * *
    * Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
    * 
*/ - public static final class IntentsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private IntentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class IntentsFutureStub extends io.grpc.stub.AbstractFutureStub { + private IntentsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected IntentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IntentsFutureStub(channel, callOptions); } /** - * - * *
      * Returns the list of all intents in the specified agent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.dialogflow.v2.ListIntentsResponse> - listIntents(com.google.cloud.dialogflow.v2.ListIntentsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listIntents( + com.google.cloud.dialogflow.v2.ListIntentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListIntentsMethod(), getCallOptions()), request); } /** - * - * *
      * Retrieves the specified intent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getIntent(com.google.cloud.dialogflow.v2.GetIntentRequest request) { + public com.google.common.util.concurrent.ListenableFuture getIntent( + com.google.cloud.dialogflow.v2.GetIntentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIntentMethod(), getCallOptions()), request); } /** - * - * *
      * Creates an intent in the specified agent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -916,15 +724,13 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createIntent(com.google.cloud.dialogflow.v2.CreateIntentRequest request) { + public com.google.common.util.concurrent.ListenableFuture createIntent( + com.google.cloud.dialogflow.v2.CreateIntentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateIntentMethod(), getCallOptions()), request); } /** - * - * *
      * Updates the specified intent.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -932,15 +738,13 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateIntent(com.google.cloud.dialogflow.v2.UpdateIntentRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateIntent( + com.google.cloud.dialogflow.v2.UpdateIntentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateIntentMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes the specified intent and its direct or indirect followup intents.
      * Note: You should always train an agent prior to sending it queries. See the
@@ -948,15 +752,13 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteIntent(com.google.cloud.dialogflow.v2.DeleteIntentRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteIntent( + com.google.cloud.dialogflow.v2.DeleteIntentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteIntentMethod(), getCallOptions()), request); } /** - * - * *
      * Updates/Creates multiple intents in the specified agent.
      * This method is a [long-running
@@ -970,15 +772,13 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchUpdateIntents(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchUpdateIntents( + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateIntentsMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes intents in the specified agent.
      * This method is a [long-running
@@ -993,8 +793,8 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
      * documentation](https://cloud.google.com/dialogflow/es/docs/training).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchDeleteIntents(com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchDeleteIntents( + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteIntentsMethod(), getCallOptions()), request); } @@ -1008,11 +808,11 @@ protected IntentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c private static final int METHODID_BATCH_UPDATE_INTENTS = 5; private static final int METHODID_BATCH_DELETE_INTENTS = 6; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final IntentsImplBase serviceImpl; private final int methodId; @@ -1026,42 +826,31 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_INTENTS: - serviceImpl.listIntents( - (com.google.cloud.dialogflow.v2.ListIntentsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listIntents((com.google.cloud.dialogflow.v2.ListIntentsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INTENT: - serviceImpl.getIntent( - (com.google.cloud.dialogflow.v2.GetIntentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getIntent((com.google.cloud.dialogflow.v2.GetIntentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_INTENT: - serviceImpl.createIntent( - (com.google.cloud.dialogflow.v2.CreateIntentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createIntent((com.google.cloud.dialogflow.v2.CreateIntentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INTENT: - serviceImpl.updateIntent( - (com.google.cloud.dialogflow.v2.UpdateIntentRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateIntent((com.google.cloud.dialogflow.v2.UpdateIntentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INTENT: - serviceImpl.deleteIntent( - (com.google.cloud.dialogflow.v2.DeleteIntentRequest) request, + serviceImpl.deleteIntent((com.google.cloud.dialogflow.v2.DeleteIntentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_UPDATE_INTENTS: - serviceImpl.batchUpdateIntents( - (com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) request, + serviceImpl.batchUpdateIntents((com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_DELETE_INTENTS: - serviceImpl.batchDeleteIntents( - (com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) request, + serviceImpl.batchDeleteIntents((com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1080,9 +869,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class IntentsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class IntentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { IntentsBaseDescriptorSupplier() {} @java.lang.Override @@ -1096,11 +884,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class IntentsFileDescriptorSupplier extends IntentsBaseDescriptorSupplier { + private static final class IntentsFileDescriptorSupplier + extends IntentsBaseDescriptorSupplier { IntentsFileDescriptorSupplier() {} } - private static final class IntentsMethodDescriptorSupplier extends IntentsBaseDescriptorSupplier + private static final class IntentsMethodDescriptorSupplier + extends IntentsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -1122,18 +912,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (IntentsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new IntentsFileDescriptorSupplier()) - .addMethod(getListIntentsMethod()) - .addMethod(getGetIntentMethod()) - .addMethod(getCreateIntentMethod()) - .addMethod(getUpdateIntentMethod()) - .addMethod(getDeleteIntentMethod()) - .addMethod(getBatchUpdateIntentsMethod()) - .addMethod(getBatchDeleteIntentsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IntentsFileDescriptorSupplier()) + .addMethod(getListIntentsMethod()) + .addMethod(getGetIntentMethod()) + .addMethod(getCreateIntentMethod()) + .addMethod(getUpdateIntentMethod()) + .addMethod(getDeleteIntentMethod()) + .addMethod(getBatchUpdateIntentsMethod()) + .addMethod(getBatchDeleteIntentsMethod()) + .build(); } } } diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java new file mode 100644 index 000000000..c093f02a3 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesGrpc.java @@ -0,0 +1,646 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/knowledge_base.proto") +public final class KnowledgeBasesGrpc { + + private KnowledgeBasesGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.KnowledgeBases"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListKnowledgeBasesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListKnowledgeBases", + requestType = com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListKnowledgeBasesMethod() { + io.grpc.MethodDescriptor getListKnowledgeBasesMethod; + if ((getListKnowledgeBasesMethod = KnowledgeBasesGrpc.getListKnowledgeBasesMethod) == null) { + synchronized (KnowledgeBasesGrpc.class) { + if ((getListKnowledgeBasesMethod = KnowledgeBasesGrpc.getListKnowledgeBasesMethod) == null) { + KnowledgeBasesGrpc.getListKnowledgeBasesMethod = getListKnowledgeBasesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListKnowledgeBases")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse.getDefaultInstance())) + .setSchemaDescriptor(new KnowledgeBasesMethodDescriptorSupplier("ListKnowledgeBases")) + .build(); + } + } + } + return getListKnowledgeBasesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetKnowledgeBaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetKnowledgeBase", + requestType = com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.class, + responseType = com.google.cloud.dialogflow.v2.KnowledgeBase.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetKnowledgeBaseMethod() { + io.grpc.MethodDescriptor getGetKnowledgeBaseMethod; + if ((getGetKnowledgeBaseMethod = KnowledgeBasesGrpc.getGetKnowledgeBaseMethod) == null) { + synchronized (KnowledgeBasesGrpc.class) { + if ((getGetKnowledgeBaseMethod = KnowledgeBasesGrpc.getGetKnowledgeBaseMethod) == null) { + KnowledgeBasesGrpc.getGetKnowledgeBaseMethod = getGetKnowledgeBaseMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetKnowledgeBase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance())) + .setSchemaDescriptor(new KnowledgeBasesMethodDescriptorSupplier("GetKnowledgeBase")) + .build(); + } + } + } + return getGetKnowledgeBaseMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateKnowledgeBaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateKnowledgeBase", + requestType = com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.class, + responseType = com.google.cloud.dialogflow.v2.KnowledgeBase.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateKnowledgeBaseMethod() { + io.grpc.MethodDescriptor getCreateKnowledgeBaseMethod; + if ((getCreateKnowledgeBaseMethod = KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod) == null) { + synchronized (KnowledgeBasesGrpc.class) { + if ((getCreateKnowledgeBaseMethod = KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod) == null) { + KnowledgeBasesGrpc.getCreateKnowledgeBaseMethod = getCreateKnowledgeBaseMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateKnowledgeBase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance())) + .setSchemaDescriptor(new KnowledgeBasesMethodDescriptorSupplier("CreateKnowledgeBase")) + .build(); + } + } + } + return getCreateKnowledgeBaseMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteKnowledgeBaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteKnowledgeBase", + requestType = com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteKnowledgeBaseMethod() { + io.grpc.MethodDescriptor getDeleteKnowledgeBaseMethod; + if ((getDeleteKnowledgeBaseMethod = KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod) == null) { + synchronized (KnowledgeBasesGrpc.class) { + if ((getDeleteKnowledgeBaseMethod = KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod) == null) { + KnowledgeBasesGrpc.getDeleteKnowledgeBaseMethod = getDeleteKnowledgeBaseMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteKnowledgeBase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new KnowledgeBasesMethodDescriptorSupplier("DeleteKnowledgeBase")) + .build(); + } + } + } + return getDeleteKnowledgeBaseMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateKnowledgeBaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateKnowledgeBase", + requestType = com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest.class, + responseType = com.google.cloud.dialogflow.v2.KnowledgeBase.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateKnowledgeBaseMethod() { + io.grpc.MethodDescriptor getUpdateKnowledgeBaseMethod; + if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) == null) { + synchronized (KnowledgeBasesGrpc.class) { + if ((getUpdateKnowledgeBaseMethod = KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod) == null) { + KnowledgeBasesGrpc.getUpdateKnowledgeBaseMethod = getUpdateKnowledgeBaseMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateKnowledgeBase")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance())) + .setSchemaDescriptor(new KnowledgeBasesMethodDescriptorSupplier("UpdateKnowledgeBase")) + .build(); + } + } + } + return getUpdateKnowledgeBaseMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static KnowledgeBasesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KnowledgeBasesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KnowledgeBasesStub(channel, callOptions); + } + }; + return KnowledgeBasesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static KnowledgeBasesBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KnowledgeBasesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KnowledgeBasesBlockingStub(channel, callOptions); + } + }; + return KnowledgeBasesBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static KnowledgeBasesFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KnowledgeBasesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KnowledgeBasesFutureStub(channel, callOptions); + } + }; + return KnowledgeBasesFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
+   * 
+ */ + public static abstract class KnowledgeBasesImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the list of all knowledge bases of the specified agent.
+     * 
+ */ + public void listKnowledgeBases(com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListKnowledgeBasesMethod(), responseObserver); + } + + /** + *
+     * Retrieves the specified knowledge base.
+     * 
+ */ + public void getKnowledgeBase(com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetKnowledgeBaseMethod(), responseObserver); + } + + /** + *
+     * Creates a knowledge base.
+     * 
+ */ + public void createKnowledgeBase(com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateKnowledgeBaseMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified knowledge base.
+     * 
+ */ + public void deleteKnowledgeBase(com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteKnowledgeBaseMethod(), responseObserver); + } + + /** + *
+     * Updates the specified knowledge base.
+     * 
+ */ + public void updateKnowledgeBase(com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateKnowledgeBaseMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListKnowledgeBasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest, + com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse>( + this, METHODID_LIST_KNOWLEDGE_BASES))) + .addMethod( + getGetKnowledgeBaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2.KnowledgeBase>( + this, METHODID_GET_KNOWLEDGE_BASE))) + .addMethod( + getCreateKnowledgeBaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2.KnowledgeBase>( + this, METHODID_CREATE_KNOWLEDGE_BASE))) + .addMethod( + getDeleteKnowledgeBaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_KNOWLEDGE_BASE))) + .addMethod( + getUpdateKnowledgeBaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest, + com.google.cloud.dialogflow.v2.KnowledgeBase>( + this, METHODID_UPDATE_KNOWLEDGE_BASE))) + .build(); + } + } + + /** + *
+   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
+   * 
+ */ + public static final class KnowledgeBasesStub extends io.grpc.stub.AbstractAsyncStub { + private KnowledgeBasesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KnowledgeBasesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KnowledgeBasesStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all knowledge bases of the specified agent.
+     * 
+ */ + public void listKnowledgeBases(com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the specified knowledge base.
+     * 
+ */ + public void getKnowledgeBase(com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a knowledge base.
+     * 
+ */ + public void createKnowledgeBase(com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified knowledge base.
+     * 
+ */ + public void deleteKnowledgeBase(com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified knowledge base.
+     * 
+ */ + public void updateKnowledgeBase(com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
+   * 
+ */ + public static final class KnowledgeBasesBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private KnowledgeBasesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KnowledgeBasesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KnowledgeBasesBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all knowledge bases of the specified agent.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListKnowledgeBasesResponse listKnowledgeBases(com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListKnowledgeBasesMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the specified knowledge base.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase(com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetKnowledgeBaseMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a knowledge base.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.KnowledgeBase createKnowledgeBase(com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateKnowledgeBaseMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified knowledge base.
+     * 
+ */ + public com.google.protobuf.Empty deleteKnowledgeBase(com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteKnowledgeBaseMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified knowledge base.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.KnowledgeBase updateKnowledgeBase(com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateKnowledgeBaseMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
+   * 
+ */ + public static final class KnowledgeBasesFutureStub extends io.grpc.stub.AbstractFutureStub { + private KnowledgeBasesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KnowledgeBasesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KnowledgeBasesFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all knowledge bases of the specified agent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listKnowledgeBases( + com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListKnowledgeBasesMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the specified knowledge base.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getKnowledgeBase( + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetKnowledgeBaseMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a knowledge base.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createKnowledgeBase( + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateKnowledgeBaseMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified knowledge base.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteKnowledgeBase( + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteKnowledgeBaseMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified knowledge base.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateKnowledgeBase( + com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateKnowledgeBaseMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_KNOWLEDGE_BASES = 0; + private static final int METHODID_GET_KNOWLEDGE_BASE = 1; + private static final int METHODID_CREATE_KNOWLEDGE_BASE = 2; + private static final int METHODID_DELETE_KNOWLEDGE_BASE = 3; + private static final int METHODID_UPDATE_KNOWLEDGE_BASE = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final KnowledgeBasesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(KnowledgeBasesImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_KNOWLEDGE_BASES: + serviceImpl.listKnowledgeBases((com.google.cloud.dialogflow.v2.ListKnowledgeBasesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_KNOWLEDGE_BASE: + serviceImpl.getKnowledgeBase((com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_KNOWLEDGE_BASE: + serviceImpl.createKnowledgeBase((com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_KNOWLEDGE_BASE: + serviceImpl.deleteKnowledgeBase((com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_KNOWLEDGE_BASE: + serviceImpl.updateKnowledgeBase((com.google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class KnowledgeBasesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + KnowledgeBasesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("KnowledgeBases"); + } + } + + private static final class KnowledgeBasesFileDescriptorSupplier + extends KnowledgeBasesBaseDescriptorSupplier { + KnowledgeBasesFileDescriptorSupplier() {} + } + + private static final class KnowledgeBasesMethodDescriptorSupplier + extends KnowledgeBasesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + KnowledgeBasesMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (KnowledgeBasesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KnowledgeBasesFileDescriptorSupplier()) + .addMethod(getListKnowledgeBasesMethod()) + .addMethod(getGetKnowledgeBaseMethod()) + .addMethod(getCreateKnowledgeBaseMethod()) + .addMethod(getDeleteKnowledgeBaseMethod()) + .addMethod(getUpdateKnowledgeBaseMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java new file mode 100644 index 000000000..03a3f383d --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsGrpc.java @@ -0,0 +1,842 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/participant.proto") +public final class ParticipantsGrpc { + + private ParticipantsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Participants"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateParticipantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateParticipant", + requestType = com.google.cloud.dialogflow.v2.CreateParticipantRequest.class, + responseType = com.google.cloud.dialogflow.v2.Participant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateParticipantMethod() { + io.grpc.MethodDescriptor getCreateParticipantMethod; + if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { + synchronized (ParticipantsGrpc.class) { + if ((getCreateParticipantMethod = ParticipantsGrpc.getCreateParticipantMethod) == null) { + ParticipantsGrpc.getCreateParticipantMethod = getCreateParticipantMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateParticipant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateParticipantRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) + .setSchemaDescriptor(new ParticipantsMethodDescriptorSupplier("CreateParticipant")) + .build(); + } + } + } + return getCreateParticipantMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetParticipantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetParticipant", + requestType = com.google.cloud.dialogflow.v2.GetParticipantRequest.class, + responseType = com.google.cloud.dialogflow.v2.Participant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetParticipantMethod() { + io.grpc.MethodDescriptor getGetParticipantMethod; + if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { + synchronized (ParticipantsGrpc.class) { + if ((getGetParticipantMethod = ParticipantsGrpc.getGetParticipantMethod) == null) { + ParticipantsGrpc.getGetParticipantMethod = getGetParticipantMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetParticipant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetParticipantRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) + .setSchemaDescriptor(new ParticipantsMethodDescriptorSupplier("GetParticipant")) + .build(); + } + } + } + return getGetParticipantMethod; + } + + private static volatile io.grpc.MethodDescriptor getListParticipantsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListParticipants", + requestType = com.google.cloud.dialogflow.v2.ListParticipantsRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListParticipantsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListParticipantsMethod() { + io.grpc.MethodDescriptor getListParticipantsMethod; + if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { + synchronized (ParticipantsGrpc.class) { + if ((getListParticipantsMethod = ParticipantsGrpc.getListParticipantsMethod) == null) { + ParticipantsGrpc.getListParticipantsMethod = getListParticipantsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListParticipants")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListParticipantsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListParticipantsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ParticipantsMethodDescriptorSupplier("ListParticipants")) + .build(); + } + } + } + return getListParticipantsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateParticipantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateParticipant", + requestType = com.google.cloud.dialogflow.v2.UpdateParticipantRequest.class, + responseType = com.google.cloud.dialogflow.v2.Participant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateParticipantMethod() { + io.grpc.MethodDescriptor getUpdateParticipantMethod; + if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { + synchronized (ParticipantsGrpc.class) { + if ((getUpdateParticipantMethod = ParticipantsGrpc.getUpdateParticipantMethod) == null) { + ParticipantsGrpc.getUpdateParticipantMethod = getUpdateParticipantMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParticipant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateParticipantRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Participant.getDefaultInstance())) + .setSchemaDescriptor(new ParticipantsMethodDescriptorSupplier("UpdateParticipant")) + .build(); + } + } + } + return getUpdateParticipantMethod; + } + + private static volatile io.grpc.MethodDescriptor getAnalyzeContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnalyzeContent", + requestType = com.google.cloud.dialogflow.v2.AnalyzeContentRequest.class, + responseType = com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAnalyzeContentMethod() { + io.grpc.MethodDescriptor getAnalyzeContentMethod; + if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { + synchronized (ParticipantsGrpc.class) { + if ((getAnalyzeContentMethod = ParticipantsGrpc.getAnalyzeContentMethod) == null) { + ParticipantsGrpc.getAnalyzeContentMethod = getAnalyzeContentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.AnalyzeContentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.AnalyzeContentResponse.getDefaultInstance())) + .setSchemaDescriptor(new ParticipantsMethodDescriptorSupplier("AnalyzeContent")) + .build(); + } + } + } + return getAnalyzeContentMethod; + } + + private static volatile io.grpc.MethodDescriptor getSuggestArticlesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SuggestArticles", + requestType = com.google.cloud.dialogflow.v2.SuggestArticlesRequest.class, + responseType = com.google.cloud.dialogflow.v2.SuggestArticlesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSuggestArticlesMethod() { + io.grpc.MethodDescriptor getSuggestArticlesMethod; + if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { + synchronized (ParticipantsGrpc.class) { + if ((getSuggestArticlesMethod = ParticipantsGrpc.getSuggestArticlesMethod) == null) { + ParticipantsGrpc.getSuggestArticlesMethod = getSuggestArticlesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestArticles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SuggestArticlesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SuggestArticlesResponse.getDefaultInstance())) + .setSchemaDescriptor(new ParticipantsMethodDescriptorSupplier("SuggestArticles")) + .build(); + } + } + } + return getSuggestArticlesMethod; + } + + private static volatile io.grpc.MethodDescriptor getSuggestFaqAnswersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SuggestFaqAnswers", + requestType = com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.class, + responseType = com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSuggestFaqAnswersMethod() { + io.grpc.MethodDescriptor getSuggestFaqAnswersMethod; + if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { + synchronized (ParticipantsGrpc.class) { + if ((getSuggestFaqAnswersMethod = ParticipantsGrpc.getSuggestFaqAnswersMethod) == null) { + ParticipantsGrpc.getSuggestFaqAnswersMethod = getSuggestFaqAnswersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestFaqAnswers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.getDefaultInstance())) + .setSchemaDescriptor(new ParticipantsMethodDescriptorSupplier("SuggestFaqAnswers")) + .build(); + } + } + } + return getSuggestFaqAnswersMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ParticipantsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ParticipantsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ParticipantsStub(channel, callOptions); + } + }; + return ParticipantsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ParticipantsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ParticipantsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ParticipantsBlockingStub(channel, callOptions); + } + }; + return ParticipantsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ParticipantsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ParticipantsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ParticipantsFutureStub(channel, callOptions); + } + }; + return ParticipantsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
+   * 
+ */ + public static abstract class ParticipantsImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new participant in a conversation.
+     * 
+ */ + public void createParticipant(com.google.cloud.dialogflow.v2.CreateParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateParticipantMethod(), responseObserver); + } + + /** + *
+     * Retrieves a conversation participant.
+     * 
+ */ + public void getParticipant(com.google.cloud.dialogflow.v2.GetParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetParticipantMethod(), responseObserver); + } + + /** + *
+     * Returns the list of all participants in the specified conversation.
+     * 
+ */ + public void listParticipants(com.google.cloud.dialogflow.v2.ListParticipantsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListParticipantsMethod(), responseObserver); + } + + /** + *
+     * Updates the specified participant.
+     * 
+ */ + public void updateParticipant(com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateParticipantMethod(), responseObserver); + } + + /** + *
+     * Adds a text (chat, for example), or audio (phone recording, for example)
+     * message from a participant into the conversation.
+     * Note: Always use agent versions for production traffic
+     * sent to virtual agents. See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public void analyzeContent(com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnalyzeContentMethod(), responseObserver); + } + + /** + *
+     * Gets suggested articles for a participant based on specific historical
+     * messages.
+     * 
+ */ + public void suggestArticles(com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSuggestArticlesMethod(), responseObserver); + } + + /** + *
+     * Gets suggested faq answers for a participant based on specific historical
+     * messages.
+     * 
+ */ + public void suggestFaqAnswers(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSuggestFaqAnswersMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateParticipantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateParticipantRequest, + com.google.cloud.dialogflow.v2.Participant>( + this, METHODID_CREATE_PARTICIPANT))) + .addMethod( + getGetParticipantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetParticipantRequest, + com.google.cloud.dialogflow.v2.Participant>( + this, METHODID_GET_PARTICIPANT))) + .addMethod( + getListParticipantsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListParticipantsRequest, + com.google.cloud.dialogflow.v2.ListParticipantsResponse>( + this, METHODID_LIST_PARTICIPANTS))) + .addMethod( + getUpdateParticipantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateParticipantRequest, + com.google.cloud.dialogflow.v2.Participant>( + this, METHODID_UPDATE_PARTICIPANT))) + .addMethod( + getAnalyzeContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.AnalyzeContentRequest, + com.google.cloud.dialogflow.v2.AnalyzeContentResponse>( + this, METHODID_ANALYZE_CONTENT))) + .addMethod( + getSuggestArticlesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.SuggestArticlesRequest, + com.google.cloud.dialogflow.v2.SuggestArticlesResponse>( + this, METHODID_SUGGEST_ARTICLES))) + .addMethod( + getSuggestFaqAnswersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest, + com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse>( + this, METHODID_SUGGEST_FAQ_ANSWERS))) + .build(); + } + } + + /** + *
+   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
+   * 
+ */ + public static final class ParticipantsStub extends io.grpc.stub.AbstractAsyncStub { + private ParticipantsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ParticipantsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ParticipantsStub(channel, callOptions); + } + + /** + *
+     * Creates a new participant in a conversation.
+     * 
+ */ + public void createParticipant(com.google.cloud.dialogflow.v2.CreateParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves a conversation participant.
+     * 
+ */ + public void getParticipant(com.google.cloud.dialogflow.v2.GetParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of all participants in the specified conversation.
+     * 
+ */ + public void listParticipants(com.google.cloud.dialogflow.v2.ListParticipantsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified participant.
+     * 
+ */ + public void updateParticipant(com.google.cloud.dialogflow.v2.UpdateParticipantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Adds a text (chat, for example), or audio (phone recording, for example)
+     * message from a participant into the conversation.
+     * Note: Always use agent versions for production traffic
+     * sent to virtual agents. See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public void analyzeContent(com.google.cloud.dialogflow.v2.AnalyzeContentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets suggested articles for a participant based on specific historical
+     * messages.
+     * 
+ */ + public void suggestArticles(com.google.cloud.dialogflow.v2.SuggestArticlesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets suggested faq answers for a participant based on specific historical
+     * messages.
+     * 
+ */ + public void suggestFaqAnswers(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
+   * 
+ */ + public static final class ParticipantsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ParticipantsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ParticipantsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ParticipantsBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new participant in a conversation.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Participant createParticipant(com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateParticipantMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves a conversation participant.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Participant getParticipant(com.google.cloud.dialogflow.v2.GetParticipantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetParticipantMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of all participants in the specified conversation.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListParticipantsResponse listParticipants(com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListParticipantsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified participant.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Participant updateParticipant(com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateParticipantMethod(), getCallOptions(), request); + } + + /** + *
+     * Adds a text (chat, for example), or audio (phone recording, for example)
+     * message from a participant into the conversation.
+     * Note: Always use agent versions for production traffic
+     * sent to virtual agents. See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public com.google.cloud.dialogflow.v2.AnalyzeContentResponse analyzeContent(com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeContentMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets suggested articles for a participant based on specific historical
+     * messages.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.SuggestArticlesResponse suggestArticles(com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSuggestArticlesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets suggested faq answers for a participant based on specific historical
+     * messages.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.SuggestFaqAnswersResponse suggestFaqAnswers(com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSuggestFaqAnswersMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
+   * 
+ */ + public static final class ParticipantsFutureStub extends io.grpc.stub.AbstractFutureStub { + private ParticipantsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ParticipantsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ParticipantsFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new participant in a conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createParticipant( + com.google.cloud.dialogflow.v2.CreateParticipantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateParticipantMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves a conversation participant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getParticipant( + com.google.cloud.dialogflow.v2.GetParticipantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetParticipantMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of all participants in the specified conversation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listParticipants( + com.google.cloud.dialogflow.v2.ListParticipantsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListParticipantsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified participant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateParticipant( + com.google.cloud.dialogflow.v2.UpdateParticipantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateParticipantMethod(), getCallOptions()), request); + } + + /** + *
+     * Adds a text (chat, for example), or audio (phone recording, for example)
+     * message from a participant into the conversation.
+     * Note: Always use agent versions for production traffic
+     * sent to virtual agents. See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture analyzeContent( + com.google.cloud.dialogflow.v2.AnalyzeContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnalyzeContentMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets suggested articles for a participant based on specific historical
+     * messages.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture suggestArticles( + com.google.cloud.dialogflow.v2.SuggestArticlesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSuggestArticlesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets suggested faq answers for a participant based on specific historical
+     * messages.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture suggestFaqAnswers( + com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSuggestFaqAnswersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PARTICIPANT = 0; + private static final int METHODID_GET_PARTICIPANT = 1; + private static final int METHODID_LIST_PARTICIPANTS = 2; + private static final int METHODID_UPDATE_PARTICIPANT = 3; + private static final int METHODID_ANALYZE_CONTENT = 4; + private static final int METHODID_SUGGEST_ARTICLES = 5; + private static final int METHODID_SUGGEST_FAQ_ANSWERS = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ParticipantsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ParticipantsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PARTICIPANT: + serviceImpl.createParticipant((com.google.cloud.dialogflow.v2.CreateParticipantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PARTICIPANT: + serviceImpl.getParticipant((com.google.cloud.dialogflow.v2.GetParticipantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PARTICIPANTS: + serviceImpl.listParticipants((com.google.cloud.dialogflow.v2.ListParticipantsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PARTICIPANT: + serviceImpl.updateParticipant((com.google.cloud.dialogflow.v2.UpdateParticipantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ANALYZE_CONTENT: + serviceImpl.analyzeContent((com.google.cloud.dialogflow.v2.AnalyzeContentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUGGEST_ARTICLES: + serviceImpl.suggestArticles((com.google.cloud.dialogflow.v2.SuggestArticlesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUGGEST_FAQ_ANSWERS: + serviceImpl.suggestFaqAnswers((com.google.cloud.dialogflow.v2.SuggestFaqAnswersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ParticipantsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ParticipantsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Participants"); + } + } + + private static final class ParticipantsFileDescriptorSupplier + extends ParticipantsBaseDescriptorSupplier { + ParticipantsFileDescriptorSupplier() {} + } + + private static final class ParticipantsMethodDescriptorSupplier + extends ParticipantsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ParticipantsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ParticipantsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ParticipantsFileDescriptorSupplier()) + .addMethod(getCreateParticipantMethod()) + .addMethod(getGetParticipantMethod()) + .addMethod(getListParticipantsMethod()) + .addMethod(getUpdateParticipantMethod()) + .addMethod(getAnalyzeContentMethod()) + .addMethod(getSuggestArticlesMethod()) + .addMethod(getSuggestFaqAnswersMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java new file mode 100644 index 000000000..9719ebd54 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesGrpc.java @@ -0,0 +1,714 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/session_entity_type.proto") +public final class SessionEntityTypesGrpc { + + private SessionEntityTypesGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.SessionEntityTypes"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListSessionEntityTypesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSessionEntityTypes", + requestType = com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSessionEntityTypesMethod() { + io.grpc.MethodDescriptor getListSessionEntityTypesMethod; + if ((getListSessionEntityTypesMethod = SessionEntityTypesGrpc.getListSessionEntityTypesMethod) == null) { + synchronized (SessionEntityTypesGrpc.class) { + if ((getListSessionEntityTypesMethod = SessionEntityTypesGrpc.getListSessionEntityTypesMethod) == null) { + SessionEntityTypesGrpc.getListSessionEntityTypesMethod = getListSessionEntityTypesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSessionEntityTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SessionEntityTypesMethodDescriptorSupplier("ListSessionEntityTypes")) + .build(); + } + } + } + return getListSessionEntityTypesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSessionEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSessionEntityType", + requestType = com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.class, + responseType = com.google.cloud.dialogflow.v2.SessionEntityType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSessionEntityTypeMethod() { + io.grpc.MethodDescriptor getGetSessionEntityTypeMethod; + if ((getGetSessionEntityTypeMethod = SessionEntityTypesGrpc.getGetSessionEntityTypeMethod) == null) { + synchronized (SessionEntityTypesGrpc.class) { + if ((getGetSessionEntityTypeMethod = SessionEntityTypesGrpc.getGetSessionEntityTypeMethod) == null) { + SessionEntityTypesGrpc.getGetSessionEntityTypeMethod = getGetSessionEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSessionEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance())) + .setSchemaDescriptor(new SessionEntityTypesMethodDescriptorSupplier("GetSessionEntityType")) + .build(); + } + } + } + return getGetSessionEntityTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSessionEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSessionEntityType", + requestType = com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.class, + responseType = com.google.cloud.dialogflow.v2.SessionEntityType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSessionEntityTypeMethod() { + io.grpc.MethodDescriptor getCreateSessionEntityTypeMethod; + if ((getCreateSessionEntityTypeMethod = SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod) == null) { + synchronized (SessionEntityTypesGrpc.class) { + if ((getCreateSessionEntityTypeMethod = SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod) == null) { + SessionEntityTypesGrpc.getCreateSessionEntityTypeMethod = getCreateSessionEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSessionEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance())) + .setSchemaDescriptor(new SessionEntityTypesMethodDescriptorSupplier("CreateSessionEntityType")) + .build(); + } + } + } + return getCreateSessionEntityTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSessionEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSessionEntityType", + requestType = com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest.class, + responseType = com.google.cloud.dialogflow.v2.SessionEntityType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSessionEntityTypeMethod() { + io.grpc.MethodDescriptor getUpdateSessionEntityTypeMethod; + if ((getUpdateSessionEntityTypeMethod = SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod) == null) { + synchronized (SessionEntityTypesGrpc.class) { + if ((getUpdateSessionEntityTypeMethod = SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod) == null) { + SessionEntityTypesGrpc.getUpdateSessionEntityTypeMethod = getUpdateSessionEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSessionEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance())) + .setSchemaDescriptor(new SessionEntityTypesMethodDescriptorSupplier("UpdateSessionEntityType")) + .build(); + } + } + } + return getUpdateSessionEntityTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSessionEntityTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSessionEntityType", + requestType = com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSessionEntityTypeMethod() { + io.grpc.MethodDescriptor getDeleteSessionEntityTypeMethod; + if ((getDeleteSessionEntityTypeMethod = SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod) == null) { + synchronized (SessionEntityTypesGrpc.class) { + if ((getDeleteSessionEntityTypeMethod = SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod) == null) { + SessionEntityTypesGrpc.getDeleteSessionEntityTypeMethod = getDeleteSessionEntityTypeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSessionEntityType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SessionEntityTypesMethodDescriptorSupplier("DeleteSessionEntityType")) + .build(); + } + } + } + return getDeleteSessionEntityTypeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SessionEntityTypesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionEntityTypesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionEntityTypesStub(channel, callOptions); + } + }; + return SessionEntityTypesStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SessionEntityTypesBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionEntityTypesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionEntityTypesBlockingStub(channel, callOptions); + } + }; + return SessionEntityTypesBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SessionEntityTypesFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionEntityTypesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionEntityTypesFutureStub(channel, callOptions); + } + }; + return SessionEntityTypesFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
+   * 
+ */ + public static abstract class SessionEntityTypesImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the list of all session entity types in the specified session.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void listSessionEntityTypes(com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSessionEntityTypesMethod(), responseObserver); + } + + /** + *
+     * Retrieves the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void getSessionEntityType(com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSessionEntityTypeMethod(), responseObserver); + } + + /** + *
+     * Creates a session entity type.
+     * If the specified session entity type already exists, overrides the session
+     * entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void createSessionEntityType(com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSessionEntityTypeMethod(), responseObserver); + } + + /** + *
+     * Updates the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void updateSessionEntityType(com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSessionEntityTypeMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void deleteSessionEntityType(com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSessionEntityTypeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListSessionEntityTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest, + com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse>( + this, METHODID_LIST_SESSION_ENTITY_TYPES))) + .addMethod( + getGetSessionEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest, + com.google.cloud.dialogflow.v2.SessionEntityType>( + this, METHODID_GET_SESSION_ENTITY_TYPE))) + .addMethod( + getCreateSessionEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest, + com.google.cloud.dialogflow.v2.SessionEntityType>( + this, METHODID_CREATE_SESSION_ENTITY_TYPE))) + .addMethod( + getUpdateSessionEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest, + com.google.cloud.dialogflow.v2.SessionEntityType>( + this, METHODID_UPDATE_SESSION_ENTITY_TYPE))) + .addMethod( + getDeleteSessionEntityTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SESSION_ENTITY_TYPE))) + .build(); + } + } + + /** + *
+   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
+   * 
+ */ + public static final class SessionEntityTypesStub extends io.grpc.stub.AbstractAsyncStub { + private SessionEntityTypesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionEntityTypesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionEntityTypesStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all session entity types in the specified session.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void listSessionEntityTypes(com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void getSessionEntityType(com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a session entity type.
+     * If the specified session entity type already exists, overrides the session
+     * entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void createSessionEntityType(com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void updateSessionEntityType(com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public void deleteSessionEntityType(com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
+   * 
+ */ + public static final class SessionEntityTypesBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SessionEntityTypesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionEntityTypesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionEntityTypesBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all session entity types in the specified session.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse listSessionEntityTypes(com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSessionEntityTypesMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType(com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSessionEntityTypeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a session entity type.
+     * If the specified session entity type already exists, overrides the session
+     * entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.SessionEntityType createSessionEntityType(com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSessionEntityTypeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.SessionEntityType updateSessionEntityType(com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSessionEntityTypeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.protobuf.Empty deleteSessionEntityType(com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSessionEntityTypeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
+   * 
+ */ + public static final class SessionEntityTypesFutureStub extends io.grpc.stub.AbstractFutureStub { + private SessionEntityTypesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionEntityTypesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionEntityTypesFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all session entity types in the specified session.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSessionEntityTypes( + com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSessionEntityTypesMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSessionEntityType( + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSessionEntityTypeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a session entity type.
+     * If the specified session entity type already exists, overrides the session
+     * entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSessionEntityType( + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSessionEntityTypeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSessionEntityType( + com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSessionEntityTypeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified session entity type.
+     * This method doesn't work with Google Assistant integration.
+     * Contact Dialogflow support if you need to use session entities
+     * with Google Assistant integration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSessionEntityType( + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSessionEntityTypeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_SESSION_ENTITY_TYPES = 0; + private static final int METHODID_GET_SESSION_ENTITY_TYPE = 1; + private static final int METHODID_CREATE_SESSION_ENTITY_TYPE = 2; + private static final int METHODID_UPDATE_SESSION_ENTITY_TYPE = 3; + private static final int METHODID_DELETE_SESSION_ENTITY_TYPE = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SessionEntityTypesImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SessionEntityTypesImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_SESSION_ENTITY_TYPES: + serviceImpl.listSessionEntityTypes((com.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SESSION_ENTITY_TYPE: + serviceImpl.getSessionEntityType((com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SESSION_ENTITY_TYPE: + serviceImpl.createSessionEntityType((com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SESSION_ENTITY_TYPE: + serviceImpl.updateSessionEntityType((com.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SESSION_ENTITY_TYPE: + serviceImpl.deleteSessionEntityType((com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SessionEntityTypesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SessionEntityTypesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SessionEntityTypes"); + } + } + + private static final class SessionEntityTypesFileDescriptorSupplier + extends SessionEntityTypesBaseDescriptorSupplier { + SessionEntityTypesFileDescriptorSupplier() {} + } + + private static final class SessionEntityTypesMethodDescriptorSupplier + extends SessionEntityTypesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SessionEntityTypesMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SessionEntityTypesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SessionEntityTypesFileDescriptorSupplier()) + .addMethod(getListSessionEntityTypesMethod()) + .addMethod(getGetSessionEntityTypeMethod()) + .addMethod(getCreateSessionEntityTypeMethod()) + .addMethod(getUpdateSessionEntityTypeMethod()) + .addMethod(getDeleteSessionEntityTypeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java new file mode 100644 index 000000000..4f15e7195 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java @@ -0,0 +1,446 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * A service used for session interactions.
+ * For more information, see the [API interactions
+ * guide](https://cloud.google.com/dialogflow/docs/api-overview).
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/session.proto") +public final class SessionsGrpc { + + private SessionsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Sessions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getDetectIntentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetectIntent", + requestType = com.google.cloud.dialogflow.v2.DetectIntentRequest.class, + responseType = com.google.cloud.dialogflow.v2.DetectIntentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDetectIntentMethod() { + io.grpc.MethodDescriptor getDetectIntentMethod; + if ((getDetectIntentMethod = SessionsGrpc.getDetectIntentMethod) == null) { + synchronized (SessionsGrpc.class) { + if ((getDetectIntentMethod = SessionsGrpc.getDetectIntentMethod) == null) { + SessionsGrpc.getDetectIntentMethod = getDetectIntentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetectIntent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DetectIntentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance())) + .setSchemaDescriptor(new SessionsMethodDescriptorSupplier("DetectIntent")) + .build(); + } + } + } + return getDetectIntentMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamingDetectIntentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingDetectIntent", + requestType = com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest.class, + responseType = com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getStreamingDetectIntentMethod() { + io.grpc.MethodDescriptor getStreamingDetectIntentMethod; + if ((getStreamingDetectIntentMethod = SessionsGrpc.getStreamingDetectIntentMethod) == null) { + synchronized (SessionsGrpc.class) { + if ((getStreamingDetectIntentMethod = SessionsGrpc.getStreamingDetectIntentMethod) == null) { + SessionsGrpc.getStreamingDetectIntentMethod = getStreamingDetectIntentMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingDetectIntent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse.getDefaultInstance())) + .setSchemaDescriptor(new SessionsMethodDescriptorSupplier("StreamingDetectIntent")) + .build(); + } + } + } + return getStreamingDetectIntentMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SessionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionsStub(channel, callOptions); + } + }; + return SessionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SessionsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionsBlockingStub(channel, callOptions); + } + }; + return SessionsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SessionsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SessionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionsFutureStub(channel, callOptions); + } + }; + return SessionsFutureStub.newStub(factory, channel); + } + + /** + *
+   * A service used for session interactions.
+   * For more information, see the [API interactions
+   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
+   * 
+ */ + public static abstract class SessionsImplBase implements io.grpc.BindableService { + + /** + *
+     * Processes a natural language query and returns structured, actionable data
+     * as a result. This method is not idempotent, because it may cause contexts
+     * and session entity types to be updated, which in turn might affect
+     * results of future queries.
+     * If you might use
+     * [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
+     * or other CCAI products now or in the future, consider using
+     * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
+     * instead of `DetectIntent`. `AnalyzeContent` has additional
+     * functionality for Agent Assist and other CCAI products.
+     * Note: Always use agent versions for production traffic.
+     * See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public void detectIntent(com.google.cloud.dialogflow.v2.DetectIntentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetectIntentMethod(), responseObserver); + } + + /** + *
+     * Processes a natural language query in audio format in a streaming fashion
+     * and returns structured, actionable data as a result. This method is only
+     * available via the gRPC API (not REST).
+     * If you might use
+     * [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
+     * or other CCAI products now or in the future, consider using
+     * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
+     * instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
+     * additional functionality for Agent Assist and other CCAI products.
+     * Note: Always use agent versions for production traffic.
+     * See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingDetectIntent( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingDetectIntentMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getDetectIntentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DetectIntentRequest, + com.google.cloud.dialogflow.v2.DetectIntentResponse>( + this, METHODID_DETECT_INTENT))) + .addMethod( + getStreamingDetectIntentMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.StreamingDetectIntentRequest, + com.google.cloud.dialogflow.v2.StreamingDetectIntentResponse>( + this, METHODID_STREAMING_DETECT_INTENT))) + .build(); + } + } + + /** + *
+   * A service used for session interactions.
+   * For more information, see the [API interactions
+   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
+   * 
+ */ + public static final class SessionsStub extends io.grpc.stub.AbstractAsyncStub { + private SessionsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionsStub(channel, callOptions); + } + + /** + *
+     * Processes a natural language query and returns structured, actionable data
+     * as a result. This method is not idempotent, because it may cause contexts
+     * and session entity types to be updated, which in turn might affect
+     * results of future queries.
+     * If you might use
+     * [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
+     * or other CCAI products now or in the future, consider using
+     * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
+     * instead of `DetectIntent`. `AnalyzeContent` has additional
+     * functionality for Agent Assist and other CCAI products.
+     * Note: Always use agent versions for production traffic.
+     * See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public void detectIntent(com.google.cloud.dialogflow.v2.DetectIntentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Processes a natural language query in audio format in a streaming fashion
+     * and returns structured, actionable data as a result. This method is only
+     * available via the gRPC API (not REST).
+     * If you might use
+     * [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
+     * or other CCAI products now or in the future, consider using
+     * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
+     * instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
+     * additional functionality for Agent Assist and other CCAI products.
+     * Note: Always use agent versions for production traffic.
+     * See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingDetectIntent( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingDetectIntentMethod(), getCallOptions()), responseObserver); + } + } + + /** + *
+   * A service used for session interactions.
+   * For more information, see the [API interactions
+   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
+   * 
+ */ + public static final class SessionsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SessionsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionsBlockingStub(channel, callOptions); + } + + /** + *
+     * Processes a natural language query and returns structured, actionable data
+     * as a result. This method is not idempotent, because it may cause contexts
+     * and session entity types to be updated, which in turn might affect
+     * results of future queries.
+     * If you might use
+     * [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
+     * or other CCAI products now or in the future, consider using
+     * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
+     * instead of `DetectIntent`. `AnalyzeContent` has additional
+     * functionality for Agent Assist and other CCAI products.
+     * Note: Always use agent versions for production traffic.
+     * See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public com.google.cloud.dialogflow.v2.DetectIntentResponse detectIntent(com.google.cloud.dialogflow.v2.DetectIntentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetectIntentMethod(), getCallOptions(), request); + } + } + + /** + *
+   * A service used for session interactions.
+   * For more information, see the [API interactions
+   * guide](https://cloud.google.com/dialogflow/docs/api-overview).
+   * 
+ */ + public static final class SessionsFutureStub extends io.grpc.stub.AbstractFutureStub { + private SessionsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SessionsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SessionsFutureStub(channel, callOptions); + } + + /** + *
+     * Processes a natural language query and returns structured, actionable data
+     * as a result. This method is not idempotent, because it may cause contexts
+     * and session entity types to be updated, which in turn might affect
+     * results of future queries.
+     * If you might use
+     * [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
+     * or other CCAI products now or in the future, consider using
+     * [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
+     * instead of `DetectIntent`. `AnalyzeContent` has additional
+     * functionality for Agent Assist and other CCAI products.
+     * Note: Always use agent versions for production traffic.
+     * See [Versions and
+     * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture detectIntent( + com.google.cloud.dialogflow.v2.DetectIntentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDetectIntentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_DETECT_INTENT = 0; + private static final int METHODID_STREAMING_DETECT_INTENT = 1; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SessionsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SessionsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_DETECT_INTENT: + serviceImpl.detectIntent((com.google.cloud.dialogflow.v2.DetectIntentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_DETECT_INTENT: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingDetectIntent( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class SessionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SessionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.SessionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Sessions"); + } + } + + private static final class SessionsFileDescriptorSupplier + extends SessionsBaseDescriptorSupplier { + SessionsFileDescriptorSupplier() {} + } + + private static final class SessionsMethodDescriptorSupplier + extends SessionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SessionsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SessionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SessionsFileDescriptorSupplier()) + .addMethod(getDetectIntentMethod()) + .addMethod(getStreamingDetectIntentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java new file mode 100644 index 000000000..2208df2d2 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/VersionsGrpc.java @@ -0,0 +1,662 @@ +package com.google.cloud.dialogflow.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dialogflow/v2/version.proto") +public final class VersionsGrpc { + + private VersionsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dialogflow.v2.Versions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVersions", + requestType = com.google.cloud.dialogflow.v2.ListVersionsRequest.class, + responseType = com.google.cloud.dialogflow.v2.ListVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVersionsMethod() { + io.grpc.MethodDescriptor getListVersionsMethod; + if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { + synchronized (VersionsGrpc.class) { + if ((getListVersionsMethod = VersionsGrpc.getListVersionsMethod) == null) { + VersionsGrpc.getListVersionsMethod = getListVersionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListVersionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.ListVersionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("ListVersions")) + .build(); + } + } + } + return getListVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVersion", + requestType = com.google.cloud.dialogflow.v2.GetVersionRequest.class, + responseType = com.google.cloud.dialogflow.v2.Version.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetVersionMethod() { + io.grpc.MethodDescriptor getGetVersionMethod; + if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { + synchronized (VersionsGrpc.class) { + if ((getGetVersionMethod = VersionsGrpc.getGetVersionMethod) == null) { + VersionsGrpc.getGetVersionMethod = getGetVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.GetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Version.getDefaultInstance())) + .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("GetVersion")) + .build(); + } + } + } + return getGetVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVersion", + requestType = com.google.cloud.dialogflow.v2.CreateVersionRequest.class, + responseType = com.google.cloud.dialogflow.v2.Version.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateVersionMethod() { + io.grpc.MethodDescriptor getCreateVersionMethod; + if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { + synchronized (VersionsGrpc.class) { + if ((getCreateVersionMethod = VersionsGrpc.getCreateVersionMethod) == null) { + VersionsGrpc.getCreateVersionMethod = getCreateVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.CreateVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Version.getDefaultInstance())) + .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("CreateVersion")) + .build(); + } + } + } + return getCreateVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVersion", + requestType = com.google.cloud.dialogflow.v2.UpdateVersionRequest.class, + responseType = com.google.cloud.dialogflow.v2.Version.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateVersionMethod() { + io.grpc.MethodDescriptor getUpdateVersionMethod; + if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { + synchronized (VersionsGrpc.class) { + if ((getUpdateVersionMethod = VersionsGrpc.getUpdateVersionMethod) == null) { + VersionsGrpc.getUpdateVersionMethod = getUpdateVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.UpdateVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.Version.getDefaultInstance())) + .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("UpdateVersion")) + .build(); + } + } + } + return getUpdateVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVersion", + requestType = com.google.cloud.dialogflow.v2.DeleteVersionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteVersionMethod() { + io.grpc.MethodDescriptor getDeleteVersionMethod; + if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { + synchronized (VersionsGrpc.class) { + if ((getDeleteVersionMethod = VersionsGrpc.getDeleteVersionMethod) == null) { + VersionsGrpc.getDeleteVersionMethod = getDeleteVersionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.v2.DeleteVersionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new VersionsMethodDescriptorSupplier("DeleteVersion")) + .build(); + } + } + } + return getDeleteVersionMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static VersionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VersionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VersionsStub(channel, callOptions); + } + }; + return VersionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VersionsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VersionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VersionsBlockingStub(channel, callOptions); + } + }; + return VersionsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static VersionsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VersionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VersionsFutureStub(channel, callOptions); + } + }; + return VersionsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
+   * 
+ */ + public static abstract class VersionsImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the list of all versions of the specified agent.
+     * 
+ */ + public void listVersions(com.google.cloud.dialogflow.v2.ListVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVersionsMethod(), responseObserver); + } + + /** + *
+     * Retrieves the specified agent version.
+     * 
+ */ + public void getVersion(com.google.cloud.dialogflow.v2.GetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVersionMethod(), responseObserver); + } + + /** + *
+     * Creates an agent version.
+     * The new version points to the agent instance in the "default" environment.
+     * 
+ */ + public void createVersion(com.google.cloud.dialogflow.v2.CreateVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateVersionMethod(), responseObserver); + } + + /** + *
+     * Updates the specified agent version.
+     * Note that this method does not allow you to update the state of the agent
+     * the given version points to. It allows you to update only mutable
+     * properties of the version resource.
+     * 
+ */ + public void updateVersion(com.google.cloud.dialogflow.v2.UpdateVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateVersionMethod(), responseObserver); + } + + /** + *
+     * Delete the specified agent version.
+     * 
+ */ + public void deleteVersion(com.google.cloud.dialogflow.v2.DeleteVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteVersionMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.ListVersionsRequest, + com.google.cloud.dialogflow.v2.ListVersionsResponse>( + this, METHODID_LIST_VERSIONS))) + .addMethod( + getGetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.GetVersionRequest, + com.google.cloud.dialogflow.v2.Version>( + this, METHODID_GET_VERSION))) + .addMethod( + getCreateVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.CreateVersionRequest, + com.google.cloud.dialogflow.v2.Version>( + this, METHODID_CREATE_VERSION))) + .addMethod( + getUpdateVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.UpdateVersionRequest, + com.google.cloud.dialogflow.v2.Version>( + this, METHODID_UPDATE_VERSION))) + .addMethod( + getDeleteVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.v2.DeleteVersionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_VERSION))) + .build(); + } + } + + /** + *
+   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
+   * 
+ */ + public static final class VersionsStub extends io.grpc.stub.AbstractAsyncStub { + private VersionsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VersionsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VersionsStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all versions of the specified agent.
+     * 
+ */ + public void listVersions(com.google.cloud.dialogflow.v2.ListVersionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVersionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the specified agent version.
+     * 
+ */ + public void getVersion(com.google.cloud.dialogflow.v2.GetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an agent version.
+     * The new version points to the agent instance in the "default" environment.
+     * 
+ */ + public void createVersion(com.google.cloud.dialogflow.v2.CreateVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified agent version.
+     * Note that this method does not allow you to update the state of the agent
+     * the given version points to. It allows you to update only mutable
+     * properties of the version resource.
+     * 
+ */ + public void updateVersion(com.google.cloud.dialogflow.v2.UpdateVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete the specified agent version.
+     * 
+ */ + public void deleteVersion(com.google.cloud.dialogflow.v2.DeleteVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
+   * 
+ */ + public static final class VersionsBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private VersionsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VersionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VersionsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all versions of the specified agent.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.ListVersionsResponse listVersions(com.google.cloud.dialogflow.v2.ListVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVersionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the specified agent version.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Version getVersion(com.google.cloud.dialogflow.v2.GetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an agent version.
+     * The new version points to the agent instance in the "default" environment.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Version createVersion(com.google.cloud.dialogflow.v2.CreateVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified agent version.
+     * Note that this method does not allow you to update the state of the agent
+     * the given version points to. It allows you to update only mutable
+     * properties of the version resource.
+     * 
+ */ + public com.google.cloud.dialogflow.v2.Version updateVersion(com.google.cloud.dialogflow.v2.UpdateVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVersionMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete the specified agent version.
+     * 
+ */ + public com.google.protobuf.Empty deleteVersion(com.google.cloud.dialogflow.v2.DeleteVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVersionMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for managing [Versions][google.cloud.dialogflow.v2.Version].
+   * 
+ */ + public static final class VersionsFutureStub extends io.grpc.stub.AbstractFutureStub { + private VersionsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VersionsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VersionsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the list of all versions of the specified agent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVersions( + com.google.cloud.dialogflow.v2.ListVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVersionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the specified agent version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getVersion( + com.google.cloud.dialogflow.v2.GetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an agent version.
+     * The new version points to the agent instance in the "default" environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createVersion( + com.google.cloud.dialogflow.v2.CreateVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified agent version.
+     * Note that this method does not allow you to update the state of the agent
+     * the given version points to. It allows you to update only mutable
+     * properties of the version resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateVersion( + com.google.cloud.dialogflow.v2.UpdateVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVersionMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete the specified agent version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteVersion( + com.google.cloud.dialogflow.v2.DeleteVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteVersionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VERSIONS = 0; + private static final int METHODID_GET_VERSION = 1; + private static final int METHODID_CREATE_VERSION = 2; + private static final int METHODID_UPDATE_VERSION = 3; + private static final int METHODID_DELETE_VERSION = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final VersionsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VersionsImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_VERSIONS: + serviceImpl.listVersions((com.google.cloud.dialogflow.v2.ListVersionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_VERSION: + serviceImpl.getVersion((com.google.cloud.dialogflow.v2.GetVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_VERSION: + serviceImpl.createVersion((com.google.cloud.dialogflow.v2.CreateVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VERSION: + serviceImpl.updateVersion((com.google.cloud.dialogflow.v2.UpdateVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_VERSION: + serviceImpl.deleteVersion((com.google.cloud.dialogflow.v2.DeleteVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class VersionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VersionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dialogflow.v2.VersionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Versions"); + } + } + + private static final class VersionsFileDescriptorSupplier + extends VersionsBaseDescriptorSupplier { + VersionsFileDescriptorSupplier() {} + } + + private static final class VersionsMethodDescriptorSupplier + extends VersionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VersionsMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (VersionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VersionsFileDescriptorSupplier()) + .addMethod(getListVersionsMethod()) + .addMethod(getGetVersionMethod()) + .addMethod(getCreateVersionMethod()) + .addMethod(getUpdateVersionMethod()) + .addMethod(getDeleteVersionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java similarity index 73% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java index 68341e1fc..566acf4ec 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * A Dialogflow agent is a virtual agent that handles conversations with your
  * end-users. It is a natural language understanding module that understands the
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.Agent}
  */
-public final class Agent extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Agent extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Agent)
     AgentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Agent.newBuilder() to construct.
   private Agent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Agent() {
     parent_ = "";
     displayName_ = "";
@@ -59,15 +41,16 @@ private Agent() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Agent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Agent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -87,102 +70,93 @@ private Agent(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              defaultLanguageCode_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              supportedLanguageCodes_.add(s);
-              break;
+            defaultLanguageCode_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            supportedLanguageCodes_.add(s);
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              timeZone_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            timeZone_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              avatarUri_ = s;
-              break;
-            }
-          case 64:
-            {
-              enableLogging_ = input.readBool();
-              break;
-            }
-          case 72:
-            {
-              int rawValue = input.readEnum();
+            avatarUri_ = s;
+            break;
+          }
+          case 64: {
 
-              matchMode_ = rawValue;
-              break;
-            }
-          case 85:
-            {
-              classificationThreshold_ = input.readFloat();
-              break;
-            }
-          case 112:
-            {
-              int rawValue = input.readEnum();
+            enableLogging_ = input.readBool();
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
 
-              apiVersion_ = rawValue;
-              break;
-            }
-          case 120:
-            {
-              int rawValue = input.readEnum();
+            matchMode_ = rawValue;
+            break;
+          }
+          case 85: {
 
-              tier_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            classificationThreshold_ = input.readFloat();
+            break;
+          }
+          case 112: {
+            int rawValue = input.readEnum();
+
+            apiVersion_ = rawValue;
+            break;
+          }
+          case 120: {
+            int rawValue = input.readEnum();
+
+            tier_ = 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView();
@@ -191,35 +165,29 @@ private Agent(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.AgentProto
-        .internal_static_google_cloud_dialogflow_v2_Agent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_Agent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.AgentProto
-        .internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.Agent.class,
-            com.google.cloud.dialogflow.v2.Agent.Builder.class);
+            com.google.cloud.dialogflow.v2.Agent.class, com.google.cloud.dialogflow.v2.Agent.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Match mode determines how intents are detected from user queries.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Agent.MatchMode} */ - public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum { + public enum MatchMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -228,8 +196,6 @@ public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum { */ MATCH_MODE_UNSPECIFIED(0), /** - * - * *
      * Best for agents with a small number of examples in intents and/or wide
      * use of templates syntax and composite entities.
@@ -239,8 +205,6 @@ public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     MATCH_MODE_HYBRID(1),
     /**
-     *
-     *
      * 
      * Can be used for agents with a large number of examples in intents,
      * especially the ones using @sys.any or very large custom entities.
@@ -253,8 +217,6 @@ public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -263,8 +225,6 @@ public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MATCH_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Best for agents with a small number of examples in intents and/or wide
      * use of templates syntax and composite entities.
@@ -274,8 +234,6 @@ public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MATCH_MODE_HYBRID_VALUE = 1;
     /**
-     *
-     *
      * 
      * Can be used for agents with a large number of examples in intents,
      * especially the ones using @sys.any or very large custom entities.
@@ -285,6 +243,7 @@ public enum MatchMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MATCH_MODE_ML_ONLY_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -309,49 +268,49 @@ public static MatchMode valueOf(int value) {
      */
     public static MatchMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return MATCH_MODE_UNSPECIFIED;
-        case 1:
-          return MATCH_MODE_HYBRID;
-        case 2:
-          return MATCH_MODE_ML_ONLY;
-        default:
-          return null;
+        case 0: return MATCH_MODE_UNSPECIFIED;
+        case 1: return MATCH_MODE_HYBRID;
+        case 2: return MATCH_MODE_ML_ONLY;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        MatchMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public MatchMode findValueByNumber(int number) {
+              return MatchMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public MatchMode findValueByNumber(int number) {
-            return MatchMode.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.dialogflow.v2.Agent.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final MatchMode[] VALUES = values();
 
-    public static MatchMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static MatchMode valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -369,18 +328,15 @@ private MatchMode(int value) {
   }
 
   /**
-   *
-   *
    * 
    * API version for the agent.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Agent.ApiVersion} */ - public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { + public enum ApiVersion + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified.
      * 
@@ -389,8 +345,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ API_VERSION_UNSPECIFIED(0), /** - * - * *
      * Legacy V1 API.
      * 
@@ -399,8 +353,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ API_VERSION_V1(1), /** - * - * *
      * V2 API.
      * 
@@ -409,8 +361,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ API_VERSION_V2(2), /** - * - * *
      * V2beta1 API.
      * 
@@ -422,8 +372,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified.
      * 
@@ -432,8 +380,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int API_VERSION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Legacy V1 API.
      * 
@@ -442,8 +388,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int API_VERSION_V1_VALUE = 1; /** - * - * *
      * V2 API.
      * 
@@ -452,8 +396,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int API_VERSION_V2_VALUE = 2; /** - * - * *
      * V2beta1 API.
      * 
@@ -462,6 +404,7 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int API_VERSION_V2_BETA_1_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -486,51 +429,50 @@ public static ApiVersion valueOf(int value) { */ public static ApiVersion forNumber(int value) { switch (value) { - case 0: - return API_VERSION_UNSPECIFIED; - case 1: - return API_VERSION_V1; - case 2: - return API_VERSION_V2; - case 3: - return API_VERSION_V2_BETA_1; - default: - return null; + case 0: return API_VERSION_UNSPECIFIED; + case 1: return API_VERSION_V1; + case 2: return API_VERSION_V2; + case 3: return API_VERSION_V2_BETA_1; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ApiVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ApiVersion findValueByNumber(int number) { + return ApiVersion.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApiVersion findValueByNumber(int number) { - return ApiVersion.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.dialogflow.v2.Agent.getDescriptor().getEnumTypes().get(1); } private static final ApiVersion[] VALUES = values(); - public static ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ApiVersion valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -548,18 +490,15 @@ private ApiVersion(int value) { } /** - * - * *
    * Represents the agent tier.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Agent.Tier} */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified. This value should never be used.
      * 
@@ -568,8 +507,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_UNSPECIFIED(0), /** - * - * *
      * Standard tier.
      * 
@@ -578,8 +515,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_STANDARD(1), /** - * - * *
      * Enterprise tier (Essentials).
      * 
@@ -588,8 +523,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ TIER_ENTERPRISE(2), /** - * - * *
      * Enterprise tier (Plus).
      * 
@@ -601,8 +534,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified. This value should never be used.
      * 
@@ -611,8 +542,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Standard tier.
      * 
@@ -621,8 +550,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_STANDARD_VALUE = 1; /** - * - * *
      * Enterprise tier (Essentials).
      * 
@@ -631,8 +558,6 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_ENTERPRISE_VALUE = 2; /** - * - * *
      * Enterprise tier (Plus).
      * 
@@ -641,6 +566,7 @@ public enum Tier implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIER_ENTERPRISE_PLUS_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -665,51 +591,50 @@ public static Tier valueOf(int value) { */ public static Tier forNumber(int value) { switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return TIER_STANDARD; - case 2: - return TIER_ENTERPRISE; - case 3: - return TIER_ENTERPRISE_PLUS; - default: - return null; + case 0: return TIER_UNSPECIFIED; + case 1: return TIER_STANDARD; + case 2: return TIER_ENTERPRISE; + case 3: return TIER_ENTERPRISE_PLUS; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.dialogflow.v2.Agent.getDescriptor().getEnumTypes().get(2); } private static final Tier[] VALUES = values(); - public static Tier valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tier valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -729,17 +654,12 @@ private Tier(int value) { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project of this agent.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -748,32 +668,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project of this agent.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -784,14 +702,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The name of this agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -800,29 +715,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The name of this agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -833,8 +748,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object defaultLanguageCode_; /** - * - * *
    * Required. The default language of the agent as a language tag. See
    * [Language
@@ -844,7 +757,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The defaultLanguageCode. */ @java.lang.Override @@ -853,15 +765,14 @@ public java.lang.String getDefaultLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultLanguageCode_ = s; return s; } } /** - * - * *
    * Required. The default language of the agent as a language tag. See
    * [Language
@@ -871,15 +782,16 @@ public java.lang.String getDefaultLanguageCode() {
    * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for defaultLanguageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDefaultLanguageCodeBytes() { java.lang.Object ref = defaultLanguageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultLanguageCode_ = b; return b; } else { @@ -890,48 +802,37 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList supportedLanguageCodes_; /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the supportedLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getSupportedLanguageCodesList() { return supportedLanguageCodes_; } /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of supportedLanguageCodes. */ public int getSupportedLanguageCodesCount() { return supportedLanguageCodes_.size(); } /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The supportedLanguageCodes at the given index. */ @@ -939,28 +840,23 @@ public java.lang.String getSupportedLanguageCodes(int index) { return supportedLanguageCodes_.get(index); } /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the supportedLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getSupportedLanguageCodesBytes(int index) { return supportedLanguageCodes_.getByteString(index); } public static final int TIME_ZONE_FIELD_NUMBER = 5; private volatile java.lang.Object timeZone_; /** - * - * *
    * Required. The time zone of this agent from the
    * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -968,7 +864,6 @@ public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index)
    * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The timeZone. */ @java.lang.Override @@ -977,15 +872,14 @@ public java.lang.String getTimeZone() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeZone_ = s; return s; } } /** - * - * *
    * Required. The time zone of this agent from the
    * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -993,15 +887,16 @@ public java.lang.String getTimeZone() {
    * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for timeZone. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeZoneBytes() { + public com.google.protobuf.ByteString + getTimeZoneBytes() { java.lang.Object ref = timeZone_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); timeZone_ = b; return b; } else { @@ -1012,15 +907,12 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * Optional. The description of this agent.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -1029,30 +921,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. The description of this agent.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1063,8 +955,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int AVATAR_URI_FIELD_NUMBER = 7; private volatile java.lang.Object avatarUri_; /** - * - * *
    * Optional. The URI of the agent's avatar.
    * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -1074,7 +964,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The avatarUri. */ @java.lang.Override @@ -1083,15 +972,14 @@ public java.lang.String getAvatarUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avatarUri_ = s; return s; } } /** - * - * *
    * Optional. The URI of the agent's avatar.
    * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -1101,15 +989,16 @@ public java.lang.String getAvatarUri() {
    * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for avatarUri. */ @java.lang.Override - public com.google.protobuf.ByteString getAvatarUriBytes() { + public com.google.protobuf.ByteString + getAvatarUriBytes() { java.lang.Object ref = avatarUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); avatarUri_ = b; return b; } else { @@ -1120,14 +1009,11 @@ public com.google.protobuf.ByteString getAvatarUriBytes() { public static final int ENABLE_LOGGING_FIELD_NUMBER = 8; private boolean enableLogging_; /** - * - * *
    * Optional. Determines whether this agent should log conversation queries.
    * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableLogging. */ @java.lang.Override @@ -1138,50 +1024,33 @@ public boolean getEnableLogging() { public static final int MATCH_MODE_FIELD_NUMBER = 9; private int matchMode_; /** - * - * *
    * Optional. Determines how intents are detected from user queries.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for matchMode. */ - @java.lang.Override - @java.lang.Deprecated - public int getMatchModeValue() { + @java.lang.Override @java.lang.Deprecated public int getMatchModeValue() { return matchMode_; } /** - * - * *
    * Optional. Determines how intents are detected from user queries.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The matchMode. */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() { + @java.lang.Override @java.lang.Deprecated public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Agent.MatchMode result = - com.google.cloud.dialogflow.v2.Agent.MatchMode.valueOf(matchMode_); + com.google.cloud.dialogflow.v2.Agent.MatchMode result = com.google.cloud.dialogflow.v2.Agent.MatchMode.valueOf(matchMode_); return result == null ? com.google.cloud.dialogflow.v2.Agent.MatchMode.UNRECOGNIZED : result; } public static final int CLASSIFICATION_THRESHOLD_FIELD_NUMBER = 10; private float classificationThreshold_; /** - * - * *
    * Optional. To filter out false positive results and still get variety in
    * matched natural language inputs for your agent, you can tune the machine
@@ -1193,7 +1062,6 @@ public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() {
    * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The classificationThreshold. */ @java.lang.Override @@ -1204,8 +1072,6 @@ public float getClassificationThreshold() { public static final int API_VERSION_FIELD_NUMBER = 14; private int apiVersion_; /** - * - * *
    * Optional. API version displayed in Dialogflow console. If not specified,
    * V2 API is assumed. Clients are free to query different service endpoints
@@ -1213,19 +1079,13 @@ public float getClassificationThreshold() {
    * follow the specified API version.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override - public int getApiVersionValue() { + @java.lang.Override public int getApiVersionValue() { return apiVersion_; } /** - * - * *
    * Optional. API version displayed in Dialogflow console. If not specified,
    * V2 API is assumed. Clients are free to query different service endpoints
@@ -1233,62 +1093,43 @@ public int getApiVersionValue() {
    * follow the specified API version.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The apiVersion. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.Agent.ApiVersion getApiVersion() { + @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Agent.ApiVersion result = - com.google.cloud.dialogflow.v2.Agent.ApiVersion.valueOf(apiVersion_); + com.google.cloud.dialogflow.v2.Agent.ApiVersion result = com.google.cloud.dialogflow.v2.Agent.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.dialogflow.v2.Agent.ApiVersion.UNRECOGNIZED : result; } public static final int TIER_FIELD_NUMBER = 15; private int tier_; /** - * - * *
    * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
    * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The tier. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.Agent.Tier getTier() { + @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Agent.Tier result = - com.google.cloud.dialogflow.v2.Agent.Tier.valueOf(tier_); + com.google.cloud.dialogflow.v2.Agent.Tier result = com.google.cloud.dialogflow.v2.Agent.Tier.valueOf(tier_); return result == null ? com.google.cloud.dialogflow.v2.Agent.Tier.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1300,7 +1141,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1311,8 +1153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultLanguageCode_); } for (int i = 0; i < supportedLanguageCodes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, supportedLanguageCodes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, supportedLanguageCodes_.getRaw(i)); } if (!getTimeZoneBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timeZone_); @@ -1326,15 +1167,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableLogging_ != false) { output.writeBool(8, enableLogging_); } - if (matchMode_ - != com.google.cloud.dialogflow.v2.Agent.MatchMode.MATCH_MODE_UNSPECIFIED.getNumber()) { + if (matchMode_ != com.google.cloud.dialogflow.v2.Agent.MatchMode.MATCH_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(9, matchMode_); } if (classificationThreshold_ != 0F) { output.writeFloat(10, classificationThreshold_); } - if (apiVersion_ - != com.google.cloud.dialogflow.v2.Agent.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + if (apiVersion_ != com.google.cloud.dialogflow.v2.Agent.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(14, apiVersion_); } if (tier_ != com.google.cloud.dialogflow.v2.Agent.Tier.TIER_UNSPECIFIED.getNumber()) { @@ -1376,21 +1215,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, avatarUri_); } if (enableLogging_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableLogging_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, enableLogging_); } - if (matchMode_ - != com.google.cloud.dialogflow.v2.Agent.MatchMode.MATCH_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, matchMode_); + if (matchMode_ != com.google.cloud.dialogflow.v2.Agent.MatchMode.MATCH_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, matchMode_); } if (classificationThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(10, classificationThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(10, classificationThreshold_); } - if (apiVersion_ - != com.google.cloud.dialogflow.v2.Agent.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, apiVersion_); + if (apiVersion_ != com.google.cloud.dialogflow.v2.Agent.ApiVersion.API_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(14, apiVersion_); } if (tier_ != com.google.cloud.dialogflow.v2.Agent.Tier.TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, tier_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, tier_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1400,25 +1242,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Agent)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.Agent other = (com.google.cloud.dialogflow.v2.Agent) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; - if (!getSupportedLanguageCodesList().equals(other.getSupportedLanguageCodesList())) - return false; - if (!getTimeZone().equals(other.getTimeZone())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getAvatarUri().equals(other.getAvatarUri())) return false; - if (getEnableLogging() != other.getEnableLogging()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDefaultLanguageCode() + .equals(other.getDefaultLanguageCode())) return false; + if (!getSupportedLanguageCodesList() + .equals(other.getSupportedLanguageCodesList())) return false; + if (!getTimeZone() + .equals(other.getTimeZone())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getAvatarUri() + .equals(other.getAvatarUri())) return false; + if (getEnableLogging() + != other.getEnableLogging()) return false; if (matchMode_ != other.matchMode_) return false; if (java.lang.Float.floatToIntBits(getClassificationThreshold()) - != java.lang.Float.floatToIntBits(other.getClassificationThreshold())) return false; + != java.lang.Float.floatToIntBits( + other.getClassificationThreshold())) return false; if (apiVersion_ != other.apiVersion_) return false; if (tier_ != other.tier_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1449,11 +1299,13 @@ public int hashCode() { hash = (37 * hash) + AVATAR_URI_FIELD_NUMBER; hash = (53 * hash) + getAvatarUri().hashCode(); hash = (37 * hash) + ENABLE_LOGGING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLogging()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableLogging()); hash = (37 * hash) + MATCH_MODE_FIELD_NUMBER; hash = (53 * hash) + matchMode_; hash = (37 * hash) + CLASSIFICATION_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getClassificationThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getClassificationThreshold()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + apiVersion_; hash = (37 * hash) + TIER_FIELD_NUMBER; @@ -1463,103 +1315,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.Agent parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.Agent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Agent parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.dialogflow.v2.Agent parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Agent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Agent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Agent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.Agent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Dialogflow agent is a virtual agent that handles conversations with your
    * end-users. It is a natural language understanding module that understands the
@@ -1573,23 +1419,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Agent}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Agent)
       com.google.cloud.dialogflow.v2.AgentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.AgentProto
-          .internal_static_google_cloud_dialogflow_v2_Agent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_Agent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.AgentProto
-          .internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Agent.class,
-              com.google.cloud.dialogflow.v2.Agent.Builder.class);
+              com.google.cloud.dialogflow.v2.Agent.class, com.google.cloud.dialogflow.v2.Agent.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.Agent.newBuilder()
@@ -1597,15 +1441,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1637,9 +1482,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.AgentProto
-          .internal_static_google_cloud_dialogflow_v2_Agent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_Agent_descriptor;
     }
 
     @java.lang.Override
@@ -1684,39 +1529,38 @@ public com.google.cloud.dialogflow.v2.Agent buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.Agent) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.Agent) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.Agent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1802,28 +1646,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The project of this agent.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1832,24 +1671,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project of this agent.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1857,70 +1693,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project of this agent.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project of this agent.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project of this agent.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1928,20 +1751,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The name of this agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1950,21 +1771,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The name of this agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1972,61 +1792,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The name of this agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of this agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The name of this agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2034,8 +1847,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object defaultLanguageCode_ = ""; /** - * - * *
      * Required. The default language of the agent as a language tag. See
      * [Language
@@ -2045,13 +1856,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The defaultLanguageCode. */ public java.lang.String getDefaultLanguageCode() { java.lang.Object ref = defaultLanguageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultLanguageCode_ = s; return s; @@ -2060,8 +1871,6 @@ public java.lang.String getDefaultLanguageCode() { } } /** - * - * *
      * Required. The default language of the agent as a language tag. See
      * [Language
@@ -2071,14 +1880,15 @@ public java.lang.String getDefaultLanguageCode() {
      * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for defaultLanguageCode. */ - public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + public com.google.protobuf.ByteString + getDefaultLanguageCodeBytes() { java.lang.Object ref = defaultLanguageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultLanguageCode_ = b; return b; } else { @@ -2086,8 +1896,6 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { } } /** - * - * *
      * Required. The default language of the agent as a language tag. See
      * [Language
@@ -2097,22 +1905,20 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
      * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The defaultLanguageCode to set. * @return This builder for chaining. */ - public Builder setDefaultLanguageCode(java.lang.String value) { + public Builder setDefaultLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + defaultLanguageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The default language of the agent as a language tag. See
      * [Language
@@ -2122,18 +1928,15 @@ public Builder setDefaultLanguageCode(java.lang.String value) {
      * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDefaultLanguageCode() { - + defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The default language of the agent as a language tag. See
      * [Language
@@ -2143,74 +1946,60 @@ public Builder clearDefaultLanguageCode() {
      * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for defaultLanguageCode to set. * @return This builder for chaining. */ - public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setDefaultLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList supportedLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - supportedLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_); + supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the supportedLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getSupportedLanguageCodesList() { return supportedLanguageCodes_.getUnmodifiableView(); } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of supportedLanguageCodes. */ public int getSupportedLanguageCodesCount() { return supportedLanguageCodes_.size(); } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The supportedLanguageCodes at the given index. */ @@ -2218,100 +2007,85 @@ public java.lang.String getSupportedLanguageCodes(int index) { return supportedLanguageCodes_.get(index); } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the supportedLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getSupportedLanguageCodesBytes(int index) { return supportedLanguageCodes_.getByteString(index); } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The supportedLanguageCodes to set. * @return This builder for chaining. */ - public Builder setSupportedLanguageCodes(int index, java.lang.String value) { + public Builder setSupportedLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSupportedLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The supportedLanguageCodes to add. * @return This builder for chaining. */ - public Builder addSupportedLanguageCodes(java.lang.String value) { + public Builder addSupportedLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSupportedLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param values The supportedLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllSupportedLanguageCodes(java.lang.Iterable values) { + public Builder addAllSupportedLanguageCodes( + java.lang.Iterable values) { ensureSupportedLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, supportedLanguageCodes_); onChanged(); return this; } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSupportedLanguageCodes() { @@ -2321,24 +2095,21 @@ public Builder clearSupportedLanguageCodes() { return this; } /** - * - * *
      * Optional. The list of all languages supported by this agent (except for the
      * `default_language_code`).
      * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the supportedLanguageCodes to add. * @return This builder for chaining. */ - public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addSupportedLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.add(value); onChanged(); @@ -2347,8 +2118,6 @@ public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString val private java.lang.Object timeZone_ = ""; /** - * - * *
      * Required. The time zone of this agent from the
      * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -2356,13 +2125,13 @@ public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString val
      * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The timeZone. */ public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeZone_ = s; return s; @@ -2371,8 +2140,6 @@ public java.lang.String getTimeZone() { } } /** - * - * *
      * Required. The time zone of this agent from the
      * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -2380,14 +2147,15 @@ public java.lang.String getTimeZone() {
      * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for timeZone. */ - public com.google.protobuf.ByteString getTimeZoneBytes() { + public com.google.protobuf.ByteString + getTimeZoneBytes() { java.lang.Object ref = timeZone_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); timeZone_ = b; return b; } else { @@ -2395,8 +2163,6 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } } /** - * - * *
      * Required. The time zone of this agent from the
      * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -2404,22 +2170,20 @@ public com.google.protobuf.ByteString getTimeZoneBytes() {
      * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The timeZone to set. * @return This builder for chaining. */ - public Builder setTimeZone(java.lang.String value) { + public Builder setTimeZone( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + timeZone_ = value; onChanged(); return this; } /** - * - * *
      * Required. The time zone of this agent from the
      * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -2427,18 +2191,15 @@ public Builder setTimeZone(java.lang.String value) {
      * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTimeZone() { - + timeZone_ = getDefaultInstance().getTimeZone(); onChanged(); return this; } /** - * - * *
      * Required. The time zone of this agent from the
      * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -2446,16 +2207,16 @@ public Builder clearTimeZone() {
      * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for timeZone to set. * @return This builder for chaining. */ - public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + public Builder setTimeZoneBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; onChanged(); return this; @@ -2463,21 +2224,19 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. The description of this agent.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2486,22 +2245,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. The description of this agent.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2509,64 +2267,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. The description of this agent.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The description of this agent.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. The description of this agent.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2574,8 +2325,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object avatarUri_ = ""; /** - * - * *
      * Optional. The URI of the agent's avatar.
      * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -2585,13 +2334,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The avatarUri. */ public java.lang.String getAvatarUri() { java.lang.Object ref = avatarUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); avatarUri_ = s; return s; @@ -2600,8 +2349,6 @@ public java.lang.String getAvatarUri() { } } /** - * - * *
      * Optional. The URI of the agent's avatar.
      * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -2611,14 +2358,15 @@ public java.lang.String getAvatarUri() {
      * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for avatarUri. */ - public com.google.protobuf.ByteString getAvatarUriBytes() { + public com.google.protobuf.ByteString + getAvatarUriBytes() { java.lang.Object ref = avatarUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); avatarUri_ = b; return b; } else { @@ -2626,8 +2374,6 @@ public com.google.protobuf.ByteString getAvatarUriBytes() { } } /** - * - * *
      * Optional. The URI of the agent's avatar.
      * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -2637,22 +2383,20 @@ public com.google.protobuf.ByteString getAvatarUriBytes() {
      * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The avatarUri to set. * @return This builder for chaining. */ - public Builder setAvatarUri(java.lang.String value) { + public Builder setAvatarUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + avatarUri_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The URI of the agent's avatar.
      * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -2662,18 +2406,15 @@ public Builder setAvatarUri(java.lang.String value) {
      * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAvatarUri() { - + avatarUri_ = getDefaultInstance().getAvatarUri(); onChanged(); return this; } /** - * - * *
      * Optional. The URI of the agent's avatar.
      * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -2683,31 +2424,28 @@ public Builder clearAvatarUri() {
      * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for avatarUri to set. * @return This builder for chaining. */ - public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) { + public Builder setAvatarUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + avatarUri_ = value; onChanged(); return this; } - private boolean enableLogging_; + private boolean enableLogging_ ; /** - * - * *
      * Optional. Determines whether this agent should log conversation queries.
      * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableLogging. */ @java.lang.Override @@ -2715,36 +2453,30 @@ public boolean getEnableLogging() { return enableLogging_; } /** - * - * *
      * Optional. Determines whether this agent should log conversation queries.
      * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableLogging to set. * @return This builder for chaining. */ public Builder setEnableLogging(boolean value) { - + enableLogging_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Determines whether this agent should log conversation queries.
      * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableLogging() { - + enableLogging_ = false; onChanged(); return this; @@ -2752,114 +2484,80 @@ public Builder clearEnableLogging() { private int matchMode_ = 0; /** - * - * *
      * Optional. Determines how intents are detected from user queries.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for matchMode. */ - @java.lang.Override - @java.lang.Deprecated - public int getMatchModeValue() { + @java.lang.Override @java.lang.Deprecated public int getMatchModeValue() { return matchMode_; } /** - * - * *
      * Optional. Determines how intents are detected from user queries.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for matchMode to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setMatchModeValue(int value) { - + @java.lang.Deprecated public Builder setMatchModeValue(int value) { + matchMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Determines how intents are detected from user queries.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The matchMode. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() { + @java.lang.Deprecated public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Agent.MatchMode result = - com.google.cloud.dialogflow.v2.Agent.MatchMode.valueOf(matchMode_); + com.google.cloud.dialogflow.v2.Agent.MatchMode result = com.google.cloud.dialogflow.v2.Agent.MatchMode.valueOf(matchMode_); return result == null ? com.google.cloud.dialogflow.v2.Agent.MatchMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Determines how intents are detected from user queries.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param value The matchMode to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setMatchMode(com.google.cloud.dialogflow.v2.Agent.MatchMode value) { + @java.lang.Deprecated public Builder setMatchMode(com.google.cloud.dialogflow.v2.Agent.MatchMode value) { if (value == null) { throw new NullPointerException(); } - + matchMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Determines how intents are detected from user queries.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearMatchMode() { - + @java.lang.Deprecated public Builder clearMatchMode() { + matchMode_ = 0; onChanged(); return this; } - private float classificationThreshold_; + private float classificationThreshold_ ; /** - * - * *
      * Optional. To filter out false positive results and still get variety in
      * matched natural language inputs for your agent, you can tune the machine
@@ -2871,7 +2569,6 @@ public Builder clearMatchMode() {
      * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The classificationThreshold. */ @java.lang.Override @@ -2879,8 +2576,6 @@ public float getClassificationThreshold() { return classificationThreshold_; } /** - * - * *
      * Optional. To filter out false positive results and still get variety in
      * matched natural language inputs for your agent, you can tune the machine
@@ -2892,19 +2587,16 @@ public float getClassificationThreshold() {
      * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The classificationThreshold to set. * @return This builder for chaining. */ public Builder setClassificationThreshold(float value) { - + classificationThreshold_ = value; onChanged(); return this; } /** - * - * *
      * Optional. To filter out false positive results and still get variety in
      * matched natural language inputs for your agent, you can tune the machine
@@ -2916,11 +2608,10 @@ public Builder setClassificationThreshold(float value) {
      * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearClassificationThreshold() { - + classificationThreshold_ = 0F; onChanged(); return this; @@ -2928,8 +2619,6 @@ public Builder clearClassificationThreshold() { private int apiVersion_ = 0; /** - * - * *
      * Optional. API version displayed in Dialogflow console. If not specified,
      * V2 API is assumed. Clients are free to query different service endpoints
@@ -2937,19 +2626,13 @@ public Builder clearClassificationThreshold() {
      * follow the specified API version.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for apiVersion. */ - @java.lang.Override - public int getApiVersionValue() { + @java.lang.Override public int getApiVersionValue() { return apiVersion_; } /** - * - * *
      * Optional. API version displayed in Dialogflow console. If not specified,
      * V2 API is assumed. Clients are free to query different service endpoints
@@ -2957,22 +2640,17 @@ public int getApiVersionValue() {
      * follow the specified API version.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for apiVersion to set. * @return This builder for chaining. */ public Builder setApiVersionValue(int value) { - + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. API version displayed in Dialogflow console. If not specified,
      * V2 API is assumed. Clients are free to query different service endpoints
@@ -2980,22 +2658,16 @@ public Builder setApiVersionValue(int value) {
      * follow the specified API version.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The apiVersion. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.ApiVersion getApiVersion() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Agent.ApiVersion result = - com.google.cloud.dialogflow.v2.Agent.ApiVersion.valueOf(apiVersion_); + com.google.cloud.dialogflow.v2.Agent.ApiVersion result = com.google.cloud.dialogflow.v2.Agent.ApiVersion.valueOf(apiVersion_); return result == null ? com.google.cloud.dialogflow.v2.Agent.ApiVersion.UNRECOGNIZED : result; } /** - * - * *
      * Optional. API version displayed in Dialogflow console. If not specified,
      * V2 API is assumed. Clients are free to query different service endpoints
@@ -3003,10 +2675,7 @@ public com.google.cloud.dialogflow.v2.Agent.ApiVersion getApiVersion() {
      * follow the specified API version.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param value The apiVersion to set. * @return This builder for chaining. */ @@ -3014,14 +2683,12 @@ public Builder setApiVersion(com.google.cloud.dialogflow.v2.Agent.ApiVersion val if (value == null) { throw new NullPointerException(); } - + apiVersion_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. API version displayed in Dialogflow console. If not specified,
      * V2 API is assumed. Clients are free to query different service endpoints
@@ -3029,14 +2696,11 @@ public Builder setApiVersion(com.google.cloud.dialogflow.v2.Agent.ApiVersion val
      * follow the specified API version.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = 0; onChanged(); return this; @@ -3044,73 +2708,51 @@ public Builder clearApiVersion() { private int tier_ = 0; /** - * - * *
      * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for tier. */ - @java.lang.Override - public int getTierValue() { + @java.lang.Override public int getTierValue() { return tier_; } /** - * - * *
      * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for tier to set. * @return This builder for chaining. */ public Builder setTierValue(int value) { - + tier_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The tier. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Agent.Tier getTier() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Agent.Tier result = - com.google.cloud.dialogflow.v2.Agent.Tier.valueOf(tier_); + com.google.cloud.dialogflow.v2.Agent.Tier result = com.google.cloud.dialogflow.v2.Agent.Tier.valueOf(tier_); return result == null ? com.google.cloud.dialogflow.v2.Agent.Tier.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param value The tier to set. * @return This builder for chaining. */ @@ -3118,33 +2760,28 @@ public Builder setTier(com.google.cloud.dialogflow.v2.Agent.Tier value) { if (value == null) { throw new NullPointerException(); } - + tier_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
      * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearTier() { - + tier_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3154,12 +2791,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Agent) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Agent) private static final com.google.cloud.dialogflow.v2.Agent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Agent(); } @@ -3168,16 +2805,16 @@ public static com.google.cloud.dialogflow.v2.Agent getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Agent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Agent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Agent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Agent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3192,4 +2829,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Agent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java index 5b796f46c..7fb4c4e43 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/answer_record.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Detail feedback of Agent Assist result.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback} */ -public final class AgentAssistantFeedback extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AgentAssistantFeedback extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback) AgentAssistantFeedbackOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AgentAssistantFeedback.newBuilder() to construct. private AgentAssistantFeedback(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AgentAssistantFeedback() { answerRelevance_ = 0; documentCorrectness_ = 0; @@ -45,15 +27,16 @@ private AgentAssistantFeedback() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AgentAssistantFeedback(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AgentAssistantFeedback( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,74 +55,66 @@ private AgentAssistantFeedback( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - answerRelevance_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + answerRelevance_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - documentCorrectness_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + documentCorrectness_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - documentEfficiency_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + documentEfficiency_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.class, - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder.class); + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder.class); } /** - * - * *
    * Relevance of an answer.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance} */ - public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { + public enum AnswerRelevance + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Answer relevance unspecified.
      * 
@@ -148,8 +123,6 @@ public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { */ ANSWER_RELEVANCE_UNSPECIFIED(0), /** - * - * *
      * Answer is irrelevant to query.
      * 
@@ -158,8 +131,6 @@ public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { */ IRRELEVANT(1), /** - * - * *
      * Answer is relevant to query.
      * 
@@ -171,8 +142,6 @@ public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Answer relevance unspecified.
      * 
@@ -181,8 +150,6 @@ public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ANSWER_RELEVANCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Answer is irrelevant to query.
      * 
@@ -191,8 +158,6 @@ public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IRRELEVANT_VALUE = 1; /** - * - * *
      * Answer is relevant to query.
      * 
@@ -201,6 +166,7 @@ public enum AnswerRelevance implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RELEVANT_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,45 +191,40 @@ public static AnswerRelevance valueOf(int value) { */ public static AnswerRelevance forNumber(int value) { switch (value) { - case 0: - return ANSWER_RELEVANCE_UNSPECIFIED; - case 1: - return IRRELEVANT; - case 2: - return RELEVANT; - default: - return null; + case 0: return ANSWER_RELEVANCE_UNSPECIFIED; + case 1: return IRRELEVANT; + case 2: return RELEVANT; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AnswerRelevance> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AnswerRelevance findValueByNumber(int number) { + return AnswerRelevance.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnswerRelevance findValueByNumber(int number) { - return AnswerRelevance.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor().getEnumTypes().get(0); } private static final AnswerRelevance[] VALUES = values(); @@ -271,7 +232,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static AnswerRelevance valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -289,18 +251,15 @@ private AnswerRelevance(int value) { } /** - * - * *
    * Correctness of document.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness} */ - public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEnum { + public enum DocumentCorrectness + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Document correctness unspecified.
      * 
@@ -309,8 +268,6 @@ public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEn */ DOCUMENT_CORRECTNESS_UNSPECIFIED(0), /** - * - * *
      * Information in document is incorrect.
      * 
@@ -319,8 +276,6 @@ public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEn */ INCORRECT(1), /** - * - * *
      * Information in document is correct.
      * 
@@ -332,8 +287,6 @@ public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * Document correctness unspecified.
      * 
@@ -342,8 +295,6 @@ public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEn */ public static final int DOCUMENT_CORRECTNESS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Information in document is incorrect.
      * 
@@ -352,8 +303,6 @@ public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEn */ public static final int INCORRECT_VALUE = 1; /** - * - * *
      * Information in document is correct.
      * 
@@ -362,6 +311,7 @@ public enum DocumentCorrectness implements com.google.protobuf.ProtocolMessageEn */ public static final int CORRECT_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -386,14 +336,10 @@ public static DocumentCorrectness valueOf(int value) { */ public static DocumentCorrectness forNumber(int value) { switch (value) { - case 0: - return DOCUMENT_CORRECTNESS_UNSPECIFIED; - case 1: - return INCORRECT; - case 2: - return CORRECT; - default: - return null; + case 0: return DOCUMENT_CORRECTNESS_UNSPECIFIED; + case 1: return INCORRECT; + case 2: return CORRECT; + default: return null; } } @@ -401,31 +347,29 @@ public static DocumentCorrectness forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DocumentCorrectness> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentCorrectness findValueByNumber(int number) { + return DocumentCorrectness.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentCorrectness findValueByNumber(int number) { - return DocumentCorrectness.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor().getEnumTypes().get(1); } private static final DocumentCorrectness[] VALUES = values(); @@ -433,7 +377,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DocumentCorrectness valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -451,18 +396,15 @@ private DocumentCorrectness(int value) { } /** - * - * *
    * Efficiency of document.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency} */ - public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnum { + public enum DocumentEfficiency + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Document efficiency unspecified.
      * 
@@ -471,8 +413,6 @@ public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnu */ DOCUMENT_EFFICIENCY_UNSPECIFIED(0), /** - * - * *
      * Document is inefficient.
      * 
@@ -481,8 +421,6 @@ public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnu */ INEFFICIENT(1), /** - * - * *
      * Document is efficient.
      * 
@@ -494,8 +432,6 @@ public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Document efficiency unspecified.
      * 
@@ -504,8 +440,6 @@ public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnu */ public static final int DOCUMENT_EFFICIENCY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Document is inefficient.
      * 
@@ -514,8 +448,6 @@ public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnu */ public static final int INEFFICIENT_VALUE = 1; /** - * - * *
      * Document is efficient.
      * 
@@ -524,6 +456,7 @@ public enum DocumentEfficiency implements com.google.protobuf.ProtocolMessageEnu */ public static final int EFFICIENT_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -548,14 +481,10 @@ public static DocumentEfficiency valueOf(int value) { */ public static DocumentEfficiency forNumber(int value) { switch (value) { - case 0: - return DOCUMENT_EFFICIENCY_UNSPECIFIED; - case 1: - return INEFFICIENT; - case 2: - return EFFICIENT; - default: - return null; + case 0: return DOCUMENT_EFFICIENCY_UNSPECIFIED; + case 1: return INEFFICIENT; + case 2: return EFFICIENT; + default: return null; } } @@ -563,31 +492,29 @@ public static DocumentEfficiency forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DocumentEfficiency> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DocumentEfficiency findValueByNumber(int number) { + return DocumentEfficiency.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DocumentEfficiency findValueByNumber(int number) { - return DocumentEfficiency.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDescriptor().getEnumTypes().get(2); } private static final DocumentEfficiency[] VALUES = values(); @@ -595,7 +522,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static DocumentEfficiency valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -615,8 +543,6 @@ private DocumentEfficiency(int value) { public static final int ANSWER_RELEVANCE_FIELD_NUMBER = 1; private int answerRelevance_; /** - * - * *
    * Optional. Whether or not the suggested answer is relevant.
    * For example:
@@ -626,19 +552,13 @@ private DocumentEfficiency(int value) {
    * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for answerRelevance. */ - @java.lang.Override - public int getAnswerRelevanceValue() { + @java.lang.Override public int getAnswerRelevanceValue() { return answerRelevance_; } /** - * - * *
    * Optional. Whether or not the suggested answer is relevant.
    * For example:
@@ -648,29 +568,18 @@ public int getAnswerRelevanceValue() {
    * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The answerRelevance. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance - getAnswerRelevance() { + @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance getAnswerRelevance() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance result = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.valueOf( - answerRelevance_); - return result == null - ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.valueOf(answerRelevance_); + return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED : result; } public static final int DOCUMENT_CORRECTNESS_FIELD_NUMBER = 2; private int documentCorrectness_; /** - * - * *
    * Optional. Whether or not the information in the document is correct.
    * For example:
@@ -681,19 +590,13 @@ public int getAnswerRelevanceValue() {
    * * [document_correctness]: INCORRECT
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for documentCorrectness. */ - @java.lang.Override - public int getDocumentCorrectnessValue() { + @java.lang.Override public int getDocumentCorrectnessValue() { return documentCorrectness_; } /** - * - * *
    * Optional. Whether or not the information in the document is correct.
    * For example:
@@ -704,29 +607,18 @@ public int getDocumentCorrectnessValue() {
    * * [document_correctness]: INCORRECT
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentCorrectness. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness - getDocumentCorrectness() { + @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness getDocumentCorrectness() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness result = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.valueOf( - documentCorrectness_); - return result == null - ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.valueOf(documentCorrectness_); + return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.UNRECOGNIZED : result; } public static final int DOCUMENT_EFFICIENCY_FIELD_NUMBER = 3; private int documentEfficiency_; /** - * - * *
    * Optional. Whether or not the suggested document is efficient. For example,
    * if the document is poorly written, hard to understand, hard to use or
@@ -734,19 +626,13 @@ public int getDocumentCorrectnessValue() {
    * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for documentEfficiency. */ - @java.lang.Override - public int getDocumentEfficiencyValue() { + @java.lang.Override public int getDocumentEfficiencyValue() { return documentEfficiency_; } /** - * - * *
    * Optional. Whether or not the suggested document is efficient. For example,
    * if the document is poorly written, hard to understand, hard to use or
@@ -754,26 +640,16 @@ public int getDocumentEfficiencyValue() {
    * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentEfficiency. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency - getDocumentEfficiency() { + @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency getDocumentEfficiency() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency result = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.valueOf( - documentEfficiency_); - return result == null - ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.valueOf(documentEfficiency_); + return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -785,23 +661,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (answerRelevance_ - != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance - .ANSWER_RELEVANCE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (answerRelevance_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.ANSWER_RELEVANCE_UNSPECIFIED.getNumber()) { output.writeEnum(1, answerRelevance_); } - if (documentCorrectness_ - != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness - .DOCUMENT_CORRECTNESS_UNSPECIFIED - .getNumber()) { + if (documentCorrectness_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.DOCUMENT_CORRECTNESS_UNSPECIFIED.getNumber()) { output.writeEnum(2, documentCorrectness_); } - if (documentEfficiency_ - != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency - .DOCUMENT_EFFICIENCY_UNSPECIFIED - .getNumber()) { + if (documentEfficiency_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.DOCUMENT_EFFICIENCY_UNSPECIFIED.getNumber()) { output.writeEnum(3, documentEfficiency_); } unknownFields.writeTo(output); @@ -813,23 +681,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (answerRelevance_ - != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance - .ANSWER_RELEVANCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, answerRelevance_); - } - if (documentCorrectness_ - != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness - .DOCUMENT_CORRECTNESS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, documentCorrectness_); - } - if (documentEfficiency_ - != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency - .DOCUMENT_EFFICIENCY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, documentEfficiency_); + if (answerRelevance_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.ANSWER_RELEVANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, answerRelevance_); + } + if (documentCorrectness_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.DOCUMENT_CORRECTNESS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, documentCorrectness_); + } + if (documentEfficiency_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.DOCUMENT_EFFICIENCY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, documentEfficiency_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -839,13 +701,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AgentAssistantFeedback other = - (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) obj; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback other = (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) obj; if (answerRelevance_ != other.answerRelevance_) return false; if (documentCorrectness_ != other.documentCorrectness_) return false; @@ -873,127 +734,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.AgentAssistantFeedback prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Detail feedback of Agent Assist result.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantFeedback} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AgentAssistantFeedback) com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.class, - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder.class); + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.class, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AgentAssistantFeedback.newBuilder() @@ -1001,15 +852,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1023,9 +875,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; } @java.lang.Override @@ -1044,8 +896,7 @@ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback build() { @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback buildPartial() { - com.google.cloud.dialogflow.v2.AgentAssistantFeedback result = - new com.google.cloud.dialogflow.v2.AgentAssistantFeedback(this); + com.google.cloud.dialogflow.v2.AgentAssistantFeedback result = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback(this); result.answerRelevance_ = answerRelevance_; result.documentCorrectness_ = documentCorrectness_; result.documentEfficiency_ = documentEfficiency_; @@ -1057,39 +908,38 @@ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AgentAssistantFeedback) { - return mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantFeedback) other); + return mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantFeedback)other); } else { super.mergeFrom(other); return this; @@ -1097,8 +947,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AgentAssistantFeedback other) { - if (other == com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance()) return this; if (other.answerRelevance_ != 0) { setAnswerRelevanceValue(other.getAnswerRelevanceValue()); } @@ -1127,8 +976,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1140,8 +988,6 @@ public Builder mergeFrom( private int answerRelevance_ = 0; /** - * - * *
      * Optional. Whether or not the suggested answer is relevant.
      * For example:
@@ -1151,19 +997,13 @@ public Builder mergeFrom(
      * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for answerRelevance. */ - @java.lang.Override - public int getAnswerRelevanceValue() { + @java.lang.Override public int getAnswerRelevanceValue() { return answerRelevance_; } /** - * - * *
      * Optional. Whether or not the suggested answer is relevant.
      * For example:
@@ -1173,22 +1013,17 @@ public int getAnswerRelevanceValue() {
      * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for answerRelevance to set. * @return This builder for chaining. */ public Builder setAnswerRelevanceValue(int value) { - + answerRelevance_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether or not the suggested answer is relevant.
      * For example:
@@ -1198,26 +1033,16 @@ public Builder setAnswerRelevanceValue(int value) {
      * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The answerRelevance. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance - getAnswerRelevance() { + public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance getAnswerRelevance() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance result = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.valueOf( - answerRelevance_); - return result == null - ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.valueOf(answerRelevance_); + return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Whether or not the suggested answer is relevant.
      * For example:
@@ -1227,26 +1052,20 @@ public Builder setAnswerRelevanceValue(int value) {
      * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The answerRelevance to set. * @return This builder for chaining. */ - public Builder setAnswerRelevance( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance value) { + public Builder setAnswerRelevance(com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance value) { if (value == null) { throw new NullPointerException(); } - + answerRelevance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Whether or not the suggested answer is relevant.
      * For example:
@@ -1256,14 +1075,11 @@ public Builder setAnswerRelevance(
      * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAnswerRelevance() { - + answerRelevance_ = 0; onChanged(); return this; @@ -1271,8 +1087,6 @@ public Builder clearAnswerRelevance() { private int documentCorrectness_ = 0; /** - * - * *
      * Optional. Whether or not the information in the document is correct.
      * For example:
@@ -1283,19 +1097,13 @@ public Builder clearAnswerRelevance() {
      * * [document_correctness]: INCORRECT
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for documentCorrectness. */ - @java.lang.Override - public int getDocumentCorrectnessValue() { + @java.lang.Override public int getDocumentCorrectnessValue() { return documentCorrectness_; } /** - * - * *
      * Optional. Whether or not the information in the document is correct.
      * For example:
@@ -1306,22 +1114,17 @@ public int getDocumentCorrectnessValue() {
      * * [document_correctness]: INCORRECT
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for documentCorrectness to set. * @return This builder for chaining. */ public Builder setDocumentCorrectnessValue(int value) { - + documentCorrectness_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether or not the information in the document is correct.
      * For example:
@@ -1332,26 +1135,16 @@ public Builder setDocumentCorrectnessValue(int value) {
      * * [document_correctness]: INCORRECT
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentCorrectness. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness - getDocumentCorrectness() { + public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness getDocumentCorrectness() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness result = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.valueOf( - documentCorrectness_); - return result == null - ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.valueOf(documentCorrectness_); + return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Whether or not the information in the document is correct.
      * For example:
@@ -1362,26 +1155,20 @@ public Builder setDocumentCorrectnessValue(int value) {
      * * [document_correctness]: INCORRECT
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The documentCorrectness to set. * @return This builder for chaining. */ - public Builder setDocumentCorrectness( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness value) { + public Builder setDocumentCorrectness(com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness value) { if (value == null) { throw new NullPointerException(); } - + documentCorrectness_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Whether or not the information in the document is correct.
      * For example:
@@ -1392,14 +1179,11 @@ public Builder setDocumentCorrectness(
      * * [document_correctness]: INCORRECT
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDocumentCorrectness() { - + documentCorrectness_ = 0; onChanged(); return this; @@ -1407,8 +1191,6 @@ public Builder clearDocumentCorrectness() { private int documentEfficiency_ = 0; /** - * - * *
      * Optional. Whether or not the suggested document is efficient. For example,
      * if the document is poorly written, hard to understand, hard to use or
@@ -1416,19 +1198,13 @@ public Builder clearDocumentCorrectness() {
      * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for documentEfficiency. */ - @java.lang.Override - public int getDocumentEfficiencyValue() { + @java.lang.Override public int getDocumentEfficiencyValue() { return documentEfficiency_; } /** - * - * *
      * Optional. Whether or not the suggested document is efficient. For example,
      * if the document is poorly written, hard to understand, hard to use or
@@ -1436,22 +1212,17 @@ public int getDocumentEfficiencyValue() {
      * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for documentEfficiency to set. * @return This builder for chaining. */ public Builder setDocumentEfficiencyValue(int value) { - + documentEfficiency_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether or not the suggested document is efficient. For example,
      * if the document is poorly written, hard to understand, hard to use or
@@ -1459,26 +1230,16 @@ public Builder setDocumentEfficiencyValue(int value) {
      * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentEfficiency. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency - getDocumentEfficiency() { + public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency getDocumentEfficiency() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency result = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.valueOf( - documentEfficiency_); - return result == null - ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency result = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.valueOf(documentEfficiency_); + return result == null ? com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Whether or not the suggested document is efficient. For example,
      * if the document is poorly written, hard to understand, hard to use or
@@ -1486,26 +1247,20 @@ public Builder setDocumentEfficiencyValue(int value) {
      * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The documentEfficiency to set. * @return This builder for chaining. */ - public Builder setDocumentEfficiency( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency value) { + public Builder setDocumentEfficiency(com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency value) { if (value == null) { throw new NullPointerException(); } - + documentEfficiency_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Whether or not the suggested document is efficient. For example,
      * if the document is poorly written, hard to understand, hard to use or
@@ -1513,21 +1268,18 @@ public Builder setDocumentEfficiency(
      * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDocumentEfficiency() { - + documentEfficiency_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1537,12 +1289,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AgentAssistantFeedback) private static final com.google.cloud.dialogflow.v2.AgentAssistantFeedback DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AgentAssistantFeedback(); } @@ -1551,16 +1303,16 @@ public static com.google.cloud.dialogflow.v2.AgentAssistantFeedback getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentAssistantFeedback parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AgentAssistantFeedback(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentAssistantFeedback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AgentAssistantFeedback(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1575,4 +1327,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AgentAssistantFeedback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedbackOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedbackOrBuilder.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedbackOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedbackOrBuilder.java index 3ab46dbf1..8bf19f16d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedbackOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedbackOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/answer_record.proto package com.google.cloud.dialogflow.v2; -public interface AgentAssistantFeedbackOrBuilder - extends +public interface AgentAssistantFeedbackOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AgentAssistantFeedback) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Whether or not the suggested answer is relevant.
    * For example:
@@ -35,16 +17,11 @@ public interface AgentAssistantFeedbackOrBuilder
    * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for answerRelevance. */ int getAnswerRelevanceValue(); /** - * - * *
    * Optional. Whether or not the suggested answer is relevant.
    * For example:
@@ -54,17 +31,12 @@ public interface AgentAssistantFeedbackOrBuilder
    * * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance answer_relevance = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The answerRelevance. */ com.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance getAnswerRelevance(); /** - * - * *
    * Optional. Whether or not the information in the document is correct.
    * For example:
@@ -75,16 +47,11 @@ public interface AgentAssistantFeedbackOrBuilder
    * * [document_correctness]: INCORRECT
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for documentCorrectness. */ int getDocumentCorrectnessValue(); /** - * - * *
    * Optional. Whether or not the information in the document is correct.
    * For example:
@@ -95,18 +62,12 @@ public interface AgentAssistantFeedbackOrBuilder
    * * [document_correctness]: INCORRECT
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness document_correctness = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentCorrectness. */ - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness - getDocumentCorrectness(); + com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness getDocumentCorrectness(); /** - * - * *
    * Optional. Whether or not the suggested document is efficient. For example,
    * if the document is poorly written, hard to understand, hard to use or
@@ -114,16 +75,11 @@ public interface AgentAssistantFeedbackOrBuilder
    * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for documentEfficiency. */ int getDocumentEfficiencyValue(); /** - * - * *
    * Optional. Whether or not the suggested document is efficient. For example,
    * if the document is poorly written, hard to understand, hard to use or
@@ -131,10 +87,7 @@ public interface AgentAssistantFeedbackOrBuilder
    * [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency document_efficiency = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The documentEfficiency. */ com.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency getDocumentEfficiency(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecord.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecord.java similarity index 61% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecord.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecord.java index 5c089680a..9dd2a9420 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecord.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecord.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/answer_record.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents a record of a human agent assist answer.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantRecord} */ -public final class AgentAssistantRecord extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AgentAssistantRecord extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AgentAssistantRecord) AgentAssistantRecordOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AgentAssistantRecord.newBuilder() to construct. private AgentAssistantRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AgentAssistantRecord() {} + private AgentAssistantRecord() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AgentAssistantRecord(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AgentAssistantRecord( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,84 +52,75 @@ private AgentAssistantRecord( case 0: done = true; break; - case 42: - { - com.google.cloud.dialogflow.v2.ArticleAnswer.Builder subBuilder = null; - if (answerCase_ == 5) { - subBuilder = ((com.google.cloud.dialogflow.v2.ArticleAnswer) answer_).toBuilder(); - } - answer_ = - input.readMessage( - com.google.cloud.dialogflow.v2.ArticleAnswer.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.ArticleAnswer) answer_); - answer_ = subBuilder.buildPartial(); - } - answerCase_ = 5; - break; + case 42: { + com.google.cloud.dialogflow.v2.ArticleAnswer.Builder subBuilder = null; + if (answerCase_ == 5) { + subBuilder = ((com.google.cloud.dialogflow.v2.ArticleAnswer) answer_).toBuilder(); } - case 50: - { - com.google.cloud.dialogflow.v2.FaqAnswer.Builder subBuilder = null; - if (answerCase_ == 6) { - subBuilder = ((com.google.cloud.dialogflow.v2.FaqAnswer) answer_).toBuilder(); - } - answer_ = - input.readMessage( - com.google.cloud.dialogflow.v2.FaqAnswer.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.FaqAnswer) answer_); - answer_ = subBuilder.buildPartial(); - } - answerCase_ = 6; - break; + answer_ = + input.readMessage(com.google.cloud.dialogflow.v2.ArticleAnswer.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.ArticleAnswer) answer_); + answer_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + answerCase_ = 5; + break; + } + case 50: { + com.google.cloud.dialogflow.v2.FaqAnswer.Builder subBuilder = null; + if (answerCase_ == 6) { + subBuilder = ((com.google.cloud.dialogflow.v2.FaqAnswer) answer_).toBuilder(); + } + answer_ = + input.readMessage(com.google.cloud.dialogflow.v2.FaqAnswer.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.FaqAnswer) answer_); + answer_ = subBuilder.buildPartial(); } + answerCase_ = 6; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AgentAssistantRecord.class, - com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder.class); + com.google.cloud.dialogflow.v2.AgentAssistantRecord.class, com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder.class); } private int answerCase_ = 0; private java.lang.Object answer_; - public enum AnswerCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ARTICLE_SUGGESTION_ANSWER(5), FAQ_ANSWER(6), ANSWER_NOT_SET(0); private final int value; - private AnswerCase(int value) { this.value = value; } @@ -161,38 +136,30 @@ public static AnswerCase valueOf(int value) { public static AnswerCase forNumber(int value) { switch (value) { - case 5: - return ARTICLE_SUGGESTION_ANSWER; - case 6: - return FAQ_ANSWER; - case 0: - return ANSWER_NOT_SET; - default: - return null; + case 5: return ARTICLE_SUGGESTION_ANSWER; + case 6: return FAQ_ANSWER; + case 0: return ANSWER_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AnswerCase getAnswerCase() { - return AnswerCase.forNumber(answerCase_); + public AnswerCase + getAnswerCase() { + return AnswerCase.forNumber( + answerCase_); } public static final int ARTICLE_SUGGESTION_ANSWER_FIELD_NUMBER = 5; /** - * - * *
    * Output only. The article suggestion answer.
    * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the articleSuggestionAnswer field is set. */ @java.lang.Override @@ -200,57 +167,42 @@ public boolean hasArticleSuggestionAnswer() { return answerCase_ == 5; } /** - * - * *
    * Output only. The article suggestion answer.
    * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The articleSuggestionAnswer. */ @java.lang.Override public com.google.cloud.dialogflow.v2.ArticleAnswer getArticleSuggestionAnswer() { if (answerCase_ == 5) { - return (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_; + return (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_; } return com.google.cloud.dialogflow.v2.ArticleAnswer.getDefaultInstance(); } /** - * - * *
    * Output only. The article suggestion answer.
    * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder - getArticleSuggestionAnswerOrBuilder() { + public com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder getArticleSuggestionAnswerOrBuilder() { if (answerCase_ == 5) { - return (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_; + return (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_; } return com.google.cloud.dialogflow.v2.ArticleAnswer.getDefaultInstance(); } public static final int FAQ_ANSWER_FIELD_NUMBER = 6; /** - * - * *
    * Output only. The FAQ answer.
    * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the faqAnswer field is set. */ @java.lang.Override @@ -258,46 +210,36 @@ public boolean hasFaqAnswer() { return answerCase_ == 6; } /** - * - * *
    * Output only. The FAQ answer.
    * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The faqAnswer. */ @java.lang.Override public com.google.cloud.dialogflow.v2.FaqAnswer getFaqAnswer() { if (answerCase_ == 6) { - return (com.google.cloud.dialogflow.v2.FaqAnswer) answer_; + return (com.google.cloud.dialogflow.v2.FaqAnswer) answer_; } return com.google.cloud.dialogflow.v2.FaqAnswer.getDefaultInstance(); } /** - * - * *
    * Output only. The FAQ answer.
    * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder getFaqAnswerOrBuilder() { if (answerCase_ == 6) { - return (com.google.cloud.dialogflow.v2.FaqAnswer) answer_; + return (com.google.cloud.dialogflow.v2.FaqAnswer) answer_; } return com.google.cloud.dialogflow.v2.FaqAnswer.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +251,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (answerCase_ == 5) { output.writeMessage(5, (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_); } @@ -326,14 +269,12 @@ public int getSerializedSize() { size = 0; if (answerCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_); } if (answerCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dialogflow.v2.FaqAnswer) answer_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.dialogflow.v2.FaqAnswer) answer_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -343,21 +284,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AgentAssistantRecord)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AgentAssistantRecord other = - (com.google.cloud.dialogflow.v2.AgentAssistantRecord) obj; + com.google.cloud.dialogflow.v2.AgentAssistantRecord other = (com.google.cloud.dialogflow.v2.AgentAssistantRecord) obj; if (!getAnswerCase().equals(other.getAnswerCase())) return false; switch (answerCase_) { case 5: - if (!getArticleSuggestionAnswer().equals(other.getArticleSuggestionAnswer())) return false; + if (!getArticleSuggestionAnswer() + .equals(other.getArticleSuggestionAnswer())) return false; break; case 6: - if (!getFaqAnswer().equals(other.getFaqAnswer())) return false; + if (!getFaqAnswer() + .equals(other.getFaqAnswer())) return false; break; case 0: default: @@ -391,126 +333,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AgentAssistantRecord parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.AgentAssistantRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a record of a human agent assist answer.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AgentAssistantRecord} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AgentAssistantRecord) com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AgentAssistantRecord.class, - com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder.class); + com.google.cloud.dialogflow.v2.AgentAssistantRecord.class, com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AgentAssistantRecord.newBuilder() @@ -518,15 +451,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AnswerRecordsProto - .internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor; } @java.lang.Override @@ -557,8 +491,7 @@ public com.google.cloud.dialogflow.v2.AgentAssistantRecord build() { @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantRecord buildPartial() { - com.google.cloud.dialogflow.v2.AgentAssistantRecord result = - new com.google.cloud.dialogflow.v2.AgentAssistantRecord(this); + com.google.cloud.dialogflow.v2.AgentAssistantRecord result = new com.google.cloud.dialogflow.v2.AgentAssistantRecord(this); if (answerCase_ == 5) { if (articleSuggestionAnswerBuilder_ == null) { result.answer_ = answer_; @@ -582,39 +515,38 @@ public com.google.cloud.dialogflow.v2.AgentAssistantRecord buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AgentAssistantRecord) { - return mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantRecord) other); + return mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantRecord)other); } else { super.mergeFrom(other); return this; @@ -622,23 +554,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AgentAssistantRecord other) { - if (other == com.google.cloud.dialogflow.v2.AgentAssistantRecord.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.AgentAssistantRecord.getDefaultInstance()) return this; switch (other.getAnswerCase()) { - case ARTICLE_SUGGESTION_ANSWER: - { - mergeArticleSuggestionAnswer(other.getArticleSuggestionAnswer()); - break; - } - case FAQ_ANSWER: - { - mergeFaqAnswer(other.getFaqAnswer()); - break; - } - case ANSWER_NOT_SET: - { - break; - } + case ARTICLE_SUGGESTION_ANSWER: { + mergeArticleSuggestionAnswer(other.getArticleSuggestionAnswer()); + break; + } + case FAQ_ANSWER: { + mergeFaqAnswer(other.getFaqAnswer()); + break; + } + case ANSWER_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -659,8 +587,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.AgentAssistantRecord) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.AgentAssistantRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -669,12 +596,12 @@ public Builder mergeFrom( } return this; } - private int answerCase_ = 0; private java.lang.Object answer_; - - public AnswerCase getAnswerCase() { - return AnswerCase.forNumber(answerCase_); + public AnswerCase + getAnswerCase() { + return AnswerCase.forNumber( + answerCase_); } public Builder clearAnswer() { @@ -684,22 +611,15 @@ public Builder clearAnswer() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ArticleAnswer, - com.google.cloud.dialogflow.v2.ArticleAnswer.Builder, - com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder> - articleSuggestionAnswerBuilder_; + com.google.cloud.dialogflow.v2.ArticleAnswer, com.google.cloud.dialogflow.v2.ArticleAnswer.Builder, com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder> articleSuggestionAnswerBuilder_; /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the articleSuggestionAnswer field is set. */ @java.lang.Override @@ -707,16 +627,11 @@ public boolean hasArticleSuggestionAnswer() { return answerCase_ == 5; } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The articleSuggestionAnswer. */ @java.lang.Override @@ -734,15 +649,11 @@ public com.google.cloud.dialogflow.v2.ArticleAnswer getArticleSuggestionAnswer() } } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArticleSuggestionAnswer(com.google.cloud.dialogflow.v2.ArticleAnswer value) { if (articleSuggestionAnswerBuilder_ == null) { @@ -758,15 +669,11 @@ public Builder setArticleSuggestionAnswer(com.google.cloud.dialogflow.v2.Article return this; } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArticleSuggestionAnswer( com.google.cloud.dialogflow.v2.ArticleAnswer.Builder builderForValue) { @@ -780,26 +687,18 @@ public Builder setArticleSuggestionAnswer( return this; } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeArticleSuggestionAnswer( - com.google.cloud.dialogflow.v2.ArticleAnswer value) { + public Builder mergeArticleSuggestionAnswer(com.google.cloud.dialogflow.v2.ArticleAnswer value) { if (articleSuggestionAnswerBuilder_ == null) { - if (answerCase_ == 5 - && answer_ != com.google.cloud.dialogflow.v2.ArticleAnswer.getDefaultInstance()) { - answer_ = - com.google.cloud.dialogflow.v2.ArticleAnswer.newBuilder( - (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_) - .mergeFrom(value) - .buildPartial(); + if (answerCase_ == 5 && + answer_ != com.google.cloud.dialogflow.v2.ArticleAnswer.getDefaultInstance()) { + answer_ = com.google.cloud.dialogflow.v2.ArticleAnswer.newBuilder((com.google.cloud.dialogflow.v2.ArticleAnswer) answer_) + .mergeFrom(value).buildPartial(); } else { answer_ = value; } @@ -814,15 +713,11 @@ public Builder mergeArticleSuggestionAnswer( return this; } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearArticleSuggestionAnswer() { if (articleSuggestionAnswerBuilder_ == null) { @@ -841,34 +736,24 @@ public Builder clearArticleSuggestionAnswer() { return this; } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dialogflow.v2.ArticleAnswer.Builder - getArticleSuggestionAnswerBuilder() { + public com.google.cloud.dialogflow.v2.ArticleAnswer.Builder getArticleSuggestionAnswerBuilder() { return getArticleSuggestionAnswerFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder - getArticleSuggestionAnswerOrBuilder() { + public com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder getArticleSuggestionAnswerOrBuilder() { if ((answerCase_ == 5) && (articleSuggestionAnswerBuilder_ != null)) { return articleSuggestionAnswerBuilder_.getMessageOrBuilder(); } else { @@ -879,57 +764,39 @@ public Builder clearArticleSuggestionAnswer() { } } /** - * - * *
      * Output only. The article suggestion answer.
      * 
* - * - * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ArticleAnswer, - com.google.cloud.dialogflow.v2.ArticleAnswer.Builder, - com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder> + com.google.cloud.dialogflow.v2.ArticleAnswer, com.google.cloud.dialogflow.v2.ArticleAnswer.Builder, com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder> getArticleSuggestionAnswerFieldBuilder() { if (articleSuggestionAnswerBuilder_ == null) { if (!(answerCase_ == 5)) { answer_ = com.google.cloud.dialogflow.v2.ArticleAnswer.getDefaultInstance(); } - articleSuggestionAnswerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ArticleAnswer, - com.google.cloud.dialogflow.v2.ArticleAnswer.Builder, - com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder>( + articleSuggestionAnswerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.ArticleAnswer, com.google.cloud.dialogflow.v2.ArticleAnswer.Builder, com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder>( (com.google.cloud.dialogflow.v2.ArticleAnswer) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 5; - onChanged(); - ; + onChanged();; return articleSuggestionAnswerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.FaqAnswer, - com.google.cloud.dialogflow.v2.FaqAnswer.Builder, - com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder> - faqAnswerBuilder_; + com.google.cloud.dialogflow.v2.FaqAnswer, com.google.cloud.dialogflow.v2.FaqAnswer.Builder, com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder> faqAnswerBuilder_; /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the faqAnswer field is set. */ @java.lang.Override @@ -937,16 +804,11 @@ public boolean hasFaqAnswer() { return answerCase_ == 6; } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The faqAnswer. */ @java.lang.Override @@ -964,15 +826,11 @@ public com.google.cloud.dialogflow.v2.FaqAnswer getFaqAnswer() { } } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFaqAnswer(com.google.cloud.dialogflow.v2.FaqAnswer value) { if (faqAnswerBuilder_ == null) { @@ -988,17 +846,14 @@ public Builder setFaqAnswer(com.google.cloud.dialogflow.v2.FaqAnswer value) { return this; } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setFaqAnswer(com.google.cloud.dialogflow.v2.FaqAnswer.Builder builderForValue) { + public Builder setFaqAnswer( + com.google.cloud.dialogflow.v2.FaqAnswer.Builder builderForValue) { if (faqAnswerBuilder_ == null) { answer_ = builderForValue.build(); onChanged(); @@ -1009,25 +864,18 @@ public Builder setFaqAnswer(com.google.cloud.dialogflow.v2.FaqAnswer.Builder bui return this; } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeFaqAnswer(com.google.cloud.dialogflow.v2.FaqAnswer value) { if (faqAnswerBuilder_ == null) { - if (answerCase_ == 6 - && answer_ != com.google.cloud.dialogflow.v2.FaqAnswer.getDefaultInstance()) { - answer_ = - com.google.cloud.dialogflow.v2.FaqAnswer.newBuilder( - (com.google.cloud.dialogflow.v2.FaqAnswer) answer_) - .mergeFrom(value) - .buildPartial(); + if (answerCase_ == 6 && + answer_ != com.google.cloud.dialogflow.v2.FaqAnswer.getDefaultInstance()) { + answer_ = com.google.cloud.dialogflow.v2.FaqAnswer.newBuilder((com.google.cloud.dialogflow.v2.FaqAnswer) answer_) + .mergeFrom(value).buildPartial(); } else { answer_ = value; } @@ -1042,15 +890,11 @@ public Builder mergeFaqAnswer(com.google.cloud.dialogflow.v2.FaqAnswer value) { return this; } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearFaqAnswer() { if (faqAnswerBuilder_ == null) { @@ -1069,29 +913,21 @@ public Builder clearFaqAnswer() { return this; } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dialogflow.v2.FaqAnswer.Builder getFaqAnswerBuilder() { return getFaqAnswerFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder getFaqAnswerOrBuilder() { @@ -1105,43 +941,33 @@ public com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder getFaqAnswerOrBuilder() } } /** - * - * *
      * Output only. The FAQ answer.
      * 
* - * - * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.FaqAnswer, - com.google.cloud.dialogflow.v2.FaqAnswer.Builder, - com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder> + com.google.cloud.dialogflow.v2.FaqAnswer, com.google.cloud.dialogflow.v2.FaqAnswer.Builder, com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder> getFaqAnswerFieldBuilder() { if (faqAnswerBuilder_ == null) { if (!(answerCase_ == 6)) { answer_ = com.google.cloud.dialogflow.v2.FaqAnswer.getDefaultInstance(); } - faqAnswerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.FaqAnswer, - com.google.cloud.dialogflow.v2.FaqAnswer.Builder, - com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder>( + faqAnswerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.FaqAnswer, com.google.cloud.dialogflow.v2.FaqAnswer.Builder, com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder>( (com.google.cloud.dialogflow.v2.FaqAnswer) answer_, getParentForChildren(), isClean()); answer_ = null; } answerCase_ = 6; - onChanged(); - ; + onChanged();; return faqAnswerBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1151,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AgentAssistantRecord) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AgentAssistantRecord) private static final com.google.cloud.dialogflow.v2.AgentAssistantRecord DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AgentAssistantRecord(); } @@ -1165,16 +991,16 @@ public static com.google.cloud.dialogflow.v2.AgentAssistantRecord getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentAssistantRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AgentAssistantRecord(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentAssistantRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AgentAssistantRecord(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,4 +1015,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AgentAssistantRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecordOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecordOrBuilder.java new file mode 100644 index 000000000..7e025d7c5 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantRecordOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/answer_record.proto + +package com.google.cloud.dialogflow.v2; + +public interface AgentAssistantRecordOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AgentAssistantRecord) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The article suggestion answer.
+   * 
+ * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the articleSuggestionAnswer field is set. + */ + boolean hasArticleSuggestionAnswer(); + /** + *
+   * Output only. The article suggestion answer.
+   * 
+ * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The articleSuggestionAnswer. + */ + com.google.cloud.dialogflow.v2.ArticleAnswer getArticleSuggestionAnswer(); + /** + *
+   * Output only. The article suggestion answer.
+   * 
+ * + * .google.cloud.dialogflow.v2.ArticleAnswer article_suggestion_answer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder getArticleSuggestionAnswerOrBuilder(); + + /** + *
+   * Output only. The FAQ answer.
+   * 
+ * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the faqAnswer field is set. + */ + boolean hasFaqAnswer(); + /** + *
+   * Output only. The FAQ answer.
+   * 
+ * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The faqAnswer. + */ + com.google.cloud.dialogflow.v2.FaqAnswer getFaqAnswer(); + /** + *
+   * Output only. The FAQ answer.
+   * 
+ * + * .google.cloud.dialogflow.v2.FaqAnswer faq_answer = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder getFaqAnswerOrBuilder(); + + public com.google.cloud.dialogflow.v2.AgentAssistantRecord.AnswerCase getAnswerCase(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java similarity index 73% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java index 386bb0909..32e84ee35 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java @@ -1,87 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface AgentOrBuilder - extends +public interface AgentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Agent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project of this agent.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project of this agent.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The name of this agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The name of this agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. The default language of the agent as a language tag. See
    * [Language
@@ -91,13 +59,10 @@ public interface AgentOrBuilder
    * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The defaultLanguageCode. */ java.lang.String getDefaultLanguageCode(); /** - * - * *
    * Required. The default language of the agent as a language tag. See
    * [Language
@@ -107,73 +72,57 @@ public interface AgentOrBuilder
    * 
* * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for defaultLanguageCode. */ - com.google.protobuf.ByteString getDefaultLanguageCodeBytes(); + com.google.protobuf.ByteString + getDefaultLanguageCodeBytes(); /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the supportedLanguageCodes. */ - java.util.List getSupportedLanguageCodesList(); + java.util.List + getSupportedLanguageCodesList(); /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of supportedLanguageCodes. */ int getSupportedLanguageCodesCount(); /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The supportedLanguageCodes at the given index. */ java.lang.String getSupportedLanguageCodes(int index); /** - * - * *
    * Optional. The list of all languages supported by this agent (except for the
    * `default_language_code`).
    * 
* - * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the supportedLanguageCodes at the given index. */ - com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getSupportedLanguageCodesBytes(int index); /** - * - * *
    * Required. The time zone of this agent from the
    * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -181,13 +130,10 @@ public interface AgentOrBuilder
    * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The timeZone. */ java.lang.String getTimeZone(); /** - * - * *
    * Required. The time zone of this agent from the
    * [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -195,41 +141,34 @@ public interface AgentOrBuilder
    * 
* * string time_zone = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for timeZone. */ - com.google.protobuf.ByteString getTimeZoneBytes(); + com.google.protobuf.ByteString + getTimeZoneBytes(); /** - * - * *
    * Optional. The description of this agent.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. The description of this agent.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. The URI of the agent's avatar.
    * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -239,13 +178,10 @@ public interface AgentOrBuilder
    * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The avatarUri. */ java.lang.String getAvatarUri(); /** - * - * *
    * Optional. The URI of the agent's avatar.
    * Avatars are used throughout the Dialogflow console and in the self-hosted
@@ -255,58 +191,41 @@ public interface AgentOrBuilder
    * 
* * string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for avatarUri. */ - com.google.protobuf.ByteString getAvatarUriBytes(); + com.google.protobuf.ByteString + getAvatarUriBytes(); /** - * - * *
    * Optional. Determines whether this agent should log conversation queries.
    * 
* * bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableLogging. */ boolean getEnableLogging(); /** - * - * *
    * Optional. Determines how intents are detected from user queries.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for matchMode. */ - @java.lang.Deprecated - int getMatchModeValue(); + @java.lang.Deprecated int getMatchModeValue(); /** - * - * *
    * Optional. Determines how intents are detected from user queries.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The matchMode. */ - @java.lang.Deprecated - com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode(); + @java.lang.Deprecated com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode(); /** - * - * *
    * Optional. To filter out false positive results and still get variety in
    * matched natural language inputs for your agent, you can tune the machine
@@ -318,14 +237,11 @@ public interface AgentOrBuilder
    * 
* * float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The classificationThreshold. */ float getClassificationThreshold(); /** - * - * *
    * Optional. API version displayed in Dialogflow console. If not specified,
    * V2 API is assumed. Clients are free to query different service endpoints
@@ -333,16 +249,11 @@ public interface AgentOrBuilder
    * follow the specified API version.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for apiVersion. */ int getApiVersionValue(); /** - * - * *
    * Optional. API version displayed in Dialogflow console. If not specified,
    * V2 API is assumed. Clients are free to query different service endpoints
@@ -350,39 +261,26 @@ public interface AgentOrBuilder
    * follow the specified API version.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The apiVersion. */ com.google.cloud.dialogflow.v2.Agent.ApiVersion getApiVersion(); /** - * - * *
    * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for tier. */ int getTierValue(); /** - * - * *
    * Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
    * 
* - * - * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The tier. */ com.google.cloud.dialogflow.v2.Agent.Tier getTier(); diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java new file mode 100644 index 000000000..10d916b86 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentProto.java @@ -0,0 +1,315 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/agent.proto + +package com.google.cloud.dialogflow.v2; + +public final class AgentProto { + private AgentProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Agent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SetAgentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SetAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SearchAgentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SearchAgentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SearchAgentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SearchAgentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_TrainAgentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_TrainAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_RestoreAgentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_RestoreAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/dialogflow/v2/agent.proto" + + "\022\032google.cloud.dialogflow.v2\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\0322google/cloud/di" + + "alogflow/v2/validation_result.proto\032#goo" + + "gle/longrunning/operations.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\"\241\007\n\005Agent\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\022\031\n\014display_name\030\002 \001(\tB\003\340A" + + "\002\022\"\n\025default_language_code\030\003 \001(\tB\003\340A\002\022%\n" + + "\030supported_language_codes\030\004 \003(\tB\003\340A\001\022\026\n\t" + + "time_zone\030\005 \001(\tB\003\340A\002\022\030\n\013description\030\006 \001(" + + "\tB\003\340A\001\022\027\n\navatar_uri\030\007 \001(\tB\003\340A\001\022\033\n\016enabl" + + "e_logging\030\010 \001(\010B\003\340A\001\022F\n\nmatch_mode\030\t \001(\016" + + "2+.google.cloud.dialogflow.v2.Agent.Matc" + + "hModeB\005\030\001\340A\001\022%\n\030classification_threshold" + + "\030\n \001(\002B\003\340A\001\022F\n\013api_version\030\016 \001(\0162,.googl" + + "e.cloud.dialogflow.v2.Agent.ApiVersionB\003" + + "\340A\001\0229\n\004tier\030\017 \001(\0162&.google.cloud.dialogf" + + "low.v2.Agent.TierB\003\340A\001\"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\"J\n\017GetAgentR" + + "equest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogfl" + + "ow.googleapis.com/Agent\"~\n\017SetAgentReque" + + "st\0225\n\005agent\030\001 \001(\0132!.google.cloud.dialogf" + + "low.v2.AgentB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\001\"M\n\022Delet" + + "eAgentRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037d" + + "ialogflow.googleapis.com/Agent\"z\n\023Search" + + "AgentsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037d" + + "ialogflow.googleapis.com/Agent\022\026\n\tpage_s" + + "ize\030\002 \001(\005B\003\340A\001\022\022\n\npage_token\030\003 \001(\t\"b\n\024Se" + + "archAgentsResponse\0221\n\006agents\030\001 \003(\0132!.goo" + + "gle.cloud.dialogflow.v2.Agent\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"L\n\021TrainAgentRequest\0227\n\006p" + + "arent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow.googleap" + + "is.com/Agent\"e\n\022ExportAgentRequest\0227\n\006pa" + + "rent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow.googleapi" + + "s.com/Agent\022\026\n\tagent_uri\030\002 \001(\tB\003\340A\002\"L\n\023E" + + "xportAgentResponse\022\023\n\tagent_uri\030\001 \001(\tH\000\022" + + "\027\n\ragent_content\030\002 \001(\014H\000B\007\n\005agent\"\204\001\n\022Im" + + "portAgentRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" + + "\022\037dialogflow.googleapis.com/Agent\022\023\n\tage" + + "nt_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014H\000B" + + "\007\n\005agent\"\205\001\n\023RestoreAgentRequest\0227\n\006pare" + + "nt\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow.googleapis." + + "com/Agent\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n\ragent_" + + "content\030\003 \001(\014H\000B\007\n\005agent\"q\n\032GetValidatio" + + "nResultRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037" + + "dialogflow.googleapis.com/Agent\022\032\n\rlangu" + + "age_code\030\003 \001(\tB\003\340A\0012\252\021\n\006Agents\022\267\001\n\010GetAg" + + "ent\022+.google.cloud.dialogflow.v2.GetAgen" + + "tRequest\032!.google.cloud.dialogflow.v2.Ag" + + "ent\"[\202\323\344\223\002L\022\035/v2/{parent=projects/*}/age" + + "ntZ+\022)/v2/{parent=projects/*/locations/*" + + "}/agent\332A\006parent\022\320\001\n\010SetAgent\022+.google.c" + + "loud.dialogflow.v2.SetAgentRequest\032!.goo" + + "gle.cloud.dialogflow.v2.Agent\"t\202\323\344\223\002f\"#/" + + "v2/{agent.parent=projects/*}/agent:\005agen" + + "tZ8\"//v2/{agent.parent=projects/*/locati" + + "ons/*}/agent:\005agent\332A\005agent\022\262\001\n\013DeleteAg" + + "ent\022..google.cloud.dialogflow.v2.DeleteA" + + "gentRequest\032\026.google.protobuf.Empty\"[\202\323\344" + + "\223\002L*\035/v2/{parent=projects/*}/agentZ+*)/v" + + "2/{parent=projects/*/locations/*}/agent\332" + + "A\006parent\022\334\001\n\014SearchAgents\022/.google.cloud" + + ".dialogflow.v2.SearchAgentsRequest\0320.goo" + + "gle.cloud.dialogflow.v2.SearchAgentsResp" + + "onse\"i\202\323\344\223\002Z\022$/v2/{parent=projects/*}/ag" + + "ent:searchZ2\0220/v2/{parent=projects/*/loc" + + "ations/*}/agent:search\332A\006parent\022\374\001\n\nTrai" + + "nAgent\022-.google.cloud.dialogflow.v2.Trai" + + "nAgentRequest\032\035.google.longrunning.Opera" + + "tion\"\237\001\202\323\344\223\002^\"#/v2/{parent=projects/*}/a" + + "gent:train:\001*Z4\"//v2/{parent=projects/*/" + + "locations/*}/agent:train:\001*\332A\006parent\312A/\n" + + "\025google.protobuf.Empty\022\026google.protobuf." + + "Struct\022\231\002\n\013ExportAgent\022..google.cloud.di" + + "alogflow.v2.ExportAgentRequest\032\035.google." + + "longrunning.Operation\"\272\001\202\323\344\223\002`\"$/v2/{par" + + "ent=projects/*}/agent:export:\001*Z5\"0/v2/{" + + "parent=projects/*/locations/*}/agent:exp" + + "ort:\001*\332A\006parent\312AH\n.google.cloud.dialogf" + + "low.v2.ExportAgentResponse\022\026google.proto" + + "buf.Struct\022\367\001\n\013ImportAgent\022..google.clou" + + "d.dialogflow.v2.ImportAgentRequest\032\035.goo" + + "gle.longrunning.Operation\"\230\001\202\323\344\223\002`\"$/v2/" + + "{parent=projects/*}/agent:import:\001*Z5\"0/" + + "v2/{parent=projects/*/locations/*}/agent" + + ":import:\001*\312A/\n\025google.protobuf.Empty\022\026go" + + "ogle.protobuf.Struct\022\373\001\n\014RestoreAgent\022/." + + "google.cloud.dialogflow.v2.RestoreAgentR" + + "equest\032\035.google.longrunning.Operation\"\232\001" + + "\202\323\344\223\002b\"%/v2/{parent=projects/*}/agent:re" + + "store:\001*Z6\"1/v2/{parent=projects/*/locat" + + "ions/*}/agent:restore:\001*\312A/\n\025google.prot" + + "obuf.Empty\022\026google.protobuf.Struct\022\361\001\n\023G" + + "etValidationResult\0226.google.cloud.dialog" + + "flow.v2.GetValidationResultRequest\032,.goo" + + "gle.cloud.dialogflow.v2.ValidationResult" + + "\"t\202\323\344\223\002n\022./v2/{parent=projects/*}/agent/" + + "validationResultZ<\022:/v2/{parent=projects" + + "/*/locations/*}/agent/validationResult\032x" + + "\312A\031dialogflow.googleapis.com\322AYhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/dialogflow" + + "B\231\001\n\036com.google.cloud.dialogflow.v2B\nAge" + + "ntProtoP\001ZDgoogle.golang.org/genproto/go" + + "ogleapis/cloud/dialogflow/v2;dialogflow\370" + + "\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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.ValidationResultProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_Agent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_Agent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Agent_descriptor, + new java.lang.String[] { "Parent", "DisplayName", "DefaultLanguageCode", "SupportedLanguageCodes", "TimeZone", "Description", "AvatarUri", "EnableLogging", "MatchMode", "ClassificationThreshold", "ApiVersion", "Tier", }); + internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_GetAgentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_dialogflow_v2_SetAgentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_SetAgentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SetAgentRequest_descriptor, + new java.lang.String[] { "Agent", "UpdateMask", }); + internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_dialogflow_v2_SearchAgentsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2_SearchAgentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SearchAgentsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2_SearchAgentsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2_SearchAgentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SearchAgentsResponse_descriptor, + new java.lang.String[] { "Agents", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_TrainAgentRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2_TrainAgentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_TrainAgentRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor, + new java.lang.String[] { "Parent", "AgentUri", }); + internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor, + new java.lang.String[] { "AgentUri", "AgentContent", "Agent", }); + internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor, + new java.lang.String[] { "Parent", "AgentUri", "AgentContent", "Agent", }); + internal_static_google_cloud_dialogflow_v2_RestoreAgentRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dialogflow_v2_RestoreAgentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_RestoreAgentRequest_descriptor, + new java.lang.String[] { "Parent", "AgentUri", "AgentContent", "Agent", }); + internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_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.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + 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.ValidationResultProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java similarity index 72% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java index 910f1b584..20c3069c1 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentRequest} */ -public final class AnalyzeContentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeContentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AnalyzeContentRequest) AnalyzeContentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeContentRequest.newBuilder() to construct. private AnalyzeContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeContentRequest() { participant_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private AnalyzeContentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeContentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnalyzeContentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,130 +54,113 @@ private AnalyzeContentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - participant_ = s; - break; + participant_ = s; + break; + } + case 42: { + com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null; + if (replyAudioConfig_ != null) { + subBuilder = replyAudioConfig_.toBuilder(); + } + replyAudioConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(replyAudioConfig_); + replyAudioConfig_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null; - if (replyAudioConfig_ != null) { - subBuilder = replyAudioConfig_.toBuilder(); - } - replyAudioConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(replyAudioConfig_); - replyAudioConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.cloud.dialogflow.v2.TextInput.Builder subBuilder = null; + if (inputCase_ == 6) { + subBuilder = ((com.google.cloud.dialogflow.v2.TextInput) input_).toBuilder(); } - case 50: - { - com.google.cloud.dialogflow.v2.TextInput.Builder subBuilder = null; - if (inputCase_ == 6) { - subBuilder = ((com.google.cloud.dialogflow.v2.TextInput) input_).toBuilder(); - } - input_ = - input.readMessage( - com.google.cloud.dialogflow.v2.TextInput.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.TextInput) input_); - input_ = subBuilder.buildPartial(); - } - inputCase_ = 6; - break; + input_ = + input.readMessage(com.google.cloud.dialogflow.v2.TextInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.TextInput) input_); + input_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.dialogflow.v2.EventInput.Builder subBuilder = null; - if (inputCase_ == 8) { - subBuilder = ((com.google.cloud.dialogflow.v2.EventInput) input_).toBuilder(); - } - input_ = - input.readMessage( - com.google.cloud.dialogflow.v2.EventInput.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.EventInput) input_); - input_ = subBuilder.buildPartial(); - } - inputCase_ = 8; - break; + inputCase_ = 6; + break; + } + case 66: { + com.google.cloud.dialogflow.v2.EventInput.Builder subBuilder = null; + if (inputCase_ == 8) { + subBuilder = ((com.google.cloud.dialogflow.v2.EventInput) input_).toBuilder(); } - case 74: - { - com.google.cloud.dialogflow.v2.QueryParameters.Builder subBuilder = null; - if (queryParams_ != null) { - subBuilder = queryParams_.toBuilder(); - } - queryParams_ = - input.readMessage( - com.google.cloud.dialogflow.v2.QueryParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryParams_); - queryParams_ = subBuilder.buildPartial(); - } - - break; + input_ = + input.readMessage(com.google.cloud.dialogflow.v2.EventInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.EventInput) input_); + input_ = subBuilder.buildPartial(); } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; + inputCase_ = 8; + break; + } + case 74: { + com.google.cloud.dialogflow.v2.QueryParameters.Builder subBuilder = null; + if (queryParams_ != null) { + subBuilder = queryParams_.toBuilder(); + } + queryParams_ = input.readMessage(com.google.cloud.dialogflow.v2.QueryParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryParams_); + queryParams_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AnalyzeContentRequest.class, - com.google.cloud.dialogflow.v2.AnalyzeContentRequest.Builder.class); + com.google.cloud.dialogflow.v2.AnalyzeContentRequest.class, com.google.cloud.dialogflow.v2.AnalyzeContentRequest.Builder.class); } private int inputCase_ = 0; private java.lang.Object input_; - public enum InputCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_INPUT(6), EVENT_INPUT(8), INPUT_NOT_SET(0); private final int value; - private InputCase(int value) { this.value = value; } @@ -210,41 +176,33 @@ public static InputCase valueOf(int value) { public static InputCase forNumber(int value) { switch (value) { - case 6: - return TEXT_INPUT; - case 8: - return EVENT_INPUT; - case 0: - return INPUT_NOT_SET; - default: - return null; + case 6: return TEXT_INPUT; + case 8: return EVENT_INPUT; + case 0: return INPUT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public InputCase getInputCase() { - return InputCase.forNumber(inputCase_); + public InputCase + getInputCase() { + return InputCase.forNumber( + inputCase_); } public static final int PARTICIPANT_FIELD_NUMBER = 1; private volatile java.lang.Object participant_; /** - * - * *
    * Required. The name of the participant this text comes from.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
    * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The participant. */ @java.lang.Override @@ -253,33 +211,31 @@ public java.lang.String getParticipant() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); participant_ = s; return s; } } /** - * - * *
    * Required. The name of the participant this text comes from.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
    * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for participant. */ @java.lang.Override - public com.google.protobuf.ByteString getParticipantBytes() { + public com.google.protobuf.ByteString + getParticipantBytes() { java.lang.Object ref = participant_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); participant_ = b; return b; } else { @@ -289,14 +245,11 @@ public com.google.protobuf.ByteString getParticipantBytes() { public static final int TEXT_INPUT_FIELD_NUMBER = 6; /** - * - * *
    * The natural language text to be processed.
    * 
* * .google.cloud.dialogflow.v2.TextInput text_input = 6; - * * @return Whether the textInput field is set. */ @java.lang.Override @@ -304,26 +257,21 @@ public boolean hasTextInput() { return inputCase_ == 6; } /** - * - * *
    * The natural language text to be processed.
    * 
* * .google.cloud.dialogflow.v2.TextInput text_input = 6; - * * @return The textInput. */ @java.lang.Override public com.google.cloud.dialogflow.v2.TextInput getTextInput() { if (inputCase_ == 6) { - return (com.google.cloud.dialogflow.v2.TextInput) input_; + return (com.google.cloud.dialogflow.v2.TextInput) input_; } return com.google.cloud.dialogflow.v2.TextInput.getDefaultInstance(); } /** - * - * *
    * The natural language text to be processed.
    * 
@@ -333,21 +281,18 @@ public com.google.cloud.dialogflow.v2.TextInput getTextInput() { @java.lang.Override public com.google.cloud.dialogflow.v2.TextInputOrBuilder getTextInputOrBuilder() { if (inputCase_ == 6) { - return (com.google.cloud.dialogflow.v2.TextInput) input_; + return (com.google.cloud.dialogflow.v2.TextInput) input_; } return com.google.cloud.dialogflow.v2.TextInput.getDefaultInstance(); } public static final int EVENT_INPUT_FIELD_NUMBER = 8; /** - * - * *
    * An input event to send to Dialogflow.
    * 
* * .google.cloud.dialogflow.v2.EventInput event_input = 8; - * * @return Whether the eventInput field is set. */ @java.lang.Override @@ -355,26 +300,21 @@ public boolean hasEventInput() { return inputCase_ == 8; } /** - * - * *
    * An input event to send to Dialogflow.
    * 
* * .google.cloud.dialogflow.v2.EventInput event_input = 8; - * * @return The eventInput. */ @java.lang.Override public com.google.cloud.dialogflow.v2.EventInput getEventInput() { if (inputCase_ == 8) { - return (com.google.cloud.dialogflow.v2.EventInput) input_; + return (com.google.cloud.dialogflow.v2.EventInput) input_; } return com.google.cloud.dialogflow.v2.EventInput.getDefaultInstance(); } /** - * - * *
    * An input event to send to Dialogflow.
    * 
@@ -384,7 +324,7 @@ public com.google.cloud.dialogflow.v2.EventInput getEventInput() { @java.lang.Override public com.google.cloud.dialogflow.v2.EventInputOrBuilder getEventInputOrBuilder() { if (inputCase_ == 8) { - return (com.google.cloud.dialogflow.v2.EventInput) input_; + return (com.google.cloud.dialogflow.v2.EventInput) input_; } return com.google.cloud.dialogflow.v2.EventInput.getDefaultInstance(); } @@ -392,8 +332,6 @@ public com.google.cloud.dialogflow.v2.EventInputOrBuilder getEventInputOrBuilder public static final int REPLY_AUDIO_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.v2.OutputAudioConfig replyAudioConfig_; /** - * - * *
    * Speech synthesis configuration.
    * The speech synthesis settings for a virtual agent that may be configured
@@ -403,7 +341,6 @@ public com.google.cloud.dialogflow.v2.EventInputOrBuilder getEventInputOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5; - * * @return Whether the replyAudioConfig field is set. */ @java.lang.Override @@ -411,8 +348,6 @@ public boolean hasReplyAudioConfig() { return replyAudioConfig_ != null; } /** - * - * *
    * Speech synthesis configuration.
    * The speech synthesis settings for a virtual agent that may be configured
@@ -422,18 +357,13 @@ public boolean hasReplyAudioConfig() {
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5; - * * @return The replyAudioConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.OutputAudioConfig getReplyAudioConfig() { - return replyAudioConfig_ == null - ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() - : replyAudioConfig_; + return replyAudioConfig_ == null ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : replyAudioConfig_; } /** - * - * *
    * Speech synthesis configuration.
    * The speech synthesis settings for a virtual agent that may be configured
@@ -452,14 +382,11 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getReplyAudioCo
   public static final int QUERY_PARAMS_FIELD_NUMBER = 9;
   private com.google.cloud.dialogflow.v2.QueryParameters queryParams_;
   /**
-   *
-   *
    * 
    * Parameters for a Dialogflow virtual-agent query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; - * * @return Whether the queryParams field is set. */ @java.lang.Override @@ -467,25 +394,18 @@ public boolean hasQueryParams() { return queryParams_ != null; } /** - * - * *
    * Parameters for a Dialogflow virtual-agent query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; - * * @return The queryParams. */ @java.lang.Override public com.google.cloud.dialogflow.v2.QueryParameters getQueryParams() { - return queryParams_ == null - ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() - : queryParams_; + return queryParams_ == null ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() : queryParams_; } /** - * - * *
    * Parameters for a Dialogflow virtual-agent query.
    * 
@@ -500,8 +420,6 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB public static final int REQUEST_ID_FIELD_NUMBER = 11; private volatile java.lang.Object requestId_; /** - * - * *
    * A unique identifier for this request. Restricted to 36 ASCII characters.
    * A random UUID is recommended.
@@ -509,7 +427,6 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB
    * 
* * string request_id = 11; - * * @return The requestId. */ @java.lang.Override @@ -518,15 +435,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * A unique identifier for this request. Restricted to 36 ASCII characters.
    * A random UUID is recommended.
@@ -534,15 +450,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 11; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -551,7 +468,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -563,7 +479,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParticipantBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, participant_); } @@ -595,20 +512,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, participant_); } if (replyAudioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReplyAudioConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getReplyAudioConfig()); } if (inputCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.dialogflow.v2.TextInput) input_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.dialogflow.v2.TextInput) input_); } if (inputCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.dialogflow.v2.EventInput) input_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.dialogflow.v2.EventInput) input_); } if (queryParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getQueryParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getQueryParams()); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, requestId_); @@ -621,31 +538,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AnalyzeContentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AnalyzeContentRequest other = - (com.google.cloud.dialogflow.v2.AnalyzeContentRequest) obj; + com.google.cloud.dialogflow.v2.AnalyzeContentRequest other = (com.google.cloud.dialogflow.v2.AnalyzeContentRequest) obj; - if (!getParticipant().equals(other.getParticipant())) return false; + if (!getParticipant() + .equals(other.getParticipant())) return false; if (hasReplyAudioConfig() != other.hasReplyAudioConfig()) return false; if (hasReplyAudioConfig()) { - if (!getReplyAudioConfig().equals(other.getReplyAudioConfig())) return false; + if (!getReplyAudioConfig() + .equals(other.getReplyAudioConfig())) return false; } if (hasQueryParams() != other.hasQueryParams()) return false; if (hasQueryParams()) { - if (!getQueryParams().equals(other.getQueryParams())) return false; + if (!getQueryParams() + .equals(other.getQueryParams())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getInputCase().equals(other.getInputCase())) return false; switch (inputCase_) { case 6: - if (!getTextInput().equals(other.getTextInput())) return false; + if (!getTextInput() + .equals(other.getTextInput())) return false; break; case 8: - if (!getEventInput().equals(other.getEventInput())) return false; + if (!getEventInput() + .equals(other.getEventInput())) return false; break; case 0: default: @@ -691,126 +613,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.AnalyzeContentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AnalyzeContentRequest) com.google.cloud.dialogflow.v2.AnalyzeContentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AnalyzeContentRequest.class, - com.google.cloud.dialogflow.v2.AnalyzeContentRequest.Builder.class); + com.google.cloud.dialogflow.v2.AnalyzeContentRequest.class, com.google.cloud.dialogflow.v2.AnalyzeContentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AnalyzeContentRequest.newBuilder() @@ -818,15 +731,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -852,9 +766,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentRequest_descriptor; } @java.lang.Override @@ -873,8 +787,7 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.AnalyzeContentRequest buildPartial() { - com.google.cloud.dialogflow.v2.AnalyzeContentRequest result = - new com.google.cloud.dialogflow.v2.AnalyzeContentRequest(this); + com.google.cloud.dialogflow.v2.AnalyzeContentRequest result = new com.google.cloud.dialogflow.v2.AnalyzeContentRequest(this); result.participant_ = participant_; if (inputCase_ == 6) { if (textInputBuilder_ == null) { @@ -910,39 +823,38 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AnalyzeContentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.AnalyzeContentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.AnalyzeContentRequest)other); } else { super.mergeFrom(other); return this; @@ -950,8 +862,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnalyzeContentRequest other) { - if (other == com.google.cloud.dialogflow.v2.AnalyzeContentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.AnalyzeContentRequest.getDefaultInstance()) return this; if (!other.getParticipant().isEmpty()) { participant_ = other.participant_; onChanged(); @@ -967,20 +878,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnalyzeContentRequest ot onChanged(); } switch (other.getInputCase()) { - case TEXT_INPUT: - { - mergeTextInput(other.getTextInput()); - break; - } - case EVENT_INPUT: - { - mergeEventInput(other.getEventInput()); - break; - } - case INPUT_NOT_SET: - { - break; - } + case TEXT_INPUT: { + mergeTextInput(other.getTextInput()); + break; + } + case EVENT_INPUT: { + mergeEventInput(other.getEventInput()); + break; + } + case INPUT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1001,8 +909,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.AnalyzeContentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.AnalyzeContentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1011,12 +918,12 @@ public Builder mergeFrom( } return this; } - private int inputCase_ = 0; private java.lang.Object input_; - - public InputCase getInputCase() { - return InputCase.forNumber(inputCase_); + public InputCase + getInputCase() { + return InputCase.forNumber( + inputCase_); } public Builder clearInput() { @@ -1026,26 +933,23 @@ public Builder clearInput() { return this; } + private java.lang.Object participant_ = ""; /** - * - * *
      * Required. The name of the participant this text comes from.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
      * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The participant. */ public java.lang.String getParticipant() { java.lang.Object ref = participant_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); participant_ = s; return s; @@ -1054,25 +958,22 @@ public java.lang.String getParticipant() { } } /** - * - * *
      * Required. The name of the participant this text comes from.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
      * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for participant. */ - public com.google.protobuf.ByteString getParticipantBytes() { + public com.google.protobuf.ByteString + getParticipantBytes() { java.lang.Object ref = participant_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); participant_ = b; return b; } else { @@ -1080,92 +981,73 @@ public com.google.protobuf.ByteString getParticipantBytes() { } } /** - * - * *
      * Required. The name of the participant this text comes from.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
      * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The participant to set. * @return This builder for chaining. */ - public Builder setParticipant(java.lang.String value) { + public Builder setParticipant( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + participant_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the participant this text comes from.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
      * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParticipant() { - + participant_ = getDefaultInstance().getParticipant(); onChanged(); return this; } /** - * - * *
      * Required. The name of the participant this text comes from.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
      * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for participant to set. * @return This builder for chaining. */ - public Builder setParticipantBytes(com.google.protobuf.ByteString value) { + public Builder setParticipantBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + participant_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.TextInput, - com.google.cloud.dialogflow.v2.TextInput.Builder, - com.google.cloud.dialogflow.v2.TextInputOrBuilder> - textInputBuilder_; + com.google.cloud.dialogflow.v2.TextInput, com.google.cloud.dialogflow.v2.TextInput.Builder, com.google.cloud.dialogflow.v2.TextInputOrBuilder> textInputBuilder_; /** - * - * *
      * The natural language text to be processed.
      * 
* * .google.cloud.dialogflow.v2.TextInput text_input = 6; - * * @return Whether the textInput field is set. */ @java.lang.Override @@ -1173,14 +1055,11 @@ public boolean hasTextInput() { return inputCase_ == 6; } /** - * - * *
      * The natural language text to be processed.
      * 
* * .google.cloud.dialogflow.v2.TextInput text_input = 6; - * * @return The textInput. */ @java.lang.Override @@ -1198,8 +1077,6 @@ public com.google.cloud.dialogflow.v2.TextInput getTextInput() { } } /** - * - * *
      * The natural language text to be processed.
      * 
@@ -1220,15 +1097,14 @@ public Builder setTextInput(com.google.cloud.dialogflow.v2.TextInput value) { return this; } /** - * - * *
      * The natural language text to be processed.
      * 
* * .google.cloud.dialogflow.v2.TextInput text_input = 6; */ - public Builder setTextInput(com.google.cloud.dialogflow.v2.TextInput.Builder builderForValue) { + public Builder setTextInput( + com.google.cloud.dialogflow.v2.TextInput.Builder builderForValue) { if (textInputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); @@ -1239,8 +1115,6 @@ public Builder setTextInput(com.google.cloud.dialogflow.v2.TextInput.Builder bui return this; } /** - * - * *
      * The natural language text to be processed.
      * 
@@ -1249,13 +1123,10 @@ public Builder setTextInput(com.google.cloud.dialogflow.v2.TextInput.Builder bui */ public Builder mergeTextInput(com.google.cloud.dialogflow.v2.TextInput value) { if (textInputBuilder_ == null) { - if (inputCase_ == 6 - && input_ != com.google.cloud.dialogflow.v2.TextInput.getDefaultInstance()) { - input_ = - com.google.cloud.dialogflow.v2.TextInput.newBuilder( - (com.google.cloud.dialogflow.v2.TextInput) input_) - .mergeFrom(value) - .buildPartial(); + if (inputCase_ == 6 && + input_ != com.google.cloud.dialogflow.v2.TextInput.getDefaultInstance()) { + input_ = com.google.cloud.dialogflow.v2.TextInput.newBuilder((com.google.cloud.dialogflow.v2.TextInput) input_) + .mergeFrom(value).buildPartial(); } else { input_ = value; } @@ -1270,8 +1141,6 @@ public Builder mergeTextInput(com.google.cloud.dialogflow.v2.TextInput value) { return this; } /** - * - * *
      * The natural language text to be processed.
      * 
@@ -1295,8 +1164,6 @@ public Builder clearTextInput() { return this; } /** - * - * *
      * The natural language text to be processed.
      * 
@@ -1307,8 +1174,6 @@ public com.google.cloud.dialogflow.v2.TextInput.Builder getTextInputBuilder() { return getTextInputFieldBuilder().getBuilder(); } /** - * - * *
      * The natural language text to be processed.
      * 
@@ -1327,8 +1192,6 @@ public com.google.cloud.dialogflow.v2.TextInputOrBuilder getTextInputOrBuilder() } } /** - * - * *
      * The natural language text to be processed.
      * 
@@ -1336,44 +1199,32 @@ public com.google.cloud.dialogflow.v2.TextInputOrBuilder getTextInputOrBuilder() * .google.cloud.dialogflow.v2.TextInput text_input = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.TextInput, - com.google.cloud.dialogflow.v2.TextInput.Builder, - com.google.cloud.dialogflow.v2.TextInputOrBuilder> + com.google.cloud.dialogflow.v2.TextInput, com.google.cloud.dialogflow.v2.TextInput.Builder, com.google.cloud.dialogflow.v2.TextInputOrBuilder> getTextInputFieldBuilder() { if (textInputBuilder_ == null) { if (!(inputCase_ == 6)) { input_ = com.google.cloud.dialogflow.v2.TextInput.getDefaultInstance(); } - textInputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.TextInput, - com.google.cloud.dialogflow.v2.TextInput.Builder, - com.google.cloud.dialogflow.v2.TextInputOrBuilder>( + textInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.TextInput, com.google.cloud.dialogflow.v2.TextInput.Builder, com.google.cloud.dialogflow.v2.TextInputOrBuilder>( (com.google.cloud.dialogflow.v2.TextInput) input_, getParentForChildren(), isClean()); input_ = null; } inputCase_ = 6; - onChanged(); - ; + onChanged();; return textInputBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EventInput, - com.google.cloud.dialogflow.v2.EventInput.Builder, - com.google.cloud.dialogflow.v2.EventInputOrBuilder> - eventInputBuilder_; + com.google.cloud.dialogflow.v2.EventInput, com.google.cloud.dialogflow.v2.EventInput.Builder, com.google.cloud.dialogflow.v2.EventInputOrBuilder> eventInputBuilder_; /** - * - * *
      * An input event to send to Dialogflow.
      * 
* * .google.cloud.dialogflow.v2.EventInput event_input = 8; - * * @return Whether the eventInput field is set. */ @java.lang.Override @@ -1381,14 +1232,11 @@ public boolean hasEventInput() { return inputCase_ == 8; } /** - * - * *
      * An input event to send to Dialogflow.
      * 
* * .google.cloud.dialogflow.v2.EventInput event_input = 8; - * * @return The eventInput. */ @java.lang.Override @@ -1406,8 +1254,6 @@ public com.google.cloud.dialogflow.v2.EventInput getEventInput() { } } /** - * - * *
      * An input event to send to Dialogflow.
      * 
@@ -1428,8 +1274,6 @@ public Builder setEventInput(com.google.cloud.dialogflow.v2.EventInput value) { return this; } /** - * - * *
      * An input event to send to Dialogflow.
      * 
@@ -1448,8 +1292,6 @@ public Builder setEventInput( return this; } /** - * - * *
      * An input event to send to Dialogflow.
      * 
@@ -1458,13 +1300,10 @@ public Builder setEventInput( */ public Builder mergeEventInput(com.google.cloud.dialogflow.v2.EventInput value) { if (eventInputBuilder_ == null) { - if (inputCase_ == 8 - && input_ != com.google.cloud.dialogflow.v2.EventInput.getDefaultInstance()) { - input_ = - com.google.cloud.dialogflow.v2.EventInput.newBuilder( - (com.google.cloud.dialogflow.v2.EventInput) input_) - .mergeFrom(value) - .buildPartial(); + if (inputCase_ == 8 && + input_ != com.google.cloud.dialogflow.v2.EventInput.getDefaultInstance()) { + input_ = com.google.cloud.dialogflow.v2.EventInput.newBuilder((com.google.cloud.dialogflow.v2.EventInput) input_) + .mergeFrom(value).buildPartial(); } else { input_ = value; } @@ -1479,8 +1318,6 @@ public Builder mergeEventInput(com.google.cloud.dialogflow.v2.EventInput value) return this; } /** - * - * *
      * An input event to send to Dialogflow.
      * 
@@ -1504,8 +1341,6 @@ public Builder clearEventInput() { return this; } /** - * - * *
      * An input event to send to Dialogflow.
      * 
@@ -1516,8 +1351,6 @@ public com.google.cloud.dialogflow.v2.EventInput.Builder getEventInputBuilder() return getEventInputFieldBuilder().getBuilder(); } /** - * - * *
      * An input event to send to Dialogflow.
      * 
@@ -1536,8 +1369,6 @@ public com.google.cloud.dialogflow.v2.EventInputOrBuilder getEventInputOrBuilder } } /** - * - * *
      * An input event to send to Dialogflow.
      * 
@@ -1545,39 +1376,28 @@ public com.google.cloud.dialogflow.v2.EventInputOrBuilder getEventInputOrBuilder * .google.cloud.dialogflow.v2.EventInput event_input = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EventInput, - com.google.cloud.dialogflow.v2.EventInput.Builder, - com.google.cloud.dialogflow.v2.EventInputOrBuilder> + com.google.cloud.dialogflow.v2.EventInput, com.google.cloud.dialogflow.v2.EventInput.Builder, com.google.cloud.dialogflow.v2.EventInputOrBuilder> getEventInputFieldBuilder() { if (eventInputBuilder_ == null) { if (!(inputCase_ == 8)) { input_ = com.google.cloud.dialogflow.v2.EventInput.getDefaultInstance(); } - eventInputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EventInput, - com.google.cloud.dialogflow.v2.EventInput.Builder, - com.google.cloud.dialogflow.v2.EventInputOrBuilder>( + eventInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.EventInput, com.google.cloud.dialogflow.v2.EventInput.Builder, com.google.cloud.dialogflow.v2.EventInputOrBuilder>( (com.google.cloud.dialogflow.v2.EventInput) input_, getParentForChildren(), isClean()); input_ = null; } inputCase_ = 8; - onChanged(); - ; + onChanged();; return eventInputBuilder_; } private com.google.cloud.dialogflow.v2.OutputAudioConfig replyAudioConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.OutputAudioConfig, - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, - com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> - replyAudioConfigBuilder_; + com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> replyAudioConfigBuilder_; /** - * - * *
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1587,15 +1407,12 @@ public com.google.cloud.dialogflow.v2.EventInputOrBuilder getEventInputOrBuilder
      * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5; - * * @return Whether the replyAudioConfig field is set. */ public boolean hasReplyAudioConfig() { return replyAudioConfigBuilder_ != null || replyAudioConfig_ != null; } /** - * - * *
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1605,21 +1422,16 @@ public boolean hasReplyAudioConfig() {
      * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5; - * * @return The replyAudioConfig. */ public com.google.cloud.dialogflow.v2.OutputAudioConfig getReplyAudioConfig() { if (replyAudioConfigBuilder_ == null) { - return replyAudioConfig_ == null - ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() - : replyAudioConfig_; + return replyAudioConfig_ == null ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : replyAudioConfig_; } else { return replyAudioConfigBuilder_.getMessage(); } } /** - * - * *
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1644,8 +1456,6 @@ public Builder setReplyAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioCon
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1668,8 +1478,6 @@ public Builder setReplyAudioConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1684,9 +1492,7 @@ public Builder mergeReplyAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioC
       if (replyAudioConfigBuilder_ == null) {
         if (replyAudioConfig_ != null) {
           replyAudioConfig_ =
-              com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder(replyAudioConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder(replyAudioConfig_).mergeFrom(value).buildPartial();
         } else {
           replyAudioConfig_ = value;
         }
@@ -1698,8 +1504,6 @@ public Builder mergeReplyAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioC
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1722,8 +1526,6 @@ public Builder clearReplyAudioConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1735,13 +1537,11 @@ public Builder clearReplyAudioConfig() {
      * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      */
     public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getReplyAudioConfigBuilder() {
-
+      
       onChanged();
       return getReplyAudioConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1752,19 +1552,15 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getReplyAudioCon
      *
      * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      */
-    public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder
-        getReplyAudioConfigOrBuilder() {
+    public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getReplyAudioConfigOrBuilder() {
       if (replyAudioConfigBuilder_ != null) {
         return replyAudioConfigBuilder_.getMessageOrBuilder();
       } else {
-        return replyAudioConfig_ == null
-            ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance()
-            : replyAudioConfig_;
+        return replyAudioConfig_ == null ?
+            com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : replyAudioConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Speech synthesis configuration.
      * The speech synthesis settings for a virtual agent that may be configured
@@ -1776,17 +1572,14 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getReplyAudioCon
      * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.OutputAudioConfig,
-            com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
-            com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>
+        com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> 
         getReplyAudioConfigFieldBuilder() {
       if (replyAudioConfigBuilder_ == null) {
-        replyAudioConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.dialogflow.v2.OutputAudioConfig,
-                com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
-                com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>(
-                getReplyAudioConfig(), getParentForChildren(), isClean());
+        replyAudioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>(
+                getReplyAudioConfig(),
+                getParentForChildren(),
+                isClean());
         replyAudioConfig_ = null;
       }
       return replyAudioConfigBuilder_;
@@ -1794,47 +1587,34 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getReplyAudioCon
 
     private com.google.cloud.dialogflow.v2.QueryParameters queryParams_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.QueryParameters,
-            com.google.cloud.dialogflow.v2.QueryParameters.Builder,
-            com.google.cloud.dialogflow.v2.QueryParametersOrBuilder>
-        queryParamsBuilder_;
+        com.google.cloud.dialogflow.v2.QueryParameters, com.google.cloud.dialogflow.v2.QueryParameters.Builder, com.google.cloud.dialogflow.v2.QueryParametersOrBuilder> queryParamsBuilder_;
     /**
-     *
-     *
      * 
      * Parameters for a Dialogflow virtual-agent query.
      * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; - * * @return Whether the queryParams field is set. */ public boolean hasQueryParams() { return queryParamsBuilder_ != null || queryParams_ != null; } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; - * * @return The queryParams. */ public com.google.cloud.dialogflow.v2.QueryParameters getQueryParams() { if (queryParamsBuilder_ == null) { - return queryParams_ == null - ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() - : queryParams_; + return queryParams_ == null ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() : queryParams_; } else { return queryParamsBuilder_.getMessage(); } } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
@@ -1855,8 +1635,6 @@ public Builder setQueryParams(com.google.cloud.dialogflow.v2.QueryParameters val return this; } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
@@ -1875,8 +1653,6 @@ public Builder setQueryParams( return this; } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
@@ -1887,9 +1663,7 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.v2.QueryParameters v if (queryParamsBuilder_ == null) { if (queryParams_ != null) { queryParams_ = - com.google.cloud.dialogflow.v2.QueryParameters.newBuilder(queryParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.QueryParameters.newBuilder(queryParams_).mergeFrom(value).buildPartial(); } else { queryParams_ = value; } @@ -1901,8 +1675,6 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.v2.QueryParameters v return this; } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
@@ -1921,8 +1693,6 @@ public Builder clearQueryParams() { return this; } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
@@ -1930,13 +1700,11 @@ public Builder clearQueryParams() { * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; */ public com.google.cloud.dialogflow.v2.QueryParameters.Builder getQueryParamsBuilder() { - + onChanged(); return getQueryParamsFieldBuilder().getBuilder(); } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
@@ -1947,14 +1715,11 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB if (queryParamsBuilder_ != null) { return queryParamsBuilder_.getMessageOrBuilder(); } else { - return queryParams_ == null - ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() - : queryParams_; + return queryParams_ == null ? + com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() : queryParams_; } } /** - * - * *
      * Parameters for a Dialogflow virtual-agent query.
      * 
@@ -1962,17 +1727,14 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryParameters, - com.google.cloud.dialogflow.v2.QueryParameters.Builder, - com.google.cloud.dialogflow.v2.QueryParametersOrBuilder> + com.google.cloud.dialogflow.v2.QueryParameters, com.google.cloud.dialogflow.v2.QueryParameters.Builder, com.google.cloud.dialogflow.v2.QueryParametersOrBuilder> getQueryParamsFieldBuilder() { if (queryParamsBuilder_ == null) { - queryParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryParameters, - com.google.cloud.dialogflow.v2.QueryParameters.Builder, - com.google.cloud.dialogflow.v2.QueryParametersOrBuilder>( - getQueryParams(), getParentForChildren(), isClean()); + queryParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.QueryParameters, com.google.cloud.dialogflow.v2.QueryParameters.Builder, com.google.cloud.dialogflow.v2.QueryParametersOrBuilder>( + getQueryParams(), + getParentForChildren(), + isClean()); queryParams_ = null; } return queryParamsBuilder_; @@ -1980,8 +1742,6 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB private java.lang.Object requestId_ = ""; /** - * - * *
      * A unique identifier for this request. Restricted to 36 ASCII characters.
      * A random UUID is recommended.
@@ -1989,13 +1749,13 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB
      * 
* * string request_id = 11; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -2004,8 +1764,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * A unique identifier for this request. Restricted to 36 ASCII characters.
      * A random UUID is recommended.
@@ -2013,14 +1771,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 11; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -2028,8 +1787,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * A unique identifier for this request. Restricted to 36 ASCII characters.
      * A random UUID is recommended.
@@ -2037,22 +1794,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 11; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * A unique identifier for this request. Restricted to 36 ASCII characters.
      * A random UUID is recommended.
@@ -2060,18 +1815,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 11; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * A unique identifier for this request. Restricted to 36 ASCII characters.
      * A random UUID is recommended.
@@ -2079,23 +1831,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 11; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2105,12 +1857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AnalyzeContentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AnalyzeContentRequest) private static final com.google.cloud.dialogflow.v2.AnalyzeContentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AnalyzeContentRequest(); } @@ -2119,16 +1871,16 @@ public static com.google.cloud.dialogflow.v2.AnalyzeContentRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeContentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeContentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeContentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalyzeContentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2143,4 +1895,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AnalyzeContentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java index 680131bd3..cf4bb8165 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentRequestOrBuilder.java @@ -1,88 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; -public interface AnalyzeContentRequestOrBuilder - extends +public interface AnalyzeContentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AnalyzeContentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the participant this text comes from.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
    * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The participant. */ java.lang.String getParticipant(); /** - * - * *
    * Required. The name of the participant this text comes from.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
    * 
* - * - * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string participant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for participant. */ - com.google.protobuf.ByteString getParticipantBytes(); + com.google.protobuf.ByteString + getParticipantBytes(); /** - * - * *
    * The natural language text to be processed.
    * 
* * .google.cloud.dialogflow.v2.TextInput text_input = 6; - * * @return Whether the textInput field is set. */ boolean hasTextInput(); /** - * - * *
    * The natural language text to be processed.
    * 
* * .google.cloud.dialogflow.v2.TextInput text_input = 6; - * * @return The textInput. */ com.google.cloud.dialogflow.v2.TextInput getTextInput(); /** - * - * *
    * The natural language text to be processed.
    * 
@@ -92,32 +59,24 @@ public interface AnalyzeContentRequestOrBuilder com.google.cloud.dialogflow.v2.TextInputOrBuilder getTextInputOrBuilder(); /** - * - * *
    * An input event to send to Dialogflow.
    * 
* * .google.cloud.dialogflow.v2.EventInput event_input = 8; - * * @return Whether the eventInput field is set. */ boolean hasEventInput(); /** - * - * *
    * An input event to send to Dialogflow.
    * 
* * .google.cloud.dialogflow.v2.EventInput event_input = 8; - * * @return The eventInput. */ com.google.cloud.dialogflow.v2.EventInput getEventInput(); /** - * - * *
    * An input event to send to Dialogflow.
    * 
@@ -127,8 +86,6 @@ public interface AnalyzeContentRequestOrBuilder com.google.cloud.dialogflow.v2.EventInputOrBuilder getEventInputOrBuilder(); /** - * - * *
    * Speech synthesis configuration.
    * The speech synthesis settings for a virtual agent that may be configured
@@ -138,13 +95,10 @@ public interface AnalyzeContentRequestOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5; - * * @return Whether the replyAudioConfig field is set. */ boolean hasReplyAudioConfig(); /** - * - * *
    * Speech synthesis configuration.
    * The speech synthesis settings for a virtual agent that may be configured
@@ -154,13 +108,10 @@ public interface AnalyzeContentRequestOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig reply_audio_config = 5; - * * @return The replyAudioConfig. */ com.google.cloud.dialogflow.v2.OutputAudioConfig getReplyAudioConfig(); /** - * - * *
    * Speech synthesis configuration.
    * The speech synthesis settings for a virtual agent that may be configured
@@ -174,32 +125,24 @@ public interface AnalyzeContentRequestOrBuilder
   com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getReplyAudioConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Parameters for a Dialogflow virtual-agent query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; - * * @return Whether the queryParams field is set. */ boolean hasQueryParams(); /** - * - * *
    * Parameters for a Dialogflow virtual-agent query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 9; - * * @return The queryParams. */ com.google.cloud.dialogflow.v2.QueryParameters getQueryParams(); /** - * - * *
    * Parameters for a Dialogflow virtual-agent query.
    * 
@@ -209,8 +152,6 @@ public interface AnalyzeContentRequestOrBuilder com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrBuilder(); /** - * - * *
    * A unique identifier for this request. Restricted to 36 ASCII characters.
    * A random UUID is recommended.
@@ -218,13 +159,10 @@ public interface AnalyzeContentRequestOrBuilder
    * 
* * string request_id = 11; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * A unique identifier for this request. Restricted to 36 ASCII characters.
    * A random UUID is recommended.
@@ -232,10 +170,10 @@ public interface AnalyzeContentRequestOrBuilder
    * 
* * string request_id = 11; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); public com.google.cloud.dialogflow.v2.AnalyzeContentRequest.InputCase getInputCase(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java similarity index 76% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java index 8c86064b3..aff83ce3a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentResponse} */ -public final class AnalyzeContentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeContentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AnalyzeContentResponse) AnalyzeContentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeContentResponse.newBuilder() to construct. private AnalyzeContentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeContentResponse() { replyText_ = ""; humanAgentSuggestionResults_ = java.util.Collections.emptyList(); @@ -45,15 +27,16 @@ private AnalyzeContentResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeContentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnalyzeContentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,149 +56,123 @@ private AnalyzeContentResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + replyText_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.OutputAudio.Builder subBuilder = null; + if (replyAudio_ != null) { + subBuilder = replyAudio_.toBuilder(); + } + replyAudio_ = input.readMessage(com.google.cloud.dialogflow.v2.OutputAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(replyAudio_); + replyAudio_ = subBuilder.buildPartial(); + } - replyText_ = s; - break; + break; + } + case 26: { + com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder subBuilder = null; + if (automatedAgentReply_ != null) { + subBuilder = automatedAgentReply_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.OutputAudio.Builder subBuilder = null; - if (replyAudio_ != null) { - subBuilder = replyAudio_.toBuilder(); - } - replyAudio_ = - input.readMessage( - com.google.cloud.dialogflow.v2.OutputAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(replyAudio_); - replyAudio_ = subBuilder.buildPartial(); - } - - break; + automatedAgentReply_ = input.readMessage(com.google.cloud.dialogflow.v2.AutomatedAgentReply.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(automatedAgentReply_); + automatedAgentReply_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder subBuilder = null; - if (automatedAgentReply_ != null) { - subBuilder = automatedAgentReply_.toBuilder(); - } - automatedAgentReply_ = - input.readMessage( - com.google.cloud.dialogflow.v2.AutomatedAgentReply.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(automatedAgentReply_); - automatedAgentReply_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.cloud.dialogflow.v2.Message.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(com.google.cloud.dialogflow.v2.Message.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.dialogflow.v2.Message.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); - } - message_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Message.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + humanAgentSuggestionResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - humanAgentSuggestionResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - humanAgentSuggestionResults_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry)); - break; + humanAgentSuggestionResults_.add( + input.readMessage(com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + endUserSuggestionResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - endUserSuggestionResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - endUserSuggestionResults_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry)); - break; + endUserSuggestionResults_.add( + input.readMessage(com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry)); + break; + } + case 74: { + com.google.cloud.dialogflow.v2.DtmfParameters.Builder subBuilder = null; + if (dtmfParameters_ != null) { + subBuilder = dtmfParameters_.toBuilder(); } - case 74: - { - com.google.cloud.dialogflow.v2.DtmfParameters.Builder subBuilder = null; - if (dtmfParameters_ != null) { - subBuilder = dtmfParameters_.toBuilder(); - } - dtmfParameters_ = - input.readMessage( - com.google.cloud.dialogflow.v2.DtmfParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dtmfParameters_); - dtmfParameters_ = subBuilder.buildPartial(); - } - - break; + dtmfParameters_ = input.readMessage(com.google.cloud.dialogflow.v2.DtmfParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dtmfParameters_); + dtmfParameters_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - humanAgentSuggestionResults_ = - java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); + humanAgentSuggestionResults_ = java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { - endUserSuggestionResults_ = - java.util.Collections.unmodifiableList(endUserSuggestionResults_); + endUserSuggestionResults_ = java.util.Collections.unmodifiableList(endUserSuggestionResults_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, - com.google.cloud.dialogflow.v2.AnalyzeContentResponse.Builder.class); + com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, com.google.cloud.dialogflow.v2.AnalyzeContentResponse.Builder.class); } public static final int REPLY_TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object replyText_; /** - * - * *
    * The output text content.
    * This field is set if the automated agent responded with text to show to
@@ -223,7 +180,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string reply_text = 1; - * * @return The replyText. */ @java.lang.Override @@ -232,15 +188,14 @@ public java.lang.String getReplyText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replyText_ = s; return s; } } /** - * - * *
    * The output text content.
    * This field is set if the automated agent responded with text to show to
@@ -248,15 +203,16 @@ public java.lang.String getReplyText() {
    * 
* * string reply_text = 1; - * * @return The bytes for replyText. */ @java.lang.Override - public com.google.protobuf.ByteString getReplyTextBytes() { + public com.google.protobuf.ByteString + getReplyTextBytes() { java.lang.Object ref = replyText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); replyText_ = b; return b; } else { @@ -267,8 +223,6 @@ public com.google.protobuf.ByteString getReplyTextBytes() { public static final int REPLY_AUDIO_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.OutputAudio replyAudio_; /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * This field is set if:
@@ -282,7 +236,6 @@ public com.google.protobuf.ByteString getReplyTextBytes() {
    * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; - * * @return Whether the replyAudio field is set. */ @java.lang.Override @@ -290,8 +243,6 @@ public boolean hasReplyAudio() { return replyAudio_ != null; } /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * This field is set if:
@@ -305,18 +256,13 @@ public boolean hasReplyAudio() {
    * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; - * * @return The replyAudio. */ @java.lang.Override public com.google.cloud.dialogflow.v2.OutputAudio getReplyAudio() { - return replyAudio_ == null - ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() - : replyAudio_; + return replyAudio_ == null ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() : replyAudio_; } /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * This field is set if:
@@ -339,8 +285,6 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
   public static final int AUTOMATED_AGENT_REPLY_FIELD_NUMBER = 3;
   private com.google.cloud.dialogflow.v2.AutomatedAgentReply automatedAgentReply_;
   /**
-   *
-   *
    * 
    * Only set if a Dialogflow automated agent has responded.
    * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -349,7 +293,6 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; - * * @return Whether the automatedAgentReply field is set. */ @java.lang.Override @@ -357,8 +300,6 @@ public boolean hasAutomatedAgentReply() { return automatedAgentReply_ != null; } /** - * - * *
    * Only set if a Dialogflow automated agent has responded.
    * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -367,18 +308,13 @@ public boolean hasAutomatedAgentReply() {
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; - * * @return The automatedAgentReply. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply() { - return automatedAgentReply_ == null - ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() - : automatedAgentReply_; + return automatedAgentReply_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() : automatedAgentReply_; } /** - * - * *
    * Only set if a Dialogflow automated agent has responded.
    * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -389,22 +325,18 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply
    * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
    */
   @java.lang.Override
-  public com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder
-      getAutomatedAgentReplyOrBuilder() {
+  public com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder() {
     return getAutomatedAgentReply();
   }
 
   public static final int MESSAGE_FIELD_NUMBER = 5;
   private com.google.cloud.dialogflow.v2.Message message_;
   /**
-   *
-   *
    * 
    * Message analyzed by CCAI.
    * 
* * .google.cloud.dialogflow.v2.Message message = 5; - * * @return Whether the message field is set. */ @java.lang.Override @@ -412,25 +344,18 @@ public boolean hasMessage() { return message_ != null; } /** - * - * *
    * Message analyzed by CCAI.
    * 
* * .google.cloud.dialogflow.v2.Message message = 5; - * * @return The message. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Message getMessage() { - return message_ == null - ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() : message_; } /** - * - * *
    * Message analyzed by CCAI.
    * 
@@ -443,189 +368,153 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { } public static final int HUMAN_AGENT_SUGGESTION_RESULTS_FIELD_NUMBER = 6; - private java.util.List - humanAgentSuggestionResults_; + private java.util.List humanAgentSuggestionResults_; /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ @java.lang.Override - public java.util.List - getHumanAgentSuggestionResultsList() { + public java.util.List getHumanAgentSuggestionResultsList() { return humanAgentSuggestionResults_; } /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ @java.lang.Override - public java.util.List + public java.util.List getHumanAgentSuggestionResultsOrBuilderList() { return humanAgentSuggestionResults_; } /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ @java.lang.Override public int getHumanAgentSuggestionResultsCount() { return humanAgentSuggestionResults_.size(); } /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ @java.lang.Override public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionResults(int index) { return humanAgentSuggestionResults_.get(index); } /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder - getHumanAgentSuggestionResultsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder( + int index) { return humanAgentSuggestionResults_.get(index); } public static final int END_USER_SUGGESTION_RESULTS_FIELD_NUMBER = 7; private java.util.List endUserSuggestionResults_; /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ @java.lang.Override - public java.util.List - getEndUserSuggestionResultsList() { + public java.util.List getEndUserSuggestionResultsList() { return endUserSuggestionResults_; } /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ @java.lang.Override - public java.util.List + public java.util.List getEndUserSuggestionResultsOrBuilderList() { return endUserSuggestionResults_; } /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ @java.lang.Override public int getEndUserSuggestionResultsCount() { return endUserSuggestionResults_.size(); } /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ @java.lang.Override public com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResults(int index) { return endUserSuggestionResults_.get(index); } /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder - getEndUserSuggestionResultsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder( + int index) { return endUserSuggestionResults_.get(index); } public static final int DTMF_PARAMETERS_FIELD_NUMBER = 9; private com.google.cloud.dialogflow.v2.DtmfParameters dtmfParameters_; /** - * - * *
    * Indicates the parameters of DTMF.
    * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; - * * @return Whether the dtmfParameters field is set. */ @java.lang.Override @@ -633,25 +522,18 @@ public boolean hasDtmfParameters() { return dtmfParameters_ != null; } /** - * - * *
    * Indicates the parameters of DTMF.
    * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; - * * @return The dtmfParameters. */ @java.lang.Override public com.google.cloud.dialogflow.v2.DtmfParameters getDtmfParameters() { - return dtmfParameters_ == null - ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() - : dtmfParameters_; + return dtmfParameters_ == null ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() : dtmfParameters_; } /** - * - * *
    * Indicates the parameters of DTMF.
    * 
@@ -664,7 +546,6 @@ public com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder getDtmfParametersO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -676,7 +557,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getReplyTextBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replyText_); } @@ -711,26 +593,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replyText_); } if (replyAudio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReplyAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReplyAudio()); } if (automatedAgentReply_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutomatedAgentReply()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAutomatedAgentReply()); } if (message_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMessage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMessage()); } for (int i = 0; i < humanAgentSuggestionResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, humanAgentSuggestionResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, humanAgentSuggestionResults_.get(i)); } for (int i = 0; i < endUserSuggestionResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, endUserSuggestionResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, endUserSuggestionResults_.get(i)); } if (dtmfParameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDtmfParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDtmfParameters()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -740,34 +624,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AnalyzeContentResponse)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AnalyzeContentResponse other = - (com.google.cloud.dialogflow.v2.AnalyzeContentResponse) obj; + com.google.cloud.dialogflow.v2.AnalyzeContentResponse other = (com.google.cloud.dialogflow.v2.AnalyzeContentResponse) obj; - if (!getReplyText().equals(other.getReplyText())) return false; + if (!getReplyText() + .equals(other.getReplyText())) return false; if (hasReplyAudio() != other.hasReplyAudio()) return false; if (hasReplyAudio()) { - if (!getReplyAudio().equals(other.getReplyAudio())) return false; + if (!getReplyAudio() + .equals(other.getReplyAudio())) return false; } if (hasAutomatedAgentReply() != other.hasAutomatedAgentReply()) return false; if (hasAutomatedAgentReply()) { - if (!getAutomatedAgentReply().equals(other.getAutomatedAgentReply())) return false; + if (!getAutomatedAgentReply() + .equals(other.getAutomatedAgentReply())) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; } - if (!getHumanAgentSuggestionResultsList().equals(other.getHumanAgentSuggestionResultsList())) - return false; - if (!getEndUserSuggestionResultsList().equals(other.getEndUserSuggestionResultsList())) - return false; + if (!getHumanAgentSuggestionResultsList() + .equals(other.getHumanAgentSuggestionResultsList())) return false; + if (!getEndUserSuggestionResultsList() + .equals(other.getEndUserSuggestionResultsList())) return false; if (hasDtmfParameters() != other.hasDtmfParameters()) return false; if (hasDtmfParameters()) { - if (!getDtmfParameters().equals(other.getDtmfParameters())) return false; + if (!getDtmfParameters() + .equals(other.getDtmfParameters())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -812,127 +700,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.AnalyzeContentResponse prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.AnalyzeContentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AnalyzeContentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AnalyzeContentResponse) com.google.cloud.dialogflow.v2.AnalyzeContentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, - com.google.cloud.dialogflow.v2.AnalyzeContentResponse.Builder.class); + com.google.cloud.dialogflow.v2.AnalyzeContentResponse.class, com.google.cloud.dialogflow.v2.AnalyzeContentResponse.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AnalyzeContentResponse.newBuilder() @@ -940,18 +818,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHumanAgentSuggestionResultsFieldBuilder(); getEndUserSuggestionResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -997,9 +875,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnalyzeContentResponse_descriptor; } @java.lang.Override @@ -1018,8 +896,7 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse build() { @java.lang.Override public com.google.cloud.dialogflow.v2.AnalyzeContentResponse buildPartial() { - com.google.cloud.dialogflow.v2.AnalyzeContentResponse result = - new com.google.cloud.dialogflow.v2.AnalyzeContentResponse(this); + com.google.cloud.dialogflow.v2.AnalyzeContentResponse result = new com.google.cloud.dialogflow.v2.AnalyzeContentResponse(this); int from_bitField0_ = bitField0_; result.replyText_ = replyText_; if (replyAudioBuilder_ == null) { @@ -1039,8 +916,7 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse buildPartial() { } if (humanAgentSuggestionResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - humanAgentSuggestionResults_ = - java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); + humanAgentSuggestionResults_ = java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); bitField0_ = (bitField0_ & ~0x00000001); } result.humanAgentSuggestionResults_ = humanAgentSuggestionResults_; @@ -1049,8 +925,7 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse buildPartial() { } if (endUserSuggestionResultsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { - endUserSuggestionResults_ = - java.util.Collections.unmodifiableList(endUserSuggestionResults_); + endUserSuggestionResults_ = java.util.Collections.unmodifiableList(endUserSuggestionResults_); bitField0_ = (bitField0_ & ~0x00000002); } result.endUserSuggestionResults_ = endUserSuggestionResults_; @@ -1070,39 +945,38 @@ public com.google.cloud.dialogflow.v2.AnalyzeContentResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AnalyzeContentResponse) { - return mergeFrom((com.google.cloud.dialogflow.v2.AnalyzeContentResponse) other); + return mergeFrom((com.google.cloud.dialogflow.v2.AnalyzeContentResponse)other); } else { super.mergeFrom(other); return this; @@ -1110,8 +984,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnalyzeContentResponse other) { - if (other == com.google.cloud.dialogflow.v2.AnalyzeContentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.AnalyzeContentResponse.getDefaultInstance()) return this; if (!other.getReplyText().isEmpty()) { replyText_ = other.replyText_; onChanged(); @@ -1143,10 +1016,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnalyzeContentResponse o humanAgentSuggestionResultsBuilder_ = null; humanAgentSuggestionResults_ = other.humanAgentSuggestionResults_; bitField0_ = (bitField0_ & ~0x00000001); - humanAgentSuggestionResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHumanAgentSuggestionResultsFieldBuilder() - : null; + humanAgentSuggestionResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHumanAgentSuggestionResultsFieldBuilder() : null; } else { humanAgentSuggestionResultsBuilder_.addAllMessages(other.humanAgentSuggestionResults_); } @@ -1170,10 +1042,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnalyzeContentResponse o endUserSuggestionResultsBuilder_ = null; endUserSuggestionResults_ = other.endUserSuggestionResults_; bitField0_ = (bitField0_ & ~0x00000002); - endUserSuggestionResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEndUserSuggestionResultsFieldBuilder() - : null; + endUserSuggestionResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEndUserSuggestionResultsFieldBuilder() : null; } else { endUserSuggestionResultsBuilder_.addAllMessages(other.endUserSuggestionResults_); } @@ -1201,8 +1072,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.AnalyzeContentResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.AnalyzeContentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1211,13 +1081,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object replyText_ = ""; /** - * - * *
      * The output text content.
      * This field is set if the automated agent responded with text to show to
@@ -1225,13 +1092,13 @@ public Builder mergeFrom(
      * 
* * string reply_text = 1; - * * @return The replyText. */ public java.lang.String getReplyText() { java.lang.Object ref = replyText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replyText_ = s; return s; @@ -1240,8 +1107,6 @@ public java.lang.String getReplyText() { } } /** - * - * *
      * The output text content.
      * This field is set if the automated agent responded with text to show to
@@ -1249,14 +1114,15 @@ public java.lang.String getReplyText() {
      * 
* * string reply_text = 1; - * * @return The bytes for replyText. */ - public com.google.protobuf.ByteString getReplyTextBytes() { + public com.google.protobuf.ByteString + getReplyTextBytes() { java.lang.Object ref = replyText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); replyText_ = b; return b; } else { @@ -1264,8 +1130,6 @@ public com.google.protobuf.ByteString getReplyTextBytes() { } } /** - * - * *
      * The output text content.
      * This field is set if the automated agent responded with text to show to
@@ -1273,22 +1137,20 @@ public com.google.protobuf.ByteString getReplyTextBytes() {
      * 
* * string reply_text = 1; - * * @param value The replyText to set. * @return This builder for chaining. */ - public Builder setReplyText(java.lang.String value) { + public Builder setReplyText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + replyText_ = value; onChanged(); return this; } /** - * - * *
      * The output text content.
      * This field is set if the automated agent responded with text to show to
@@ -1296,18 +1158,15 @@ public Builder setReplyText(java.lang.String value) {
      * 
* * string reply_text = 1; - * * @return This builder for chaining. */ public Builder clearReplyText() { - + replyText_ = getDefaultInstance().getReplyText(); onChanged(); return this; } /** - * - * *
      * The output text content.
      * This field is set if the automated agent responded with text to show to
@@ -1315,16 +1174,16 @@ public Builder clearReplyText() {
      * 
* * string reply_text = 1; - * * @param value The bytes for replyText to set. * @return This builder for chaining. */ - public Builder setReplyTextBytes(com.google.protobuf.ByteString value) { + public Builder setReplyTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replyText_ = value; onChanged(); return this; @@ -1332,13 +1191,8 @@ public Builder setReplyTextBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.OutputAudio replyAudio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.OutputAudio, - com.google.cloud.dialogflow.v2.OutputAudio.Builder, - com.google.cloud.dialogflow.v2.OutputAudioOrBuilder> - replyAudioBuilder_; + com.google.cloud.dialogflow.v2.OutputAudio, com.google.cloud.dialogflow.v2.OutputAudio.Builder, com.google.cloud.dialogflow.v2.OutputAudioOrBuilder> replyAudioBuilder_; /** - * - * *
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1352,15 +1206,12 @@ public Builder setReplyTextBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; - * * @return Whether the replyAudio field is set. */ public boolean hasReplyAudio() { return replyAudioBuilder_ != null || replyAudio_ != null; } /** - * - * *
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1374,21 +1225,16 @@ public boolean hasReplyAudio() {
      * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; - * * @return The replyAudio. */ public com.google.cloud.dialogflow.v2.OutputAudio getReplyAudio() { if (replyAudioBuilder_ == null) { - return replyAudio_ == null - ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() - : replyAudio_; + return replyAudio_ == null ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() : replyAudio_; } else { return replyAudioBuilder_.getMessage(); } } /** - * - * *
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1417,8 +1263,6 @@ public Builder setReplyAudio(com.google.cloud.dialogflow.v2.OutputAudio value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1445,8 +1289,6 @@ public Builder setReplyAudio(
       return this;
     }
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1465,9 +1307,7 @@ public Builder mergeReplyAudio(com.google.cloud.dialogflow.v2.OutputAudio value)
       if (replyAudioBuilder_ == null) {
         if (replyAudio_ != null) {
           replyAudio_ =
-              com.google.cloud.dialogflow.v2.OutputAudio.newBuilder(replyAudio_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.dialogflow.v2.OutputAudio.newBuilder(replyAudio_).mergeFrom(value).buildPartial();
         } else {
           replyAudio_ = value;
         }
@@ -1479,8 +1319,6 @@ public Builder mergeReplyAudio(com.google.cloud.dialogflow.v2.OutputAudio value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1507,8 +1345,6 @@ public Builder clearReplyAudio() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1524,13 +1360,11 @@ public Builder clearReplyAudio() {
      * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2;
      */
     public com.google.cloud.dialogflow.v2.OutputAudio.Builder getReplyAudioBuilder() {
-
+      
       onChanged();
       return getReplyAudioFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1549,14 +1383,11 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
       if (replyAudioBuilder_ != null) {
         return replyAudioBuilder_.getMessageOrBuilder();
       } else {
-        return replyAudio_ == null
-            ? com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance()
-            : replyAudio_;
+        return replyAudio_ == null ?
+            com.google.cloud.dialogflow.v2.OutputAudio.getDefaultInstance() : replyAudio_;
       }
     }
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in the request.
      * This field is set if:
@@ -1572,17 +1403,14 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
      * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.OutputAudio,
-            com.google.cloud.dialogflow.v2.OutputAudio.Builder,
-            com.google.cloud.dialogflow.v2.OutputAudioOrBuilder>
+        com.google.cloud.dialogflow.v2.OutputAudio, com.google.cloud.dialogflow.v2.OutputAudio.Builder, com.google.cloud.dialogflow.v2.OutputAudioOrBuilder> 
         getReplyAudioFieldBuilder() {
       if (replyAudioBuilder_ == null) {
-        replyAudioBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.dialogflow.v2.OutputAudio,
-                com.google.cloud.dialogflow.v2.OutputAudio.Builder,
-                com.google.cloud.dialogflow.v2.OutputAudioOrBuilder>(
-                getReplyAudio(), getParentForChildren(), isClean());
+        replyAudioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.dialogflow.v2.OutputAudio, com.google.cloud.dialogflow.v2.OutputAudio.Builder, com.google.cloud.dialogflow.v2.OutputAudioOrBuilder>(
+                getReplyAudio(),
+                getParentForChildren(),
+                isClean());
         replyAudio_ = null;
       }
       return replyAudioBuilder_;
@@ -1590,13 +1418,8 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
 
     private com.google.cloud.dialogflow.v2.AutomatedAgentReply automatedAgentReply_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.AutomatedAgentReply,
-            com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder,
-            com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder>
-        automatedAgentReplyBuilder_;
+        com.google.cloud.dialogflow.v2.AutomatedAgentReply, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder> automatedAgentReplyBuilder_;
     /**
-     *
-     *
      * 
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1605,15 +1428,12 @@ public com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilde
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; - * * @return Whether the automatedAgentReply field is set. */ public boolean hasAutomatedAgentReply() { return automatedAgentReplyBuilder_ != null || automatedAgentReply_ != null; } /** - * - * *
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1622,21 +1442,16 @@ public boolean hasAutomatedAgentReply() {
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; - * * @return The automatedAgentReply. */ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply() { if (automatedAgentReplyBuilder_ == null) { - return automatedAgentReply_ == null - ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() - : automatedAgentReply_; + return automatedAgentReply_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() : automatedAgentReply_; } else { return automatedAgentReplyBuilder_.getMessage(); } } /** - * - * *
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1646,8 +1461,7 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply
      *
      * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
      */
-    public Builder setAutomatedAgentReply(
-        com.google.cloud.dialogflow.v2.AutomatedAgentReply value) {
+    public Builder setAutomatedAgentReply(com.google.cloud.dialogflow.v2.AutomatedAgentReply value) {
       if (automatedAgentReplyBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1661,8 +1475,6 @@ public Builder setAutomatedAgentReply(
       return this;
     }
     /**
-     *
-     *
      * 
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1684,8 +1496,6 @@ public Builder setAutomatedAgentReply(
       return this;
     }
     /**
-     *
-     *
      * 
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1695,14 +1505,11 @@ public Builder setAutomatedAgentReply(
      *
      * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
      */
-    public Builder mergeAutomatedAgentReply(
-        com.google.cloud.dialogflow.v2.AutomatedAgentReply value) {
+    public Builder mergeAutomatedAgentReply(com.google.cloud.dialogflow.v2.AutomatedAgentReply value) {
       if (automatedAgentReplyBuilder_ == null) {
         if (automatedAgentReply_ != null) {
           automatedAgentReply_ =
-              com.google.cloud.dialogflow.v2.AutomatedAgentReply.newBuilder(automatedAgentReply_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.dialogflow.v2.AutomatedAgentReply.newBuilder(automatedAgentReply_).mergeFrom(value).buildPartial();
         } else {
           automatedAgentReply_ = value;
         }
@@ -1714,8 +1521,6 @@ public Builder mergeAutomatedAgentReply(
       return this;
     }
     /**
-     *
-     *
      * 
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1737,8 +1542,6 @@ public Builder clearAutomatedAgentReply() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1748,15 +1551,12 @@ public Builder clearAutomatedAgentReply() {
      *
      * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
      */
-    public com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder
-        getAutomatedAgentReplyBuilder() {
-
+    public com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder getAutomatedAgentReplyBuilder() {
+      
       onChanged();
       return getAutomatedAgentReplyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1766,19 +1566,15 @@ public Builder clearAutomatedAgentReply() {
      *
      * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
      */
-    public com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder
-        getAutomatedAgentReplyOrBuilder() {
+    public com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder() {
       if (automatedAgentReplyBuilder_ != null) {
         return automatedAgentReplyBuilder_.getMessageOrBuilder();
       } else {
-        return automatedAgentReply_ == null
-            ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance()
-            : automatedAgentReply_;
+        return automatedAgentReply_ == null ?
+            com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance() : automatedAgentReply_;
       }
     }
     /**
-     *
-     *
      * 
      * Only set if a Dialogflow automated agent has responded.
      * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -1789,17 +1585,14 @@ public Builder clearAutomatedAgentReply() {
      * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.AutomatedAgentReply,
-            com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder,
-            com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder>
+        com.google.cloud.dialogflow.v2.AutomatedAgentReply, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder> 
         getAutomatedAgentReplyFieldBuilder() {
       if (automatedAgentReplyBuilder_ == null) {
-        automatedAgentReplyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.dialogflow.v2.AutomatedAgentReply,
-                com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder,
-                com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder>(
-                getAutomatedAgentReply(), getParentForChildren(), isClean());
+        automatedAgentReplyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.dialogflow.v2.AutomatedAgentReply, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder>(
+                getAutomatedAgentReply(),
+                getParentForChildren(),
+                isClean());
         automatedAgentReply_ = null;
       }
       return automatedAgentReplyBuilder_;
@@ -1807,47 +1600,34 @@ public Builder clearAutomatedAgentReply() {
 
     private com.google.cloud.dialogflow.v2.Message message_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.Message,
-            com.google.cloud.dialogflow.v2.Message.Builder,
-            com.google.cloud.dialogflow.v2.MessageOrBuilder>
-        messageBuilder_;
+        com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder> messageBuilder_;
     /**
-     *
-     *
      * 
      * Message analyzed by CCAI.
      * 
* * .google.cloud.dialogflow.v2.Message message = 5; - * * @return Whether the message field is set. */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** - * - * *
      * Message analyzed by CCAI.
      * 
* * .google.cloud.dialogflow.v2.Message message = 5; - * * @return The message. */ public com.google.cloud.dialogflow.v2.Message getMessage() { if (messageBuilder_ == null) { - return message_ == null - ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** - * - * *
      * Message analyzed by CCAI.
      * 
@@ -1868,15 +1648,14 @@ public Builder setMessage(com.google.cloud.dialogflow.v2.Message value) { return this; } /** - * - * *
      * Message analyzed by CCAI.
      * 
* * .google.cloud.dialogflow.v2.Message message = 5; */ - public Builder setMessage(com.google.cloud.dialogflow.v2.Message.Builder builderForValue) { + public Builder setMessage( + com.google.cloud.dialogflow.v2.Message.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); onChanged(); @@ -1887,8 +1666,6 @@ public Builder setMessage(com.google.cloud.dialogflow.v2.Message.Builder builder return this; } /** - * - * *
      * Message analyzed by CCAI.
      * 
@@ -1899,9 +1676,7 @@ public Builder mergeMessage(com.google.cloud.dialogflow.v2.Message value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = - com.google.cloud.dialogflow.v2.Message.newBuilder(message_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Message.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -1913,8 +1688,6 @@ public Builder mergeMessage(com.google.cloud.dialogflow.v2.Message value) { return this; } /** - * - * *
      * Message analyzed by CCAI.
      * 
@@ -1933,8 +1706,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * Message analyzed by CCAI.
      * 
@@ -1942,13 +1713,11 @@ public Builder clearMessage() { * .google.cloud.dialogflow.v2.Message message = 5; */ public com.google.cloud.dialogflow.v2.Message.Builder getMessageBuilder() { - + onChanged(); return getMessageFieldBuilder().getBuilder(); } /** - * - * *
      * Message analyzed by CCAI.
      * 
@@ -1959,14 +1728,11 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_ == null - ? com.google.cloud.dialogflow.v2.Message.getDefaultInstance() - : message_; + return message_ == null ? + com.google.cloud.dialogflow.v2.Message.getDefaultInstance() : message_; } } /** - * - * *
      * Message analyzed by CCAI.
      * 
@@ -1974,55 +1740,41 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder() { * .google.cloud.dialogflow.v2.Message message = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Message, - com.google.cloud.dialogflow.v2.Message.Builder, - com.google.cloud.dialogflow.v2.MessageOrBuilder> + com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Message, - com.google.cloud.dialogflow.v2.Message.Builder, - com.google.cloud.dialogflow.v2.MessageOrBuilder>( - getMessage(), getParentForChildren(), isClean()); + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); message_ = null; } return messageBuilder_; } - private java.util.List - humanAgentSuggestionResults_ = java.util.Collections.emptyList(); - + private java.util.List humanAgentSuggestionResults_ = + java.util.Collections.emptyList(); private void ensureHumanAgentSuggestionResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - humanAgentSuggestionResults_ = - new java.util.ArrayList( - humanAgentSuggestionResults_); + humanAgentSuggestionResults_ = new java.util.ArrayList(humanAgentSuggestionResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> - humanAgentSuggestionResultsBuilder_; + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> humanAgentSuggestionResultsBuilder_; /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public java.util.List - getHumanAgentSuggestionResultsList() { + public java.util.List getHumanAgentSuggestionResultsList() { if (humanAgentSuggestionResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(humanAgentSuggestionResults_); } else { @@ -2030,17 +1782,13 @@ private void ensureHumanAgentSuggestionResultsIsMutable() { } } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public int getHumanAgentSuggestionResultsCount() { if (humanAgentSuggestionResultsBuilder_ == null) { @@ -2050,20 +1798,15 @@ public int getHumanAgentSuggestionResultsCount() { } } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionResults( - int index) { + public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionResults(int index) { if (humanAgentSuggestionResultsBuilder_ == null) { return humanAgentSuggestionResults_.get(index); } else { @@ -2071,17 +1814,13 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionRe } } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder setHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { @@ -2098,17 +1837,13 @@ public Builder setHumanAgentSuggestionResults( return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder setHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { @@ -2122,20 +1857,15 @@ public Builder setHumanAgentSuggestionResults( return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public Builder addHumanAgentSuggestionResults( - com.google.cloud.dialogflow.v2.SuggestionResult value) { + public Builder addHumanAgentSuggestionResults(com.google.cloud.dialogflow.v2.SuggestionResult value) { if (humanAgentSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2149,17 +1879,13 @@ public Builder addHumanAgentSuggestionResults( return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder addHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { @@ -2176,17 +1902,13 @@ public Builder addHumanAgentSuggestionResults( return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder addHumanAgentSuggestionResults( com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { @@ -2200,17 +1922,13 @@ public Builder addHumanAgentSuggestionResults( return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder addHumanAgentSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { @@ -2224,17 +1942,13 @@ public Builder addHumanAgentSuggestionResults( return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder addAllHumanAgentSuggestionResults( java.lang.Iterable values) { @@ -2249,17 +1963,13 @@ public Builder addAllHumanAgentSuggestionResults( return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder clearHumanAgentSuggestionResults() { if (humanAgentSuggestionResultsBuilder_ == null) { @@ -2272,17 +1982,13 @@ public Builder clearHumanAgentSuggestionResults() { return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ public Builder removeHumanAgentSuggestionResults(int index) { if (humanAgentSuggestionResultsBuilder_ == null) { @@ -2295,58 +2001,45 @@ public Builder removeHumanAgentSuggestionResults(int index) { return this; } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public com.google.cloud.dialogflow.v2.SuggestionResult.Builder - getHumanAgentSuggestionResultsBuilder(int index) { + public com.google.cloud.dialogflow.v2.SuggestionResult.Builder getHumanAgentSuggestionResultsBuilder( + int index) { return getHumanAgentSuggestionResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder - getHumanAgentSuggestionResultsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder( + int index) { if (humanAgentSuggestionResultsBuilder_ == null) { - return humanAgentSuggestionResults_.get(index); - } else { + return humanAgentSuggestionResults_.get(index); } else { return humanAgentSuggestionResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public java.util.List - getHumanAgentSuggestionResultsOrBuilderList() { + public java.util.List + getHumanAgentSuggestionResultsOrBuilderList() { if (humanAgentSuggestionResultsBuilder_ != null) { return humanAgentSuggestionResultsBuilder_.getMessageOrBuilderList(); } else { @@ -2354,70 +2047,51 @@ public Builder removeHumanAgentSuggestionResults(int index) { } } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public com.google.cloud.dialogflow.v2.SuggestionResult.Builder - addHumanAgentSuggestionResultsBuilder() { - return getHumanAgentSuggestionResultsFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addHumanAgentSuggestionResultsBuilder() { + return getHumanAgentSuggestionResultsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public com.google.cloud.dialogflow.v2.SuggestionResult.Builder - addHumanAgentSuggestionResultsBuilder(int index) { - return getHumanAgentSuggestionResultsFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addHumanAgentSuggestionResultsBuilder( + int index) { + return getHumanAgentSuggestionResultsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** - * - * *
      * The suggestions for most recent human agent. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
      * 
* - * - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - public java.util.List - getHumanAgentSuggestionResultsBuilderList() { + public java.util.List + getHumanAgentSuggestionResultsBuilderList() { return getHumanAgentSuggestionResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> getHumanAgentSuggestionResultsFieldBuilder() { if (humanAgentSuggestionResultsBuilder_ == null) { - humanAgentSuggestionResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( + humanAgentSuggestionResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( humanAgentSuggestionResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2427,38 +2101,28 @@ public Builder removeHumanAgentSuggestionResults(int index) { return humanAgentSuggestionResultsBuilder_; } - private java.util.List - endUserSuggestionResults_ = java.util.Collections.emptyList(); - + private java.util.List endUserSuggestionResults_ = + java.util.Collections.emptyList(); private void ensureEndUserSuggestionResultsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - endUserSuggestionResults_ = - new java.util.ArrayList( - endUserSuggestionResults_); + endUserSuggestionResults_ = new java.util.ArrayList(endUserSuggestionResults_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> - endUserSuggestionResultsBuilder_; + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> endUserSuggestionResultsBuilder_; /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public java.util.List - getEndUserSuggestionResultsList() { + public java.util.List getEndUserSuggestionResultsList() { if (endUserSuggestionResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(endUserSuggestionResults_); } else { @@ -2466,16 +2130,13 @@ private void ensureEndUserSuggestionResultsIsMutable() { } } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public int getEndUserSuggestionResultsCount() { if (endUserSuggestionResultsBuilder_ == null) { @@ -2485,16 +2146,13 @@ public int getEndUserSuggestionResultsCount() { } } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResults(int index) { if (endUserSuggestionResultsBuilder_ == null) { @@ -2504,16 +2162,13 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResul } } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder setEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { @@ -2530,16 +2185,13 @@ public Builder setEndUserSuggestionResults( return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder setEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { @@ -2553,19 +2205,15 @@ public Builder setEndUserSuggestionResults( return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public Builder addEndUserSuggestionResults( - com.google.cloud.dialogflow.v2.SuggestionResult value) { + public Builder addEndUserSuggestionResults(com.google.cloud.dialogflow.v2.SuggestionResult value) { if (endUserSuggestionResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2579,16 +2227,13 @@ public Builder addEndUserSuggestionResults( return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder addEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult value) { @@ -2605,16 +2250,13 @@ public Builder addEndUserSuggestionResults( return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder addEndUserSuggestionResults( com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { @@ -2628,16 +2270,13 @@ public Builder addEndUserSuggestionResults( return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder addEndUserSuggestionResults( int index, com.google.cloud.dialogflow.v2.SuggestionResult.Builder builderForValue) { @@ -2651,22 +2290,20 @@ public Builder addEndUserSuggestionResults( return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder addAllEndUserSuggestionResults( java.lang.Iterable values) { if (endUserSuggestionResultsBuilder_ == null) { ensureEndUserSuggestionResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endUserSuggestionResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endUserSuggestionResults_); onChanged(); } else { endUserSuggestionResultsBuilder_.addAllMessages(values); @@ -2674,16 +2311,13 @@ public Builder addAllEndUserSuggestionResults( return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder clearEndUserSuggestionResults() { if (endUserSuggestionResultsBuilder_ == null) { @@ -2696,16 +2330,13 @@ public Builder clearEndUserSuggestionResults() { return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ public Builder removeEndUserSuggestionResults(int index) { if (endUserSuggestionResultsBuilder_ == null) { @@ -2718,55 +2349,45 @@ public Builder removeEndUserSuggestionResults(int index) { return this; } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public com.google.cloud.dialogflow.v2.SuggestionResult.Builder - getEndUserSuggestionResultsBuilder(int index) { + public com.google.cloud.dialogflow.v2.SuggestionResult.Builder getEndUserSuggestionResultsBuilder( + int index) { return getEndUserSuggestionResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder - getEndUserSuggestionResultsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder( + int index) { if (endUserSuggestionResultsBuilder_ == null) { - return endUserSuggestionResults_.get(index); - } else { + return endUserSuggestionResults_.get(index); } else { return endUserSuggestionResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public java.util.List - getEndUserSuggestionResultsOrBuilderList() { + public java.util.List + getEndUserSuggestionResultsOrBuilderList() { if (endUserSuggestionResultsBuilder_ != null) { return endUserSuggestionResultsBuilder_.getMessageOrBuilderList(); } else { @@ -2774,67 +2395,51 @@ public Builder removeEndUserSuggestionResults(int index) { } } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public com.google.cloud.dialogflow.v2.SuggestionResult.Builder - addEndUserSuggestionResultsBuilder() { - return getEndUserSuggestionResultsFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addEndUserSuggestionResultsBuilder() { + return getEndUserSuggestionResultsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public com.google.cloud.dialogflow.v2.SuggestionResult.Builder - addEndUserSuggestionResultsBuilder(int index) { - return getEndUserSuggestionResultsFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addEndUserSuggestionResultsBuilder( + int index) { + return getEndUserSuggestionResultsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** - * - * *
      * The suggestions for end user. The order is the same as
      * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
      * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
      * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - public java.util.List - getEndUserSuggestionResultsBuilderList() { + public java.util.List + getEndUserSuggestionResultsBuilderList() { return getEndUserSuggestionResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> getEndUserSuggestionResultsFieldBuilder() { if (endUserSuggestionResultsBuilder_ == null) { - endUserSuggestionResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( + endUserSuggestionResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( endUserSuggestionResults_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2846,47 +2451,34 @@ public Builder removeEndUserSuggestionResults(int index) { private com.google.cloud.dialogflow.v2.DtmfParameters dtmfParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.DtmfParameters, - com.google.cloud.dialogflow.v2.DtmfParameters.Builder, - com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder> - dtmfParametersBuilder_; + com.google.cloud.dialogflow.v2.DtmfParameters, com.google.cloud.dialogflow.v2.DtmfParameters.Builder, com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder> dtmfParametersBuilder_; /** - * - * *
      * Indicates the parameters of DTMF.
      * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; - * * @return Whether the dtmfParameters field is set. */ public boolean hasDtmfParameters() { return dtmfParametersBuilder_ != null || dtmfParameters_ != null; } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; - * * @return The dtmfParameters. */ public com.google.cloud.dialogflow.v2.DtmfParameters getDtmfParameters() { if (dtmfParametersBuilder_ == null) { - return dtmfParameters_ == null - ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() - : dtmfParameters_; + return dtmfParameters_ == null ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() : dtmfParameters_; } else { return dtmfParametersBuilder_.getMessage(); } } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
@@ -2907,8 +2499,6 @@ public Builder setDtmfParameters(com.google.cloud.dialogflow.v2.DtmfParameters v return this; } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
@@ -2927,8 +2517,6 @@ public Builder setDtmfParameters( return this; } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
@@ -2939,9 +2527,7 @@ public Builder mergeDtmfParameters(com.google.cloud.dialogflow.v2.DtmfParameters if (dtmfParametersBuilder_ == null) { if (dtmfParameters_ != null) { dtmfParameters_ = - com.google.cloud.dialogflow.v2.DtmfParameters.newBuilder(dtmfParameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.DtmfParameters.newBuilder(dtmfParameters_).mergeFrom(value).buildPartial(); } else { dtmfParameters_ = value; } @@ -2953,8 +2539,6 @@ public Builder mergeDtmfParameters(com.google.cloud.dialogflow.v2.DtmfParameters return this; } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
@@ -2973,8 +2557,6 @@ public Builder clearDtmfParameters() { return this; } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
@@ -2982,13 +2564,11 @@ public Builder clearDtmfParameters() { * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ public com.google.cloud.dialogflow.v2.DtmfParameters.Builder getDtmfParametersBuilder() { - + onChanged(); return getDtmfParametersFieldBuilder().getBuilder(); } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
@@ -2999,14 +2579,11 @@ public com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder getDtmfParametersO if (dtmfParametersBuilder_ != null) { return dtmfParametersBuilder_.getMessageOrBuilder(); } else { - return dtmfParameters_ == null - ? com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() - : dtmfParameters_; + return dtmfParameters_ == null ? + com.google.cloud.dialogflow.v2.DtmfParameters.getDefaultInstance() : dtmfParameters_; } } /** - * - * *
      * Indicates the parameters of DTMF.
      * 
@@ -3014,24 +2591,21 @@ public com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder getDtmfParametersO * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.DtmfParameters, - com.google.cloud.dialogflow.v2.DtmfParameters.Builder, - com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder> + com.google.cloud.dialogflow.v2.DtmfParameters, com.google.cloud.dialogflow.v2.DtmfParameters.Builder, com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder> getDtmfParametersFieldBuilder() { if (dtmfParametersBuilder_ == null) { - dtmfParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.DtmfParameters, - com.google.cloud.dialogflow.v2.DtmfParameters.Builder, - com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder>( - getDtmfParameters(), getParentForChildren(), isClean()); + dtmfParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.DtmfParameters, com.google.cloud.dialogflow.v2.DtmfParameters.Builder, com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder>( + getDtmfParameters(), + getParentForChildren(), + isClean()); dtmfParameters_ = null; } return dtmfParametersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3041,12 +2615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AnalyzeContentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AnalyzeContentResponse) private static final com.google.cloud.dialogflow.v2.AnalyzeContentResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AnalyzeContentResponse(); } @@ -3055,16 +2629,16 @@ public static com.google.cloud.dialogflow.v2.AnalyzeContentResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeContentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeContentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeContentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalyzeContentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3079,4 +2653,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AnalyzeContentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java similarity index 88% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java index cd38d619f..dfbb686ea 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnalyzeContentResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; -public interface AnalyzeContentResponseOrBuilder - extends +public interface AnalyzeContentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AnalyzeContentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The output text content.
    * This field is set if the automated agent responded with text to show to
@@ -33,13 +15,10 @@ public interface AnalyzeContentResponseOrBuilder
    * 
* * string reply_text = 1; - * * @return The replyText. */ java.lang.String getReplyText(); /** - * - * *
    * The output text content.
    * This field is set if the automated agent responded with text to show to
@@ -47,14 +26,12 @@ public interface AnalyzeContentResponseOrBuilder
    * 
* * string reply_text = 1; - * * @return The bytes for replyText. */ - com.google.protobuf.ByteString getReplyTextBytes(); + com.google.protobuf.ByteString + getReplyTextBytes(); /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * This field is set if:
@@ -68,13 +45,10 @@ public interface AnalyzeContentResponseOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; - * * @return Whether the replyAudio field is set. */ boolean hasReplyAudio(); /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * This field is set if:
@@ -88,13 +62,10 @@ public interface AnalyzeContentResponseOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudio reply_audio = 2; - * * @return The replyAudio. */ com.google.cloud.dialogflow.v2.OutputAudio getReplyAudio(); /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * This field is set if:
@@ -112,8 +83,6 @@ public interface AnalyzeContentResponseOrBuilder
   com.google.cloud.dialogflow.v2.OutputAudioOrBuilder getReplyAudioOrBuilder();
 
   /**
-   *
-   *
    * 
    * Only set if a Dialogflow automated agent has responded.
    * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -122,13 +91,10 @@ public interface AnalyzeContentResponseOrBuilder
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; - * * @return Whether the automatedAgentReply field is set. */ boolean hasAutomatedAgentReply(); /** - * - * *
    * Only set if a Dialogflow automated agent has responded.
    * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -137,13 +103,10 @@ public interface AnalyzeContentResponseOrBuilder
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentReply automated_agent_reply = 3; - * * @return The automatedAgentReply. */ com.google.cloud.dialogflow.v2.AutomatedAgentReply getAutomatedAgentReply(); /** - * - * *
    * Only set if a Dialogflow automated agent has responded.
    * Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
@@ -156,32 +119,24 @@ public interface AnalyzeContentResponseOrBuilder
   com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder getAutomatedAgentReplyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Message analyzed by CCAI.
    * 
* * .google.cloud.dialogflow.v2.Message message = 5; - * * @return Whether the message field is set. */ boolean hasMessage(); /** - * - * *
    * Message analyzed by CCAI.
    * 
* * .google.cloud.dialogflow.v2.Message message = 5; - * * @return The message. */ com.google.cloud.dialogflow.v2.Message getMessage(); /** - * - * *
    * Message analyzed by CCAI.
    * 
@@ -191,169 +146,132 @@ public interface AnalyzeContentResponseOrBuilder com.google.cloud.dialogflow.v2.MessageOrBuilder getMessageOrBuilder(); /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - java.util.List + java.util.List getHumanAgentSuggestionResultsList(); /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ com.google.cloud.dialogflow.v2.SuggestionResult getHumanAgentSuggestionResults(int index); /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ int getHumanAgentSuggestionResultsCount(); /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ - java.util.List + java.util.List getHumanAgentSuggestionResultsOrBuilderList(); /** - * - * *
    * The suggestions for most recent human agent. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult human_agent_suggestion_results = 6; */ com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getHumanAgentSuggestionResultsOrBuilder( int index); /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - java.util.List getEndUserSuggestionResultsList(); + java.util.List + getEndUserSuggestionResultsList(); /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ com.google.cloud.dialogflow.v2.SuggestionResult getEndUserSuggestionResults(int index); /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ int getEndUserSuggestionResultsCount(); /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ - java.util.List + java.util.List getEndUserSuggestionResultsOrBuilderList(); /** - * - * *
    * The suggestions for end user. The order is the same as
    * [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
    * [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
    * 
* - * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; - * + * repeated .google.cloud.dialogflow.v2.SuggestionResult end_user_suggestion_results = 7; */ com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getEndUserSuggestionResultsOrBuilder( int index); /** - * - * *
    * Indicates the parameters of DTMF.
    * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; - * * @return Whether the dtmfParameters field is set. */ boolean hasDtmfParameters(); /** - * - * *
    * Indicates the parameters of DTMF.
    * 
* * .google.cloud.dialogflow.v2.DtmfParameters dtmf_parameters = 9; - * * @return The dtmfParameters. */ com.google.cloud.dialogflow.v2.DtmfParameters getDtmfParameters(); /** - * - * *
    * Indicates the parameters of DTMF.
    * 
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePart.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePart.java similarity index 74% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePart.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePart.java index 4d9038c95..9c29d0c69 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePart.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePart.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents a part of a message possibly annotated with an entity. The part
  * can be an entity or purely a part of the message between two entities or
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.AnnotatedMessagePart}
  */
-public final class AnnotatedMessagePart extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotatedMessagePart extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AnnotatedMessagePart)
     AnnotatedMessagePartOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotatedMessagePart.newBuilder() to construct.
   private AnnotatedMessagePart(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotatedMessagePart() {
     text_ = "";
     entityType_ = "";
@@ -46,15 +28,16 @@ private AnnotatedMessagePart() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotatedMessagePart();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotatedMessagePart(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,80 +56,71 @@ private AnnotatedMessagePart(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              text_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            text_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              entityType_ = s;
-              break;
+            entityType_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Value.Builder subBuilder = null;
+            if (formattedValue_ != null) {
+              subBuilder = formattedValue_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Value.Builder subBuilder = null;
-              if (formattedValue_ != null) {
-                subBuilder = formattedValue_.toBuilder();
-              }
-              formattedValue_ =
-                  input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(formattedValue_);
-                formattedValue_ = subBuilder.buildPartial();
-              }
-
-              break;
+            formattedValue_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(formattedValue_);
+              formattedValue_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.ParticipantProto
-        .internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.ParticipantProto
-        .internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.AnnotatedMessagePart.class,
-            com.google.cloud.dialogflow.v2.AnnotatedMessagePart.Builder.class);
+            com.google.cloud.dialogflow.v2.AnnotatedMessagePart.class, com.google.cloud.dialogflow.v2.AnnotatedMessagePart.Builder.class);
   }
 
   public static final int TEXT_FIELD_NUMBER = 1;
   private volatile java.lang.Object text_;
   /**
-   *
-   *
    * 
    * A part of a message possibly annotated with an entity.
    * 
* * string text = 1; - * * @return The text. */ @java.lang.Override @@ -155,29 +129,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
    * A part of a message possibly annotated with an entity.
    * 
* * string text = 1; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -188,8 +162,6 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int ENTITY_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object entityType_; /** - * - * *
    * The [Dialogflow system entity
    * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -198,7 +170,6 @@ public com.google.protobuf.ByteString getTextBytes() {
    * 
* * string entity_type = 2; - * * @return The entityType. */ @java.lang.Override @@ -207,15 +178,14 @@ public java.lang.String getEntityType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityType_ = s; return s; } } /** - * - * *
    * The [Dialogflow system entity
    * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -224,15 +194,16 @@ public java.lang.String getEntityType() {
    * 
* * string entity_type = 2; - * * @return The bytes for entityType. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityTypeBytes() { + public com.google.protobuf.ByteString + getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityType_ = b; return b; } else { @@ -243,8 +214,6 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { public static final int FORMATTED_VALUE_FIELD_NUMBER = 3; private com.google.protobuf.Value formattedValue_; /** - * - * *
    * The [Dialogflow system entity formatted value
    * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -259,7 +228,6 @@ public com.google.protobuf.ByteString getEntityTypeBytes() {
    * 
* * .google.protobuf.Value formatted_value = 3; - * * @return Whether the formattedValue field is set. */ @java.lang.Override @@ -267,8 +235,6 @@ public boolean hasFormattedValue() { return formattedValue_ != null; } /** - * - * *
    * The [Dialogflow system entity formatted value
    * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -283,18 +249,13 @@ public boolean hasFormattedValue() {
    * 
* * .google.protobuf.Value formatted_value = 3; - * * @return The formattedValue. */ @java.lang.Override public com.google.protobuf.Value getFormattedValue() { - return formattedValue_ == null - ? com.google.protobuf.Value.getDefaultInstance() - : formattedValue_; + return formattedValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : formattedValue_; } /** - * - * *
    * The [Dialogflow system entity formatted value
    * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -316,7 +277,6 @@ public com.google.protobuf.ValueOrBuilder getFormattedValueOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -328,7 +288,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!getTextBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
     }
@@ -354,7 +315,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityType_);
     }
     if (formattedValue_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFormattedValue());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getFormattedValue());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -364,19 +326,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.dialogflow.v2.AnnotatedMessagePart)) {
       return super.equals(obj);
     }
-    com.google.cloud.dialogflow.v2.AnnotatedMessagePart other =
-        (com.google.cloud.dialogflow.v2.AnnotatedMessagePart) obj;
+    com.google.cloud.dialogflow.v2.AnnotatedMessagePart other = (com.google.cloud.dialogflow.v2.AnnotatedMessagePart) obj;
 
-    if (!getText().equals(other.getText())) return false;
-    if (!getEntityType().equals(other.getEntityType())) return false;
+    if (!getText()
+        .equals(other.getText())) return false;
+    if (!getEntityType()
+        .equals(other.getEntityType())) return false;
     if (hasFormattedValue() != other.hasFormattedValue()) return false;
     if (hasFormattedValue()) {
-      if (!getFormattedValue().equals(other.getFormattedValue())) return false;
+      if (!getFormattedValue()
+          .equals(other.getFormattedValue())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -403,103 +367,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.dialogflow.v2.AnnotatedMessagePart prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Represents a part of a message possibly annotated with an entity. The part
    * can be an entity or purely a part of the message between two entities or
@@ -508,23 +465,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.AnnotatedMessagePart}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AnnotatedMessagePart)
       com.google.cloud.dialogflow.v2.AnnotatedMessagePartOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.ParticipantProto
-          .internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.ParticipantProto
-          .internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.AnnotatedMessagePart.class,
-              com.google.cloud.dialogflow.v2.AnnotatedMessagePart.Builder.class);
+              com.google.cloud.dialogflow.v2.AnnotatedMessagePart.class, com.google.cloud.dialogflow.v2.AnnotatedMessagePart.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.AnnotatedMessagePart.newBuilder()
@@ -532,15 +487,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -558,9 +514,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.ParticipantProto
-          .internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AnnotatedMessagePart_descriptor;
     }
 
     @java.lang.Override
@@ -579,8 +535,7 @@ public com.google.cloud.dialogflow.v2.AnnotatedMessagePart build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.AnnotatedMessagePart buildPartial() {
-      com.google.cloud.dialogflow.v2.AnnotatedMessagePart result =
-          new com.google.cloud.dialogflow.v2.AnnotatedMessagePart(this);
+      com.google.cloud.dialogflow.v2.AnnotatedMessagePart result = new com.google.cloud.dialogflow.v2.AnnotatedMessagePart(this);
       result.text_ = text_;
       result.entityType_ = entityType_;
       if (formattedValueBuilder_ == null) {
@@ -596,39 +551,38 @@ public com.google.cloud.dialogflow.v2.AnnotatedMessagePart buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.AnnotatedMessagePart) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.AnnotatedMessagePart) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.AnnotatedMessagePart)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -636,8 +590,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnnotatedMessagePart other) {
-      if (other == com.google.cloud.dialogflow.v2.AnnotatedMessagePart.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dialogflow.v2.AnnotatedMessagePart.getDefaultInstance()) return this;
       if (!other.getText().isEmpty()) {
         text_ = other.text_;
         onChanged();
@@ -668,8 +621,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.dialogflow.v2.AnnotatedMessagePart) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.dialogflow.v2.AnnotatedMessagePart) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -681,20 +633,18 @@ public Builder mergeFrom(
 
     private java.lang.Object text_ = "";
     /**
-     *
-     *
      * 
      * A part of a message possibly annotated with an entity.
      * 
* * string text = 1; - * * @return The text. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -703,21 +653,20 @@ public java.lang.String getText() { } } /** - * - * *
      * A part of a message possibly annotated with an entity.
      * 
* * string text = 1; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -725,61 +674,54 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * A part of a message possibly annotated with an entity.
      * 
* * string text = 1; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
      * A part of a message possibly annotated with an entity.
      * 
* * string text = 1; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
      * A part of a message possibly annotated with an entity.
      * 
* * string text = 1; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; @@ -787,8 +729,6 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityType_ = ""; /** - * - * *
      * The [Dialogflow system entity
      * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -797,13 +737,13 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string entity_type = 2; - * * @return The entityType. */ public java.lang.String getEntityType() { java.lang.Object ref = entityType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityType_ = s; return s; @@ -812,8 +752,6 @@ public java.lang.String getEntityType() { } } /** - * - * *
      * The [Dialogflow system entity
      * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -822,14 +760,15 @@ public java.lang.String getEntityType() {
      * 
* * string entity_type = 2; - * * @return The bytes for entityType. */ - public com.google.protobuf.ByteString getEntityTypeBytes() { + public com.google.protobuf.ByteString + getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityType_ = b; return b; } else { @@ -837,8 +776,6 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } } /** - * - * *
      * The [Dialogflow system entity
      * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -847,22 +784,20 @@ public com.google.protobuf.ByteString getEntityTypeBytes() {
      * 
* * string entity_type = 2; - * * @param value The entityType to set. * @return This builder for chaining. */ - public Builder setEntityType(java.lang.String value) { + public Builder setEntityType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityType_ = value; onChanged(); return this; } /** - * - * *
      * The [Dialogflow system entity
      * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -871,18 +806,15 @@ public Builder setEntityType(java.lang.String value) {
      * 
* * string entity_type = 2; - * * @return This builder for chaining. */ public Builder clearEntityType() { - + entityType_ = getDefaultInstance().getEntityType(); onChanged(); return this; } /** - * - * *
      * The [Dialogflow system entity
      * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -891,16 +823,16 @@ public Builder clearEntityType() {
      * 
* * string entity_type = 2; - * * @param value The bytes for entityType to set. * @return This builder for chaining. */ - public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + public Builder setEntityTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityType_ = value; onChanged(); return this; @@ -908,13 +840,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Value formattedValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder> - formattedValueBuilder_; + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> formattedValueBuilder_; /** - * - * *
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -929,15 +856,12 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Value formatted_value = 3; - * * @return Whether the formattedValue field is set. */ public boolean hasFormattedValue() { return formattedValueBuilder_ != null || formattedValue_ != null; } /** - * - * *
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -952,21 +876,16 @@ public boolean hasFormattedValue() {
      * 
* * .google.protobuf.Value formatted_value = 3; - * * @return The formattedValue. */ public com.google.protobuf.Value getFormattedValue() { if (formattedValueBuilder_ == null) { - return formattedValue_ == null - ? com.google.protobuf.Value.getDefaultInstance() - : formattedValue_; + return formattedValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : formattedValue_; } else { return formattedValueBuilder_.getMessage(); } } /** - * - * *
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -996,8 +915,6 @@ public Builder setFormattedValue(com.google.protobuf.Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -1013,7 +930,8 @@ public Builder setFormattedValue(com.google.protobuf.Value value) {
      *
      * .google.protobuf.Value formatted_value = 3;
      */
-    public Builder setFormattedValue(com.google.protobuf.Value.Builder builderForValue) {
+    public Builder setFormattedValue(
+        com.google.protobuf.Value.Builder builderForValue) {
       if (formattedValueBuilder_ == null) {
         formattedValue_ = builderForValue.build();
         onChanged();
@@ -1024,8 +942,6 @@ public Builder setFormattedValue(com.google.protobuf.Value.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -1045,7 +961,7 @@ public Builder mergeFormattedValue(com.google.protobuf.Value value) {
       if (formattedValueBuilder_ == null) {
         if (formattedValue_ != null) {
           formattedValue_ =
-              com.google.protobuf.Value.newBuilder(formattedValue_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Value.newBuilder(formattedValue_).mergeFrom(value).buildPartial();
         } else {
           formattedValue_ = value;
         }
@@ -1057,8 +973,6 @@ public Builder mergeFormattedValue(com.google.protobuf.Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -1086,8 +1000,6 @@ public Builder clearFormattedValue() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -1104,13 +1016,11 @@ public Builder clearFormattedValue() {
      * .google.protobuf.Value formatted_value = 3;
      */
     public com.google.protobuf.Value.Builder getFormattedValueBuilder() {
-
+      
       onChanged();
       return getFormattedValueFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -1130,14 +1040,11 @@ public com.google.protobuf.ValueOrBuilder getFormattedValueOrBuilder() {
       if (formattedValueBuilder_ != null) {
         return formattedValueBuilder_.getMessageOrBuilder();
       } else {
-        return formattedValue_ == null
-            ? com.google.protobuf.Value.getDefaultInstance()
-            : formattedValue_;
+        return formattedValue_ == null ?
+            com.google.protobuf.Value.getDefaultInstance() : formattedValue_;
       }
     }
     /**
-     *
-     *
      * 
      * The [Dialogflow system entity formatted value
      * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -1154,24 +1061,21 @@ public com.google.protobuf.ValueOrBuilder getFormattedValueOrBuilder() {
      * .google.protobuf.Value formatted_value = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Value,
-            com.google.protobuf.Value.Builder,
-            com.google.protobuf.ValueOrBuilder>
+        com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> 
         getFormattedValueFieldBuilder() {
       if (formattedValueBuilder_ == null) {
-        formattedValueBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Value,
-                com.google.protobuf.Value.Builder,
-                com.google.protobuf.ValueOrBuilder>(
-                getFormattedValue(), getParentForChildren(), isClean());
+        formattedValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
+                getFormattedValue(),
+                getParentForChildren(),
+                isClean());
         formattedValue_ = null;
       }
       return formattedValueBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1181,12 +1085,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AnnotatedMessagePart)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AnnotatedMessagePart)
   private static final com.google.cloud.dialogflow.v2.AnnotatedMessagePart DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AnnotatedMessagePart();
   }
@@ -1195,16 +1099,16 @@ public static com.google.cloud.dialogflow.v2.AnnotatedMessagePart getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnnotatedMessagePart parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnnotatedMessagePart(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnnotatedMessagePart parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnnotatedMessagePart(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1219,4 +1123,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.dialogflow.v2.AnnotatedMessagePart getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePartOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePartOrBuilder.java
similarity index 77%
rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePartOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePartOrBuilder.java
index 1fc88d94a..eb250a836 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePartOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnnotatedMessagePartOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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/participant.proto
 
 package com.google.cloud.dialogflow.v2;
 
-public interface AnnotatedMessagePartOrBuilder
-    extends
+public interface AnnotatedMessagePartOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AnnotatedMessagePart)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A part of a message possibly annotated with an entity.
    * 
* * string text = 1; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * A part of a message possibly annotated with an entity.
    * 
* * string text = 1; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * The [Dialogflow system entity
    * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -59,13 +36,10 @@ public interface AnnotatedMessagePartOrBuilder
    * 
* * string entity_type = 2; - * * @return The entityType. */ java.lang.String getEntityType(); /** - * - * *
    * The [Dialogflow system entity
    * type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
@@ -74,14 +48,12 @@ public interface AnnotatedMessagePartOrBuilder
    * 
* * string entity_type = 2; - * * @return The bytes for entityType. */ - com.google.protobuf.ByteString getEntityTypeBytes(); + com.google.protobuf.ByteString + getEntityTypeBytes(); /** - * - * *
    * The [Dialogflow system entity formatted value
    * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -96,13 +68,10 @@ public interface AnnotatedMessagePartOrBuilder
    * 
* * .google.protobuf.Value formatted_value = 3; - * * @return Whether the formattedValue field is set. */ boolean hasFormattedValue(); /** - * - * *
    * The [Dialogflow system entity formatted value
    * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
@@ -117,13 +86,10 @@ public interface AnnotatedMessagePartOrBuilder
    * 
* * .google.protobuf.Value formatted_value = 3; - * * @return The formattedValue. */ com.google.protobuf.Value getFormattedValue(); /** - * - * *
    * The [Dialogflow system entity formatted value
    * ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedback.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedback.java
similarity index 70%
rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedback.java
rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedback.java
index 2ad2092d2..642bc3d05 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedback.java
+++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedback.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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/answer_record.proto
 
 package com.google.cloud.dialogflow.v2;
 
 /**
- *
- *
  * 
  * Represents feedback the customer has about the quality & correctness of a
  * certain answer in a conversation.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.AnswerFeedback}
  */
-public final class AnswerFeedback extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnswerFeedback extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AnswerFeedback)
     AnswerFeedbackOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnswerFeedback.newBuilder() to construct.
   private AnswerFeedback(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnswerFeedback() {
     correctnessLevel_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnswerFeedback();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnswerFeedback(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,120 +54,104 @@ private AnswerFeedback(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              correctnessLevel_ = rawValue;
-              break;
+            correctnessLevel_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder subBuilder = null;
+            if (detailFeedbackCase_ == 2) {
+              subBuilder = ((com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_).toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder subBuilder = null;
-              if (detailFeedbackCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_)
-                        .toBuilder();
-              }
-              detailFeedback_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.AgentAssistantFeedback.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_);
-                detailFeedback_ = subBuilder.buildPartial();
-              }
-              detailFeedbackCase_ = 2;
-              break;
+            detailFeedback_ =
+                input.readMessage(com.google.cloud.dialogflow.v2.AgentAssistantFeedback.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_);
+              detailFeedback_ = subBuilder.buildPartial();
             }
-          case 24:
-            {
-              clicked_ = input.readBool();
-              break;
+            detailFeedbackCase_ = 2;
+            break;
+          }
+          case 24: {
+
+            clicked_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            displayed_ = input.readBool();
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (clickTime_ != null) {
+              subBuilder = clickTime_.toBuilder();
             }
-          case 32:
-            {
-              displayed_ = input.readBool();
-              break;
+            clickTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(clickTime_);
+              clickTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (clickTime_ != null) {
-                subBuilder = clickTime_.toBuilder();
-              }
-              clickTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(clickTime_);
-                clickTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 50: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (displayTime_ != null) {
+              subBuilder = displayTime_.toBuilder();
             }
-          case 50:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (displayTime_ != null) {
-                subBuilder = displayTime_.toBuilder();
-              }
-              displayTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(displayTime_);
-                displayTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            displayTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(displayTime_);
+              displayTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-        .internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-        .internal_static_google_cloud_dialogflow_v2_AnswerFeedback_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerFeedback_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.AnswerFeedback.class,
-            com.google.cloud.dialogflow.v2.AnswerFeedback.Builder.class);
+            com.google.cloud.dialogflow.v2.AnswerFeedback.class, com.google.cloud.dialogflow.v2.AnswerFeedback.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The correctness level of an answer.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel} */ - public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum { + public enum CorrectnessLevel + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Correctness level unspecified.
      * 
@@ -193,8 +160,6 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum */ CORRECTNESS_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Answer is totally wrong.
      * 
@@ -203,8 +168,6 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum */ NOT_CORRECT(1), /** - * - * *
      * Answer is partially correct.
      * 
@@ -213,8 +176,6 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum */ PARTIALLY_CORRECT(2), /** - * - * *
      * Answer is fully correct.
      * 
@@ -226,8 +187,6 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Correctness level unspecified.
      * 
@@ -236,8 +195,6 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum */ public static final int CORRECTNESS_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Answer is totally wrong.
      * 
@@ -246,8 +203,6 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum */ public static final int NOT_CORRECT_VALUE = 1; /** - * - * *
      * Answer is partially correct.
      * 
@@ -256,8 +211,6 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum */ public static final int PARTIALLY_CORRECT_VALUE = 2; /** - * - * *
      * Answer is fully correct.
      * 
@@ -266,6 +219,7 @@ public enum CorrectnessLevel implements com.google.protobuf.ProtocolMessageEnum */ public static final int FULLY_CORRECT_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -290,44 +244,40 @@ public static CorrectnessLevel valueOf(int value) { */ public static CorrectnessLevel forNumber(int value) { switch (value) { - case 0: - return CORRECTNESS_LEVEL_UNSPECIFIED; - case 1: - return NOT_CORRECT; - case 2: - return PARTIALLY_CORRECT; - case 3: - return FULLY_CORRECT; - default: - return null; + case 0: return CORRECTNESS_LEVEL_UNSPECIFIED; + case 1: return NOT_CORRECT; + case 2: return PARTIALLY_CORRECT; + case 3: return FULLY_CORRECT; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + CorrectnessLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CorrectnessLevel findValueByNumber(int number) { + return CorrectnessLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CorrectnessLevel findValueByNumber(int number) { - return CorrectnessLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.dialogflow.v2.AnswerFeedback.getDescriptor().getEnumTypes().get(0); } @@ -336,7 +286,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static CorrectnessLevel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -355,15 +306,12 @@ private CorrectnessLevel(int value) { private int detailFeedbackCase_ = 0; private java.lang.Object detailFeedback_; - public enum DetailFeedbackCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AGENT_ASSISTANT_DETAIL_FEEDBACK(2), DETAILFEEDBACK_NOT_SET(0); private final int value; - private DetailFeedbackCase(int value) { this.value = value; } @@ -379,73 +327,56 @@ public static DetailFeedbackCase valueOf(int value) { public static DetailFeedbackCase forNumber(int value) { switch (value) { - case 2: - return AGENT_ASSISTANT_DETAIL_FEEDBACK; - case 0: - return DETAILFEEDBACK_NOT_SET; - default: - return null; + case 2: return AGENT_ASSISTANT_DETAIL_FEEDBACK; + case 0: return DETAILFEEDBACK_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DetailFeedbackCase getDetailFeedbackCase() { - return DetailFeedbackCase.forNumber(detailFeedbackCase_); + public DetailFeedbackCase + getDetailFeedbackCase() { + return DetailFeedbackCase.forNumber( + detailFeedbackCase_); } public static final int CORRECTNESS_LEVEL_FIELD_NUMBER = 1; private int correctnessLevel_; /** - * - * *
    * The correctness level of the specific answer.
    * 
* * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * * @return The enum numeric value on the wire for correctnessLevel. */ - @java.lang.Override - public int getCorrectnessLevelValue() { + @java.lang.Override public int getCorrectnessLevelValue() { return correctnessLevel_; } /** - * - * *
    * The correctness level of the specific answer.
    * 
* * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * * @return The correctnessLevel. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel getCorrectnessLevel() { + @java.lang.Override public com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel getCorrectnessLevel() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel result = - com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.valueOf(correctnessLevel_); - return result == null - ? com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel result = com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.valueOf(correctnessLevel_); + return result == null ? com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.UNRECOGNIZED : result; } public static final int AGENT_ASSISTANT_DETAIL_FEEDBACK_FIELD_NUMBER = 2; /** - * - * *
    * Detail feedback of agent assist suggestions.
    * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; * @return Whether the agentAssistantDetailFeedback field is set. */ @java.lang.Override @@ -453,39 +384,31 @@ public boolean hasAgentAssistantDetailFeedback() { return detailFeedbackCase_ == 2; } /** - * - * *
    * Detail feedback of agent assist suggestions.
    * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; * @return The agentAssistantDetailFeedback. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantFeedback getAgentAssistantDetailFeedback() { if (detailFeedbackCase_ == 2) { - return (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_; + return (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_; } return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance(); } /** - * - * *
    * Detail feedback of agent assist suggestions.
    * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder - getAgentAssistantDetailFeedbackOrBuilder() { + public com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder getAgentAssistantDetailFeedbackOrBuilder() { if (detailFeedbackCase_ == 2) { - return (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_; + return (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_; } return com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance(); } @@ -493,15 +416,12 @@ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback getAgentAssistantDe public static final int CLICKED_FIELD_NUMBER = 3; private boolean clicked_; /** - * - * *
    * Indicates whether the answer/item was clicked by the human agent
    * or not. Default to false.
    * 
* * bool clicked = 3; - * * @return The clicked. */ @java.lang.Override @@ -512,14 +432,11 @@ public boolean getClicked() { public static final int CLICK_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp clickTime_; /** - * - * *
    * Time when the answer/item was clicked.
    * 
* * .google.protobuf.Timestamp click_time = 5; - * * @return Whether the clickTime field is set. */ @java.lang.Override @@ -527,14 +444,11 @@ public boolean hasClickTime() { return clickTime_ != null; } /** - * - * *
    * Time when the answer/item was clicked.
    * 
* * .google.protobuf.Timestamp click_time = 5; - * * @return The clickTime. */ @java.lang.Override @@ -542,8 +456,6 @@ public com.google.protobuf.Timestamp getClickTime() { return clickTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : clickTime_; } /** - * - * *
    * Time when the answer/item was clicked.
    * 
@@ -558,15 +470,12 @@ public com.google.protobuf.TimestampOrBuilder getClickTimeOrBuilder() { public static final int DISPLAYED_FIELD_NUMBER = 4; private boolean displayed_; /** - * - * *
    * Indicates whether the answer/item was displayed to the human
    * agent in the agent desktop UI. Default to false.
    * 
* * bool displayed = 4; - * * @return The displayed. */ @java.lang.Override @@ -577,14 +486,11 @@ public boolean getDisplayed() { public static final int DISPLAY_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp displayTime_; /** - * - * *
    * Time when the answer/item was displayed.
    * 
* * .google.protobuf.Timestamp display_time = 6; - * * @return Whether the displayTime field is set. */ @java.lang.Override @@ -592,14 +498,11 @@ public boolean hasDisplayTime() { return displayTime_ != null; } /** - * - * *
    * Time when the answer/item was displayed.
    * 
* * .google.protobuf.Timestamp display_time = 6; - * * @return The displayTime. */ @java.lang.Override @@ -607,8 +510,6 @@ public com.google.protobuf.Timestamp getDisplayTime() { return displayTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : displayTime_; } /** - * - * *
    * Time when the answer/item was displayed.
    * 
@@ -621,7 +522,6 @@ public com.google.protobuf.TimestampOrBuilder getDisplayTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -633,16 +533,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (correctnessLevel_ - != com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel - .CORRECTNESS_LEVEL_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (correctnessLevel_ != com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.CORRECTNESS_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(1, correctnessLevel_); } if (detailFeedbackCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_); + output.writeMessage(2, (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_); } if (clicked_ != false) { output.writeBool(3, clicked_); @@ -665,28 +562,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (correctnessLevel_ - != com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel - .CORRECTNESS_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, correctnessLevel_); + if (correctnessLevel_ != com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.CORRECTNESS_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, correctnessLevel_); } if (detailFeedbackCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_); } if (clicked_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, clicked_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, clicked_); } if (displayed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, displayed_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, displayed_); } if (clickTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getClickTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getClickTime()); } if (displayTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDisplayTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDisplayTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -696,30 +594,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AnswerFeedback)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AnswerFeedback other = - (com.google.cloud.dialogflow.v2.AnswerFeedback) obj; + com.google.cloud.dialogflow.v2.AnswerFeedback other = (com.google.cloud.dialogflow.v2.AnswerFeedback) obj; if (correctnessLevel_ != other.correctnessLevel_) return false; - if (getClicked() != other.getClicked()) return false; + if (getClicked() + != other.getClicked()) return false; if (hasClickTime() != other.hasClickTime()) return false; if (hasClickTime()) { - if (!getClickTime().equals(other.getClickTime())) return false; + if (!getClickTime() + .equals(other.getClickTime())) return false; } - if (getDisplayed() != other.getDisplayed()) return false; + if (getDisplayed() + != other.getDisplayed()) return false; if (hasDisplayTime() != other.hasDisplayTime()) return false; if (hasDisplayTime()) { - if (!getDisplayTime().equals(other.getDisplayTime())) return false; + if (!getDisplayTime() + .equals(other.getDisplayTime())) return false; } if (!getDetailFeedbackCase().equals(other.getDetailFeedbackCase())) return false; switch (detailFeedbackCase_) { case 2: - if (!getAgentAssistantDetailFeedback().equals(other.getAgentAssistantDetailFeedback())) - return false; + if (!getAgentAssistantDetailFeedback() + .equals(other.getAgentAssistantDetailFeedback())) return false; break; case 0: default: @@ -738,13 +639,15 @@ public int hashCode() { hash = (37 * hash) + CORRECTNESS_LEVEL_FIELD_NUMBER; hash = (53 * hash) + correctnessLevel_; hash = (37 * hash) + CLICKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClicked()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClicked()); if (hasClickTime()) { hash = (37 * hash) + CLICK_TIME_FIELD_NUMBER; hash = (53 * hash) + getClickTime().hashCode(); } hash = (37 * hash) + DISPLAYED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisplayed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisplayed()); if (hasDisplayTime()) { hash = (37 * hash) + DISPLAY_TIME_FIELD_NUMBER; hash = (53 * hash) + getDisplayTime().hashCode(); @@ -762,104 +665,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AnswerFeedback parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnswerFeedback parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.AnswerFeedback prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents feedback the customer has about the quality & correctness of a
    * certain answer in a conversation.
@@ -867,23 +763,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.AnswerFeedback}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AnswerFeedback)
       com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-          .internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-          .internal_static_google_cloud_dialogflow_v2_AnswerFeedback_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerFeedback_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.AnswerFeedback.class,
-              com.google.cloud.dialogflow.v2.AnswerFeedback.Builder.class);
+              com.google.cloud.dialogflow.v2.AnswerFeedback.class, com.google.cloud.dialogflow.v2.AnswerFeedback.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.AnswerFeedback.newBuilder()
@@ -891,15 +785,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -927,9 +822,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-          .internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor;
     }
 
     @java.lang.Override
@@ -948,8 +843,7 @@ public com.google.cloud.dialogflow.v2.AnswerFeedback build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.AnswerFeedback buildPartial() {
-      com.google.cloud.dialogflow.v2.AnswerFeedback result =
-          new com.google.cloud.dialogflow.v2.AnswerFeedback(this);
+      com.google.cloud.dialogflow.v2.AnswerFeedback result = new com.google.cloud.dialogflow.v2.AnswerFeedback(this);
       result.correctnessLevel_ = correctnessLevel_;
       if (detailFeedbackCase_ == 2) {
         if (agentAssistantDetailFeedbackBuilder_ == null) {
@@ -979,39 +873,38 @@ public com.google.cloud.dialogflow.v2.AnswerFeedback buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.AnswerFeedback) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.AnswerFeedback) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.AnswerFeedback)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1036,15 +929,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnswerFeedback other) {
         mergeDisplayTime(other.getDisplayTime());
       }
       switch (other.getDetailFeedbackCase()) {
-        case AGENT_ASSISTANT_DETAIL_FEEDBACK:
-          {
-            mergeAgentAssistantDetailFeedback(other.getAgentAssistantDetailFeedback());
-            break;
-          }
-        case DETAILFEEDBACK_NOT_SET:
-          {
-            break;
-          }
+        case AGENT_ASSISTANT_DETAIL_FEEDBACK: {
+          mergeAgentAssistantDetailFeedback(other.getAgentAssistantDetailFeedback());
+          break;
+        }
+        case DETAILFEEDBACK_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1074,12 +965,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int detailFeedbackCase_ = 0;
     private java.lang.Object detailFeedback_;
-
-    public DetailFeedbackCase getDetailFeedbackCase() {
-      return DetailFeedbackCase.forNumber(detailFeedbackCase_);
+    public DetailFeedbackCase
+        getDetailFeedbackCase() {
+      return DetailFeedbackCase.forNumber(
+          detailFeedbackCase_);
     }
 
     public Builder clearDetailFeedback() {
@@ -1089,120 +980,89 @@ public Builder clearDetailFeedback() {
       return this;
     }
 
+
     private int correctnessLevel_ = 0;
     /**
-     *
-     *
      * 
      * The correctness level of the specific answer.
      * 
* - * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; * @return The enum numeric value on the wire for correctnessLevel. */ - @java.lang.Override - public int getCorrectnessLevelValue() { + @java.lang.Override public int getCorrectnessLevelValue() { return correctnessLevel_; } /** - * - * *
      * The correctness level of the specific answer.
      * 
* - * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; * @param value The enum numeric value on the wire for correctnessLevel to set. * @return This builder for chaining. */ public Builder setCorrectnessLevelValue(int value) { - + correctnessLevel_ = value; onChanged(); return this; } /** - * - * *
      * The correctness level of the specific answer.
      * 
* - * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; * @return The correctnessLevel. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel getCorrectnessLevel() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel result = - com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.valueOf(correctnessLevel_); - return result == null - ? com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel result = com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.valueOf(correctnessLevel_); + return result == null ? com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel.UNRECOGNIZED : result; } /** - * - * *
      * The correctness level of the specific answer.
      * 
* - * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; * @param value The correctnessLevel to set. * @return This builder for chaining. */ - public Builder setCorrectnessLevel( - com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel value) { + public Builder setCorrectnessLevel(com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel value) { if (value == null) { throw new NullPointerException(); } - + correctnessLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The correctness level of the specific answer.
      * 
* - * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; * @return This builder for chaining. */ public Builder clearCorrectnessLevel() { - + correctnessLevel_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AgentAssistantFeedback, - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder, - com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder> - agentAssistantDetailFeedbackBuilder_; + com.google.cloud.dialogflow.v2.AgentAssistantFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder> agentAssistantDetailFeedbackBuilder_; /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; * @return Whether the agentAssistantDetailFeedback field is set. */ @java.lang.Override @@ -1210,15 +1070,11 @@ public boolean hasAgentAssistantDetailFeedback() { return detailFeedbackCase_ == 2; } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; * @return The agentAssistantDetailFeedback. */ @java.lang.Override @@ -1236,17 +1092,13 @@ public com.google.cloud.dialogflow.v2.AgentAssistantFeedback getAgentAssistantDe } } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ - public Builder setAgentAssistantDetailFeedback( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback value) { + public Builder setAgentAssistantDetailFeedback(com.google.cloud.dialogflow.v2.AgentAssistantFeedback value) { if (agentAssistantDetailFeedbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1260,14 +1112,11 @@ public Builder setAgentAssistantDetailFeedback( return this; } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ public Builder setAgentAssistantDetailFeedback( com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder builderForValue) { @@ -1281,26 +1130,18 @@ public Builder setAgentAssistantDetailFeedback( return this; } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ - public Builder mergeAgentAssistantDetailFeedback( - com.google.cloud.dialogflow.v2.AgentAssistantFeedback value) { + public Builder mergeAgentAssistantDetailFeedback(com.google.cloud.dialogflow.v2.AgentAssistantFeedback value) { if (agentAssistantDetailFeedbackBuilder_ == null) { - if (detailFeedbackCase_ == 2 - && detailFeedback_ - != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance()) { - detailFeedback_ = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.newBuilder( - (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_) - .mergeFrom(value) - .buildPartial(); + if (detailFeedbackCase_ == 2 && + detailFeedback_ != com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance()) { + detailFeedback_ = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.newBuilder((com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_) + .mergeFrom(value).buildPartial(); } else { detailFeedback_ = value; } @@ -1315,14 +1156,11 @@ public Builder mergeAgentAssistantDetailFeedback( return this; } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ public Builder clearAgentAssistantDetailFeedback() { if (agentAssistantDetailFeedbackBuilder_ == null) { @@ -1341,32 +1179,24 @@ public Builder clearAgentAssistantDetailFeedback() { return this; } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ - public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder - getAgentAssistantDetailFeedbackBuilder() { + public com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder getAgentAssistantDetailFeedbackBuilder() { return getAgentAssistantDetailFeedbackFieldBuilder().getBuilder(); } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder - getAgentAssistantDetailFeedbackOrBuilder() { + public com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder getAgentAssistantDetailFeedbackOrBuilder() { if ((detailFeedbackCase_ == 2) && (agentAssistantDetailFeedbackBuilder_ != null)) { return agentAssistantDetailFeedbackBuilder_.getMessageOrBuilder(); } else { @@ -1377,52 +1207,39 @@ public Builder clearAgentAssistantDetailFeedback() { } } /** - * - * *
      * Detail feedback of agent assist suggestions.
      * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AgentAssistantFeedback, - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder, - com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder> + com.google.cloud.dialogflow.v2.AgentAssistantFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder> getAgentAssistantDetailFeedbackFieldBuilder() { if (agentAssistantDetailFeedbackBuilder_ == null) { if (!(detailFeedbackCase_ == 2)) { - detailFeedback_ = - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance(); + detailFeedback_ = com.google.cloud.dialogflow.v2.AgentAssistantFeedback.getDefaultInstance(); } - agentAssistantDetailFeedbackBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AgentAssistantFeedback, - com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder, - com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder>( + agentAssistantDetailFeedbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AgentAssistantFeedback, com.google.cloud.dialogflow.v2.AgentAssistantFeedback.Builder, com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder>( (com.google.cloud.dialogflow.v2.AgentAssistantFeedback) detailFeedback_, getParentForChildren(), isClean()); detailFeedback_ = null; } detailFeedbackCase_ = 2; - onChanged(); - ; + onChanged();; return agentAssistantDetailFeedbackBuilder_; } - private boolean clicked_; + private boolean clicked_ ; /** - * - * *
      * Indicates whether the answer/item was clicked by the human agent
      * or not. Default to false.
      * 
* * bool clicked = 3; - * * @return The clicked. */ @java.lang.Override @@ -1430,38 +1247,32 @@ public boolean getClicked() { return clicked_; } /** - * - * *
      * Indicates whether the answer/item was clicked by the human agent
      * or not. Default to false.
      * 
* * bool clicked = 3; - * * @param value The clicked to set. * @return This builder for chaining. */ public Builder setClicked(boolean value) { - + clicked_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether the answer/item was clicked by the human agent
      * or not. Default to false.
      * 
* * bool clicked = 3; - * * @return This builder for chaining. */ public Builder clearClicked() { - + clicked_ = false; onChanged(); return this; @@ -1469,33 +1280,24 @@ public Builder clearClicked() { private com.google.protobuf.Timestamp clickTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - clickTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> clickTimeBuilder_; /** - * - * *
      * Time when the answer/item was clicked.
      * 
* * .google.protobuf.Timestamp click_time = 5; - * * @return Whether the clickTime field is set. */ public boolean hasClickTime() { return clickTimeBuilder_ != null || clickTime_ != null; } /** - * - * *
      * Time when the answer/item was clicked.
      * 
* * .google.protobuf.Timestamp click_time = 5; - * * @return The clickTime. */ public com.google.protobuf.Timestamp getClickTime() { @@ -1506,8 +1308,6 @@ public com.google.protobuf.Timestamp getClickTime() { } } /** - * - * *
      * Time when the answer/item was clicked.
      * 
@@ -1528,15 +1328,14 @@ public Builder setClickTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the answer/item was clicked.
      * 
* * .google.protobuf.Timestamp click_time = 5; */ - public Builder setClickTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setClickTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (clickTimeBuilder_ == null) { clickTime_ = builderForValue.build(); onChanged(); @@ -1547,8 +1346,6 @@ public Builder setClickTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the answer/item was clicked.
      * 
@@ -1559,7 +1356,7 @@ public Builder mergeClickTime(com.google.protobuf.Timestamp value) { if (clickTimeBuilder_ == null) { if (clickTime_ != null) { clickTime_ = - com.google.protobuf.Timestamp.newBuilder(clickTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(clickTime_).mergeFrom(value).buildPartial(); } else { clickTime_ = value; } @@ -1571,8 +1368,6 @@ public Builder mergeClickTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the answer/item was clicked.
      * 
@@ -1591,8 +1386,6 @@ public Builder clearClickTime() { return this; } /** - * - * *
      * Time when the answer/item was clicked.
      * 
@@ -1600,13 +1393,11 @@ public Builder clearClickTime() { * .google.protobuf.Timestamp click_time = 5; */ public com.google.protobuf.Timestamp.Builder getClickTimeBuilder() { - + onChanged(); return getClickTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the answer/item was clicked.
      * 
@@ -1617,12 +1408,11 @@ public com.google.protobuf.TimestampOrBuilder getClickTimeOrBuilder() { if (clickTimeBuilder_ != null) { return clickTimeBuilder_.getMessageOrBuilder(); } else { - return clickTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : clickTime_; + return clickTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : clickTime_; } } /** - * - * *
      * Time when the answer/item was clicked.
      * 
@@ -1630,33 +1420,27 @@ public com.google.protobuf.TimestampOrBuilder getClickTimeOrBuilder() { * .google.protobuf.Timestamp click_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getClickTimeFieldBuilder() { if (clickTimeBuilder_ == null) { - clickTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getClickTime(), getParentForChildren(), isClean()); + clickTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getClickTime(), + getParentForChildren(), + isClean()); clickTime_ = null; } return clickTimeBuilder_; } - private boolean displayed_; + private boolean displayed_ ; /** - * - * *
      * Indicates whether the answer/item was displayed to the human
      * agent in the agent desktop UI. Default to false.
      * 
* * bool displayed = 4; - * * @return The displayed. */ @java.lang.Override @@ -1664,38 +1448,32 @@ public boolean getDisplayed() { return displayed_; } /** - * - * *
      * Indicates whether the answer/item was displayed to the human
      * agent in the agent desktop UI. Default to false.
      * 
* * bool displayed = 4; - * * @param value The displayed to set. * @return This builder for chaining. */ public Builder setDisplayed(boolean value) { - + displayed_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether the answer/item was displayed to the human
      * agent in the agent desktop UI. Default to false.
      * 
* * bool displayed = 4; - * * @return This builder for chaining. */ public Builder clearDisplayed() { - + displayed_ = false; onChanged(); return this; @@ -1703,47 +1481,34 @@ public Builder clearDisplayed() { private com.google.protobuf.Timestamp displayTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - displayTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> displayTimeBuilder_; /** - * - * *
      * Time when the answer/item was displayed.
      * 
* * .google.protobuf.Timestamp display_time = 6; - * * @return Whether the displayTime field is set. */ public boolean hasDisplayTime() { return displayTimeBuilder_ != null || displayTime_ != null; } /** - * - * *
      * Time when the answer/item was displayed.
      * 
* * .google.protobuf.Timestamp display_time = 6; - * * @return The displayTime. */ public com.google.protobuf.Timestamp getDisplayTime() { if (displayTimeBuilder_ == null) { - return displayTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : displayTime_; + return displayTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : displayTime_; } else { return displayTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when the answer/item was displayed.
      * 
@@ -1764,15 +1529,14 @@ public Builder setDisplayTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the answer/item was displayed.
      * 
* * .google.protobuf.Timestamp display_time = 6; */ - public Builder setDisplayTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDisplayTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (displayTimeBuilder_ == null) { displayTime_ = builderForValue.build(); onChanged(); @@ -1783,8 +1547,6 @@ public Builder setDisplayTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * Time when the answer/item was displayed.
      * 
@@ -1795,9 +1557,7 @@ public Builder mergeDisplayTime(com.google.protobuf.Timestamp value) { if (displayTimeBuilder_ == null) { if (displayTime_ != null) { displayTime_ = - com.google.protobuf.Timestamp.newBuilder(displayTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(displayTime_).mergeFrom(value).buildPartial(); } else { displayTime_ = value; } @@ -1809,8 +1569,6 @@ public Builder mergeDisplayTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the answer/item was displayed.
      * 
@@ -1829,8 +1587,6 @@ public Builder clearDisplayTime() { return this; } /** - * - * *
      * Time when the answer/item was displayed.
      * 
@@ -1838,13 +1594,11 @@ public Builder clearDisplayTime() { * .google.protobuf.Timestamp display_time = 6; */ public com.google.protobuf.Timestamp.Builder getDisplayTimeBuilder() { - + onChanged(); return getDisplayTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the answer/item was displayed.
      * 
@@ -1855,14 +1609,11 @@ public com.google.protobuf.TimestampOrBuilder getDisplayTimeOrBuilder() { if (displayTimeBuilder_ != null) { return displayTimeBuilder_.getMessageOrBuilder(); } else { - return displayTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : displayTime_; + return displayTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : displayTime_; } } /** - * - * *
      * Time when the answer/item was displayed.
      * 
@@ -1870,24 +1621,21 @@ public com.google.protobuf.TimestampOrBuilder getDisplayTimeOrBuilder() { * .google.protobuf.Timestamp display_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDisplayTimeFieldBuilder() { if (displayTimeBuilder_ == null) { - displayTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDisplayTime(), getParentForChildren(), isClean()); + displayTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDisplayTime(), + getParentForChildren(), + isClean()); displayTime_ = null; } return displayTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1897,12 +1645,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AnswerFeedback) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AnswerFeedback) private static final com.google.cloud.dialogflow.v2.AnswerFeedback DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AnswerFeedback(); } @@ -1911,16 +1659,16 @@ public static com.google.cloud.dialogflow.v2.AnswerFeedback getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnswerFeedback parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnswerFeedback(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnswerFeedback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnswerFeedback(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1935,4 +1683,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AnswerFeedback getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java similarity index 77% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java index f32e00add..9176d7bd1 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerFeedbackOrBuilder.java @@ -1,133 +1,88 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/answer_record.proto package com.google.cloud.dialogflow.v2; -public interface AnswerFeedbackOrBuilder - extends +public interface AnswerFeedbackOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AnswerFeedback) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The correctness level of the specific answer.
    * 
* * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * * @return The enum numeric value on the wire for correctnessLevel. */ int getCorrectnessLevelValue(); /** - * - * *
    * The correctness level of the specific answer.
    * 
* * .google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel correctness_level = 1; - * * @return The correctnessLevel. */ com.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel getCorrectnessLevel(); /** - * - * *
    * Detail feedback of agent assist suggestions.
    * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; * @return Whether the agentAssistantDetailFeedback field is set. */ boolean hasAgentAssistantDetailFeedback(); /** - * - * *
    * Detail feedback of agent assist suggestions.
    * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; * @return The agentAssistantDetailFeedback. */ com.google.cloud.dialogflow.v2.AgentAssistantFeedback getAgentAssistantDetailFeedback(); /** - * - * *
    * Detail feedback of agent assist suggestions.
    * 
* - * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; - * + * .google.cloud.dialogflow.v2.AgentAssistantFeedback agent_assistant_detail_feedback = 2; */ - com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder - getAgentAssistantDetailFeedbackOrBuilder(); + com.google.cloud.dialogflow.v2.AgentAssistantFeedbackOrBuilder getAgentAssistantDetailFeedbackOrBuilder(); /** - * - * *
    * Indicates whether the answer/item was clicked by the human agent
    * or not. Default to false.
    * 
* * bool clicked = 3; - * * @return The clicked. */ boolean getClicked(); /** - * - * *
    * Time when the answer/item was clicked.
    * 
* * .google.protobuf.Timestamp click_time = 5; - * * @return Whether the clickTime field is set. */ boolean hasClickTime(); /** - * - * *
    * Time when the answer/item was clicked.
    * 
* * .google.protobuf.Timestamp click_time = 5; - * * @return The clickTime. */ com.google.protobuf.Timestamp getClickTime(); /** - * - * *
    * Time when the answer/item was clicked.
    * 
@@ -137,46 +92,35 @@ public interface AnswerFeedbackOrBuilder com.google.protobuf.TimestampOrBuilder getClickTimeOrBuilder(); /** - * - * *
    * Indicates whether the answer/item was displayed to the human
    * agent in the agent desktop UI. Default to false.
    * 
* * bool displayed = 4; - * * @return The displayed. */ boolean getDisplayed(); /** - * - * *
    * Time when the answer/item was displayed.
    * 
* * .google.protobuf.Timestamp display_time = 6; - * * @return Whether the displayTime field is set. */ boolean hasDisplayTime(); /** - * - * *
    * Time when the answer/item was displayed.
    * 
* * .google.protobuf.Timestamp display_time = 6; - * * @return The displayTime. */ com.google.protobuf.Timestamp getDisplayTime(); /** - * - * *
    * Time when the answer/item was displayed.
    * 
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java index 7f8ec37e8..3776e779b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecord.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/answer_record.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Answer records are records to manage answer history and feedbacks for
  * Dialogflow.
@@ -45,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.AnswerRecord}
  */
-public final class AnswerRecord extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnswerRecord extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AnswerRecord)
     AnswerRecordOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnswerRecord.newBuilder() to construct.
   private AnswerRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnswerRecord() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnswerRecord();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnswerRecord(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -88,92 +71,79 @@ private AnswerRecord(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.dialogflow.v2.AnswerFeedback.Builder subBuilder = null;
+            if (answerFeedback_ != null) {
+              subBuilder = answerFeedback_.toBuilder();
+            }
+            answerFeedback_ = input.readMessage(com.google.cloud.dialogflow.v2.AnswerFeedback.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(answerFeedback_);
+              answerFeedback_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.dialogflow.v2.AnswerFeedback.Builder subBuilder = null;
-              if (answerFeedback_ != null) {
-                subBuilder = answerFeedback_.toBuilder();
-              }
-              answerFeedback_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.AnswerFeedback.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(answerFeedback_);
-                answerFeedback_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder subBuilder = null;
+            if (recordCase_ == 4) {
+              subBuilder = ((com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_).toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder subBuilder = null;
-              if (recordCase_ == 4) {
-                subBuilder =
-                    ((com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_).toBuilder();
-              }
-              record_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.AgentAssistantRecord.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_);
-                record_ = subBuilder.buildPartial();
-              }
-              recordCase_ = 4;
-              break;
+            record_ =
+                input.readMessage(com.google.cloud.dialogflow.v2.AgentAssistantRecord.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_);
+              record_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            recordCase_ = 4;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-        .internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-        .internal_static_google_cloud_dialogflow_v2_AnswerRecord_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerRecord_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.AnswerRecord.class,
-            com.google.cloud.dialogflow.v2.AnswerRecord.Builder.class);
+            com.google.cloud.dialogflow.v2.AnswerRecord.class, com.google.cloud.dialogflow.v2.AnswerRecord.Builder.class);
   }
 
   private int recordCase_ = 0;
   private java.lang.Object record_;
-
   public enum RecordCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AGENT_ASSISTANT_RECORD(4),
     RECORD_NOT_SET(0);
     private final int value;
-
     private RecordCase(int value) {
       this.value = value;
     }
@@ -189,29 +159,25 @@ public static RecordCase valueOf(int value) {
 
     public static RecordCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return AGENT_ASSISTANT_RECORD;
-        case 0:
-          return RECORD_NOT_SET;
-        default:
-          return null;
+        case 4: return AGENT_ASSISTANT_RECORD;
+        case 0: return RECORD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RecordCase getRecordCase() {
-    return RecordCase.forNumber(recordCase_);
+  public RecordCase
+  getRecordCase() {
+    return RecordCase.forNumber(
+        recordCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The unique identifier of this answer record.
    * Format: `projects/<Project ID>/locations/<Location
@@ -219,7 +185,6 @@ public RecordCase getRecordCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -228,15 +193,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The unique identifier of this answer record.
    * Format: `projects/<Project ID>/locations/<Location
@@ -244,15 +208,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -263,18 +228,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANSWER_FEEDBACK_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.AnswerFeedback answerFeedback_; /** - * - * *
    * Required. The AnswerFeedback for this record. You can set this with
    * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
    * this answer.
    * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the answerFeedback field is set. */ @java.lang.Override @@ -282,38 +242,27 @@ public boolean hasAnswerFeedback() { return answerFeedback_ != null; } /** - * - * *
    * Required. The AnswerFeedback for this record. You can set this with
    * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
    * this answer.
    * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The answerFeedback. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AnswerFeedback getAnswerFeedback() { - return answerFeedback_ == null - ? com.google.cloud.dialogflow.v2.AnswerFeedback.getDefaultInstance() - : answerFeedback_; + return answerFeedback_ == null ? com.google.cloud.dialogflow.v2.AnswerFeedback.getDefaultInstance() : answerFeedback_; } /** - * - * *
    * Required. The AnswerFeedback for this record. You can set this with
    * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
    * this answer.
    * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder getAnswerFeedbackOrBuilder() { @@ -322,16 +271,11 @@ public com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder getAnswerFeedbackO public static final int AGENT_ASSISTANT_RECORD_FIELD_NUMBER = 4; /** - * - * *
    * Output only. The record for human agent assistant.
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the agentAssistantRecord field is set. */ @java.lang.Override @@ -339,47 +283,36 @@ public boolean hasAgentAssistantRecord() { return recordCase_ == 4; } /** - * - * *
    * Output only. The record for human agent assistant.
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The agentAssistantRecord. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AgentAssistantRecord getAgentAssistantRecord() { if (recordCase_ == 4) { - return (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_; + return (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_; } return com.google.cloud.dialogflow.v2.AgentAssistantRecord.getDefaultInstance(); } /** - * - * *
    * Output only. The record for human agent assistant.
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder - getAgentAssistantRecordOrBuilder() { + public com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder getAgentAssistantRecordOrBuilder() { if (recordCase_ == 4) { - return (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_; + return (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_; } return com.google.cloud.dialogflow.v2.AgentAssistantRecord.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -391,7 +324,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -414,12 +348,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (answerFeedback_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnswerFeedback()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAnswerFeedback()); } if (recordCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -429,23 +363,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AnswerRecord)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AnswerRecord other = - (com.google.cloud.dialogflow.v2.AnswerRecord) obj; + com.google.cloud.dialogflow.v2.AnswerRecord other = (com.google.cloud.dialogflow.v2.AnswerRecord) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasAnswerFeedback() != other.hasAnswerFeedback()) return false; if (hasAnswerFeedback()) { - if (!getAnswerFeedback().equals(other.getAnswerFeedback())) return false; + if (!getAnswerFeedback() + .equals(other.getAnswerFeedback())) return false; } if (!getRecordCase().equals(other.getRecordCase())) return false; switch (recordCase_) { case 4: - if (!getAgentAssistantRecord().equals(other.getAgentAssistantRecord())) return false; + if (!getAgentAssistantRecord() + .equals(other.getAgentAssistantRecord())) return false; break; case 0: default: @@ -480,104 +416,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AnswerRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AnswerRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AnswerRecord parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.AnswerRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Answer records are records to manage answer history and feedbacks for
    * Dialogflow.
@@ -602,23 +531,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.AnswerRecord}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AnswerRecord)
       com.google.cloud.dialogflow.v2.AnswerRecordOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-          .internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-          .internal_static_google_cloud_dialogflow_v2_AnswerRecord_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerRecord_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.AnswerRecord.class,
-              com.google.cloud.dialogflow.v2.AnswerRecord.Builder.class);
+              com.google.cloud.dialogflow.v2.AnswerRecord.class, com.google.cloud.dialogflow.v2.AnswerRecord.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.AnswerRecord.newBuilder()
@@ -626,15 +553,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -652,9 +580,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.AnswerRecordsProto
-          .internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.AnswerRecordsProto.internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor;
     }
 
     @java.lang.Override
@@ -673,8 +601,7 @@ public com.google.cloud.dialogflow.v2.AnswerRecord build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.AnswerRecord buildPartial() {
-      com.google.cloud.dialogflow.v2.AnswerRecord result =
-          new com.google.cloud.dialogflow.v2.AnswerRecord(this);
+      com.google.cloud.dialogflow.v2.AnswerRecord result = new com.google.cloud.dialogflow.v2.AnswerRecord(this);
       result.name_ = name_;
       if (answerFeedbackBuilder_ == null) {
         result.answerFeedback_ = answerFeedback_;
@@ -697,39 +624,38 @@ public com.google.cloud.dialogflow.v2.AnswerRecord buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.AnswerRecord) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.AnswerRecord) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.AnswerRecord)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -746,15 +672,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.AnswerRecord other) {
         mergeAnswerFeedback(other.getAnswerFeedback());
       }
       switch (other.getRecordCase()) {
-        case AGENT_ASSISTANT_RECORD:
-          {
-            mergeAgentAssistantRecord(other.getAgentAssistantRecord());
-            break;
-          }
-        case RECORD_NOT_SET:
-          {
-            break;
-          }
+        case AGENT_ASSISTANT_RECORD: {
+          mergeAgentAssistantRecord(other.getAgentAssistantRecord());
+          break;
+        }
+        case RECORD_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -784,12 +708,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int recordCase_ = 0;
     private java.lang.Object record_;
-
-    public RecordCase getRecordCase() {
-      return RecordCase.forNumber(recordCase_);
+    public RecordCase
+        getRecordCase() {
+      return RecordCase.forNumber(
+          recordCase_);
     }
 
     public Builder clearRecord() {
@@ -799,10 +723,9 @@ public Builder clearRecord() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The unique identifier of this answer record.
      * Format: `projects/<Project ID>/locations/<Location
@@ -810,13 +733,13 @@ public Builder clearRecord() {
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -825,8 +748,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The unique identifier of this answer record.
      * Format: `projects/<Project ID>/locations/<Location
@@ -834,14 +755,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -849,8 +771,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The unique identifier of this answer record.
      * Format: `projects/<Project ID>/locations/<Location
@@ -858,22 +778,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The unique identifier of this answer record.
      * Format: `projects/<Project ID>/locations/<Location
@@ -881,18 +799,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The unique identifier of this answer record.
      * Format: `projects/<Project ID>/locations/<Location
@@ -900,16 +815,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -917,64 +832,45 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.AnswerFeedback answerFeedback_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AnswerFeedback, - com.google.cloud.dialogflow.v2.AnswerFeedback.Builder, - com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder> - answerFeedbackBuilder_; + com.google.cloud.dialogflow.v2.AnswerFeedback, com.google.cloud.dialogflow.v2.AnswerFeedback.Builder, com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder> answerFeedbackBuilder_; /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the answerFeedback field is set. */ public boolean hasAnswerFeedback() { return answerFeedbackBuilder_ != null || answerFeedback_ != null; } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The answerFeedback. */ public com.google.cloud.dialogflow.v2.AnswerFeedback getAnswerFeedback() { if (answerFeedbackBuilder_ == null) { - return answerFeedback_ == null - ? com.google.cloud.dialogflow.v2.AnswerFeedback.getDefaultInstance() - : answerFeedback_; + return answerFeedback_ == null ? com.google.cloud.dialogflow.v2.AnswerFeedback.getDefaultInstance() : answerFeedback_; } else { return answerFeedbackBuilder_.getMessage(); } } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnswerFeedback(com.google.cloud.dialogflow.v2.AnswerFeedback value) { if (answerFeedbackBuilder_ == null) { @@ -990,17 +886,13 @@ public Builder setAnswerFeedback(com.google.cloud.dialogflow.v2.AnswerFeedback v return this; } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnswerFeedback( com.google.cloud.dialogflow.v2.AnswerFeedback.Builder builderForValue) { @@ -1014,25 +906,19 @@ public Builder setAnswerFeedback( return this; } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAnswerFeedback(com.google.cloud.dialogflow.v2.AnswerFeedback value) { if (answerFeedbackBuilder_ == null) { if (answerFeedback_ != null) { answerFeedback_ = - com.google.cloud.dialogflow.v2.AnswerFeedback.newBuilder(answerFeedback_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.AnswerFeedback.newBuilder(answerFeedback_).mergeFrom(value).buildPartial(); } else { answerFeedback_ = value; } @@ -1044,17 +930,13 @@ public Builder mergeAnswerFeedback(com.google.cloud.dialogflow.v2.AnswerFeedback return this; } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAnswerFeedback() { if (answerFeedbackBuilder_ == null) { @@ -1068,91 +950,67 @@ public Builder clearAnswerFeedback() { return this; } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.AnswerFeedback.Builder getAnswerFeedbackBuilder() { - + onChanged(); return getAnswerFeedbackFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder getAnswerFeedbackOrBuilder() { if (answerFeedbackBuilder_ != null) { return answerFeedbackBuilder_.getMessageOrBuilder(); } else { - return answerFeedback_ == null - ? com.google.cloud.dialogflow.v2.AnswerFeedback.getDefaultInstance() - : answerFeedback_; + return answerFeedback_ == null ? + com.google.cloud.dialogflow.v2.AnswerFeedback.getDefaultInstance() : answerFeedback_; } } /** - * - * *
      * Required. The AnswerFeedback for this record. You can set this with
      * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
      * this answer.
      * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AnswerFeedback, - com.google.cloud.dialogflow.v2.AnswerFeedback.Builder, - com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder> + com.google.cloud.dialogflow.v2.AnswerFeedback, com.google.cloud.dialogflow.v2.AnswerFeedback.Builder, com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder> getAnswerFeedbackFieldBuilder() { if (answerFeedbackBuilder_ == null) { - answerFeedbackBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AnswerFeedback, - com.google.cloud.dialogflow.v2.AnswerFeedback.Builder, - com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder>( - getAnswerFeedback(), getParentForChildren(), isClean()); + answerFeedbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AnswerFeedback, com.google.cloud.dialogflow.v2.AnswerFeedback.Builder, com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder>( + getAnswerFeedback(), + getParentForChildren(), + isClean()); answerFeedback_ = null; } return answerFeedbackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AgentAssistantRecord, - com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder, - com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder> - agentAssistantRecordBuilder_; + com.google.cloud.dialogflow.v2.AgentAssistantRecord, com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder, com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder> agentAssistantRecordBuilder_; /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the agentAssistantRecord field is set. */ @java.lang.Override @@ -1160,16 +1018,11 @@ public boolean hasAgentAssistantRecord() { return recordCase_ == 4; } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The agentAssistantRecord. */ @java.lang.Override @@ -1187,18 +1040,13 @@ public com.google.cloud.dialogflow.v2.AgentAssistantRecord getAgentAssistantReco } } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setAgentAssistantRecord( - com.google.cloud.dialogflow.v2.AgentAssistantRecord value) { + public Builder setAgentAssistantRecord(com.google.cloud.dialogflow.v2.AgentAssistantRecord value) { if (agentAssistantRecordBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1212,15 +1060,11 @@ public Builder setAgentAssistantRecord( return this; } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAgentAssistantRecord( com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder builderForValue) { @@ -1234,27 +1078,18 @@ public Builder setAgentAssistantRecord( return this; } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeAgentAssistantRecord( - com.google.cloud.dialogflow.v2.AgentAssistantRecord value) { + public Builder mergeAgentAssistantRecord(com.google.cloud.dialogflow.v2.AgentAssistantRecord value) { if (agentAssistantRecordBuilder_ == null) { - if (recordCase_ == 4 - && record_ - != com.google.cloud.dialogflow.v2.AgentAssistantRecord.getDefaultInstance()) { - record_ = - com.google.cloud.dialogflow.v2.AgentAssistantRecord.newBuilder( - (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_) - .mergeFrom(value) - .buildPartial(); + if (recordCase_ == 4 && + record_ != com.google.cloud.dialogflow.v2.AgentAssistantRecord.getDefaultInstance()) { + record_ = com.google.cloud.dialogflow.v2.AgentAssistantRecord.newBuilder((com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_) + .mergeFrom(value).buildPartial(); } else { record_ = value; } @@ -1269,15 +1104,11 @@ public Builder mergeAgentAssistantRecord( return this; } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAgentAssistantRecord() { if (agentAssistantRecordBuilder_ == null) { @@ -1296,34 +1127,24 @@ public Builder clearAgentAssistantRecord() { return this; } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder - getAgentAssistantRecordBuilder() { + public com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder getAgentAssistantRecordBuilder() { return getAgentAssistantRecordFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder - getAgentAssistantRecordOrBuilder() { + public com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder getAgentAssistantRecordOrBuilder() { if ((recordCase_ == 4) && (agentAssistantRecordBuilder_ != null)) { return agentAssistantRecordBuilder_.getMessageOrBuilder(); } else { @@ -1334,43 +1155,33 @@ public Builder clearAgentAssistantRecord() { } } /** - * - * *
      * Output only. The record for human agent assistant.
      * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AgentAssistantRecord, - com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder, - com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder> + com.google.cloud.dialogflow.v2.AgentAssistantRecord, com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder, com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder> getAgentAssistantRecordFieldBuilder() { if (agentAssistantRecordBuilder_ == null) { if (!(recordCase_ == 4)) { record_ = com.google.cloud.dialogflow.v2.AgentAssistantRecord.getDefaultInstance(); } - agentAssistantRecordBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AgentAssistantRecord, - com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder, - com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder>( + agentAssistantRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AgentAssistantRecord, com.google.cloud.dialogflow.v2.AgentAssistantRecord.Builder, com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder>( (com.google.cloud.dialogflow.v2.AgentAssistantRecord) record_, getParentForChildren(), isClean()); record_ = null; } recordCase_ = 4; - onChanged(); - ; + onChanged();; return agentAssistantRecordBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,12 +1191,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AnswerRecord) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AnswerRecord) private static final com.google.cloud.dialogflow.v2.AnswerRecord DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AnswerRecord(); } @@ -1394,16 +1205,16 @@ public static com.google.cloud.dialogflow.v2.AnswerRecord getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnswerRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnswerRecord(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnswerRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnswerRecord(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1418,4 +1229,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AnswerRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordOrBuilder.java similarity index 61% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordOrBuilder.java index 64b76c3df..581bd27e9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/answer_record.proto package com.google.cloud.dialogflow.v2; -public interface AnswerRecordOrBuilder - extends +public interface AnswerRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AnswerRecord) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique identifier of this answer record.
    * Format: `projects/<Project ID>/locations/<Location
@@ -33,13 +15,10 @@ public interface AnswerRecordOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The unique identifier of this answer record.
    * Format: `projects/<Project ID>/locations/<Location
@@ -47,96 +26,68 @@ public interface AnswerRecordOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The AnswerFeedback for this record. You can set this with
    * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
    * this answer.
    * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the answerFeedback field is set. */ boolean hasAnswerFeedback(); /** - * - * *
    * Required. The AnswerFeedback for this record. You can set this with
    * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
    * this answer.
    * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The answerFeedback. */ com.google.cloud.dialogflow.v2.AnswerFeedback getAnswerFeedback(); /** - * - * *
    * Required. The AnswerFeedback for this record. You can set this with
    * [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
    * this answer.
    * 
* - * - * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.AnswerFeedback answer_feedback = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.AnswerFeedbackOrBuilder getAnswerFeedbackOrBuilder(); /** - * - * *
    * Output only. The record for human agent assistant.
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the agentAssistantRecord field is set. */ boolean hasAgentAssistantRecord(); /** - * - * *
    * Output only. The record for human agent assistant.
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The agentAssistantRecord. */ com.google.cloud.dialogflow.v2.AgentAssistantRecord getAgentAssistantRecord(); /** - * - * *
    * Output only. The record for human agent assistant.
    * 
* - * - * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.AgentAssistantRecord agent_assistant_record = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dialogflow.v2.AgentAssistantRecordOrBuilder getAgentAssistantRecordOrBuilder(); diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java new file mode 100644 index 000000000..a7ce5a883 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java @@ -0,0 +1,220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/answer_record.proto + +package com.google.cloud.dialogflow.v2; + +public final class AnswerRecordsProto { + private AnswerRecordsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AnswerRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_UpdateAnswerRecordRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_UpdateAnswerRecordRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AnswerFeedback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/dialogflow/v2/answer_reco" + + "rd.proto\022\032google.cloud.dialogflow.v2\032\034go" + + "ogle/api/annotations.proto\032\027google/api/c" + + "lient.proto\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\032,google/" + + "cloud/dialogflow/v2/participant.proto\032\033g" + + "oogle/protobuf/empty.proto\032 google/proto" + + "buf/field_mask.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\361\002\n\014AnswerRecord\022\014\n\004name\030\001" + + " \001(\t\022H\n\017answer_feedback\030\002 \001(\0132*.google.c" + + "loud.dialogflow.v2.AnswerFeedbackB\003\340A\002\022W" + + "\n\026agent_assistant_record\030\004 \001(\01320.google." + + "cloud.dialogflow.v2.AgentAssistantRecord" + + "B\003\340A\003H\000:\245\001\352A\241\001\n&dialogflow.googleapis.co" + + "m/AnswerRecord\0220projects/{project}/answe" + + "rRecords/{answer_record}\022Eprojects/{proj" + + "ect}/locations/{location}/answerRecords/" + + "{answer_record}B\010\n\006record\"\240\001\n\030ListAnswer" + + "RecordsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&" + + "dialogflow.googleapis.com/AnswerRecord\022\023" + + "\n\006filter\030\002 \001(\tB\003\340A\002\022\026\n\tpage_size\030\003 \001(\005B\003" + + "\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"v\n\031ListAnsw" + + "erRecordsResponse\022@\n\016answer_records\030\001 \003(" + + "\0132(.google.cloud.dialogflow.v2.AnswerRec" + + "ord\022\027\n\017next_page_token\030\002 \001(\t\"\227\001\n\031UpdateA" + + "nswerRecordRequest\022D\n\ranswer_record\030\001 \001(" + + "\0132(.google.cloud.dialogflow.v2.AnswerRec" + + "ordB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\"\322\003\n\016AnswerFeedbac" + + "k\022V\n\021correctness_level\030\001 \001(\0162;.google.cl" + + "oud.dialogflow.v2.AnswerFeedback.Correct" + + "nessLevel\022]\n\037agent_assistant_detail_feed" + + "back\030\002 \001(\01322.google.cloud.dialogflow.v2." + + "AgentAssistantFeedbackH\000\022\017\n\007clicked\030\003 \001(" + + "\010\022.\n\nclick_time\030\005 \001(\0132\032.google.protobuf." + + "Timestamp\022\021\n\tdisplayed\030\004 \001(\010\0220\n\014display_" + + "time\030\006 \001(\0132\032.google.protobuf.Timestamp\"p" + + "\n\020CorrectnessLevel\022!\n\035CORRECTNESS_LEVEL_" + + "UNSPECIFIED\020\000\022\017\n\013NOT_CORRECT\020\001\022\025\n\021PARTIA" + + "LLY_CORRECT\020\002\022\021\n\rFULLY_CORRECT\020\003B\021\n\017deta" + + "il_feedback\"\326\004\n\026AgentAssistantFeedback\022a" + + "\n\020answer_relevance\030\001 \001(\0162B.google.cloud." + + "dialogflow.v2.AgentAssistantFeedback.Ans" + + "werRelevanceB\003\340A\001\022i\n\024document_correctnes" + + "s\030\002 \001(\0162F.google.cloud.dialogflow.v2.Age" + + "ntAssistantFeedback.DocumentCorrectnessB" + + "\003\340A\001\022g\n\023document_efficiency\030\003 \001(\0162E.goog" + + "le.cloud.dialogflow.v2.AgentAssistantFee" + + "dback.DocumentEfficiencyB\003\340A\001\"Q\n\017AnswerR" + + "elevance\022 \n\034ANSWER_RELEVANCE_UNSPECIFIED" + + "\020\000\022\016\n\nIRRELEVANT\020\001\022\014\n\010RELEVANT\020\002\"W\n\023Docu" + + "mentCorrectness\022$\n DOCUMENT_CORRECTNESS_" + + "UNSPECIFIED\020\000\022\r\n\tINCORRECT\020\001\022\013\n\007CORRECT\020" + + "\002\"Y\n\022DocumentEfficiency\022#\n\037DOCUMENT_EFFI" + + "CIENCY_UNSPECIFIED\020\000\022\017\n\013INEFFICIENT\020\001\022\r\n" + + "\tEFFICIENT\020\002\"\267\001\n\024AgentAssistantRecord\022S\n" + + "\031article_suggestion_answer\030\005 \001(\0132).googl" + + "e.cloud.dialogflow.v2.ArticleAnswerB\003\340A\003" + + "H\000\022@\n\nfaq_answer\030\006 \001(\0132%.google.cloud.di" + + "alogflow.v2.FaqAnswerB\003\340A\003H\000B\010\n\006answer2\255" + + "\005\n\rAnswerRecords\022\355\001\n\021ListAnswerRecords\0224" + + ".google.cloud.dialogflow.v2.ListAnswerRe" + + "cordsRequest\0325.google.cloud.dialogflow.v" + + "2.ListAnswerRecordsResponse\"k\202\323\344\223\002\\\022%/v2" + + "/{parent=projects/*}/answerRecordsZ3\0221/v" + + "2/{parent=projects/*/locations/*}/answer" + + "Records\332A\006parent\022\261\002\n\022UpdateAnswerRecord\022" + + "5.google.cloud.dialogflow.v2.UpdateAnswe" + + "rRecordRequest\032(.google.cloud.dialogflow" + + ".v2.AnswerRecord\"\271\001\202\323\344\223\002\226\00123/v2/{answer_" + + "record.name=projects/*/answerRecords/*}:" + + "\ranswer_recordZP2?/v2/{answer_record.nam" + + "e=projects/*/locations/*/answerRecords/*" + + "}:\ranswer_record\332A\031answer_record,update_" + + "mask\032x\312A\031dialogflow.googleapis.com\322AYhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/dial" + + "ogflowB\241\001\n\036com.google.cloud.dialogflow.v" + + "2B\022AnswerRecordsProtoP\001ZDgoogle.golang.o" + + "rg/genproto/googleapis/cloud/dialogflow/" + + "v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dia" + + "logflow.V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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.ParticipantProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_AnswerRecord_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AnswerRecord_descriptor, + new java.lang.String[] { "Name", "AnswerFeedback", "AgentAssistantRecord", "Record", }); + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListAnswerRecordsResponse_descriptor, + new java.lang.String[] { "AnswerRecords", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_UpdateAnswerRecordRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2_UpdateAnswerRecordRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_UpdateAnswerRecordRequest_descriptor, + new java.lang.String[] { "AnswerRecord", "UpdateMask", }); + internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2_AnswerFeedback_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AnswerFeedback_descriptor, + new java.lang.String[] { "CorrectnessLevel", "AgentAssistantDetailFeedback", "Clicked", "ClickTime", "Displayed", "DisplayTime", "DetailFeedback", }); + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor, + new java.lang.String[] { "AnswerRelevance", "DocumentCorrectness", "DocumentEfficiency", }); + internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AgentAssistantRecord_descriptor, + new java.lang.String[] { "ArticleSuggestionAnswer", "FaqAnswer", "Answer", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + 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.ParticipantProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswer.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswer.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswer.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswer.java index 6c94298f0..dea0f4f94 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswer.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswer.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents article answer.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ArticleAnswer} */ -public final class ArticleAnswer extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ArticleAnswer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ArticleAnswer) ArticleAnswerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ArticleAnswer.newBuilder() to construct. private ArticleAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArticleAnswer() { title_ = ""; uri_ = ""; @@ -46,15 +28,16 @@ private ArticleAnswer() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArticleAnswer(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ArticleAnswer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,70 +57,65 @@ private ArticleAnswer( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - title_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + title_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snippets_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - snippets_.add(s); - break; - } - case 37: - { - confidence_ = input.readFloat(); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; + uri_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + snippets_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + snippets_.add(s); + break; + } + case 37: { - answerRecord_ = s; - break; + confidence_ = input.readFloat(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + answerRecord_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { snippets_ = snippets_.getUnmodifiableView(); @@ -146,44 +124,39 @@ private ArticleAnswer( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_ArticleAnswer_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_ArticleAnswer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ArticleAnswer.class, - com.google.cloud.dialogflow.v2.ArticleAnswer.Builder.class); + com.google.cloud.dialogflow.v2.ArticleAnswer.class, com.google.cloud.dialogflow.v2.ArticleAnswer.Builder.class); } public static final int TITLE_FIELD_NUMBER = 1; private volatile java.lang.Object title_; /** - * - * *
    * The article title.
    * 
* * string title = 1; - * * @return The title. */ @java.lang.Override @@ -192,29 +165,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** - * - * *
    * The article title.
    * 
* * string title = 1; - * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -225,14 +198,11 @@ public com.google.protobuf.ByteString getTitleBytes() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** - * - * *
    * The article URI.
    * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -241,29 +211,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The article URI.
    * 
* * string uri = 2; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -274,42 +244,34 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int SNIPPETS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList snippets_; /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @return A list containing the snippets. */ - public com.google.protobuf.ProtocolStringList getSnippetsList() { + public com.google.protobuf.ProtocolStringList + getSnippetsList() { return snippets_; } /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @return The count of snippets. */ public int getSnippetsCount() { return snippets_.size(); } /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @param index The index of the element to return. * @return The snippets at the given index. */ @@ -317,26 +279,22 @@ public java.lang.String getSnippets(int index) { return snippets_.get(index); } /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @param index The index of the value to return. * @return The bytes of the snippets at the given index. */ - public com.google.protobuf.ByteString getSnippetsBytes(int index) { + public com.google.protobuf.ByteString + getSnippetsBytes(int index) { return snippets_.getByteString(index); } public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * Article match confidence.
    * The system's confidence score that this article is a good match for this
@@ -345,7 +303,6 @@ public com.google.protobuf.ByteString getSnippetsBytes(int index) {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -354,23 +311,24 @@ public float getConfidence() { } public static final int METADATA_FIELD_NUMBER = 5; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_ArticleAnswer_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_ArticleAnswer_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -379,8 +337,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -388,22 +344,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 5;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -412,12 +368,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -426,17 +381,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -445,11 +399,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -459,8 +414,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   public static final int ANSWER_RECORD_FIELD_NUMBER = 6;
   private volatile java.lang.Object answerRecord_;
   /**
-   *
-   *
    * 
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -468,7 +421,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
    * 
* * string answer_record = 6; - * * @return The answerRecord. */ @java.lang.Override @@ -477,15 +429,14 @@ public java.lang.String getAnswerRecord() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); answerRecord_ = s; return s; } } /** - * - * *
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -493,15 +444,16 @@ public java.lang.String getAnswerRecord() {
    * 
* * string answer_record = 6; - * * @return The bytes for answerRecord. */ @java.lang.Override - public com.google.protobuf.ByteString getAnswerRecordBytes() { + public com.google.protobuf.ByteString + getAnswerRecordBytes() { java.lang.Object ref = answerRecord_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); answerRecord_ = b; return b; } else { @@ -510,7 +462,6 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -522,7 +473,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getTitleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } @@ -535,8 +487,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (confidence_ != 0F) { output.writeFloat(4, confidence_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 5); if (!getAnswerRecordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, answerRecord_); } @@ -564,17 +520,18 @@ public int getSerializedSize() { size += 1 * getSnippetsList().size(); } if (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, metadata__); } if (!getAnswerRecordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, answerRecord_); @@ -587,21 +544,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.ArticleAnswer)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.ArticleAnswer other = - (com.google.cloud.dialogflow.v2.ArticleAnswer) obj; + com.google.cloud.dialogflow.v2.ArticleAnswer other = (com.google.cloud.dialogflow.v2.ArticleAnswer) obj; - if (!getTitle().equals(other.getTitle())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getSnippetsList() + .equals(other.getSnippetsList())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getAnswerRecord() + .equals(other.getAnswerRecord())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -622,7 +584,8 @@ public int hashCode() { hash = (53 * hash) + getSnippetsList().hashCode(); } hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); @@ -634,147 +597,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ArticleAnswer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ArticleAnswer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.ArticleAnswer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents article answer.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ArticleAnswer} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ArticleAnswer) com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_ArticleAnswer_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_ArticleAnswer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ArticleAnswer.class, - com.google.cloud.dialogflow.v2.ArticleAnswer.Builder.class); + com.google.cloud.dialogflow.v2.ArticleAnswer.class, com.google.cloud.dialogflow.v2.ArticleAnswer.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.ArticleAnswer.newBuilder() @@ -782,15 +738,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -809,9 +766,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_ArticleAnswer_descriptor; } @java.lang.Override @@ -830,8 +787,7 @@ public com.google.cloud.dialogflow.v2.ArticleAnswer build() { @java.lang.Override public com.google.cloud.dialogflow.v2.ArticleAnswer buildPartial() { - com.google.cloud.dialogflow.v2.ArticleAnswer result = - new com.google.cloud.dialogflow.v2.ArticleAnswer(this); + com.google.cloud.dialogflow.v2.ArticleAnswer result = new com.google.cloud.dialogflow.v2.ArticleAnswer(this); int from_bitField0_ = bitField0_; result.title_ = title_; result.uri_ = uri_; @@ -852,39 +808,38 @@ public com.google.cloud.dialogflow.v2.ArticleAnswer buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.ArticleAnswer) { - return mergeFrom((com.google.cloud.dialogflow.v2.ArticleAnswer) other); + return mergeFrom((com.google.cloud.dialogflow.v2.ArticleAnswer)other); } else { super.mergeFrom(other); return this; @@ -914,7 +869,8 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ArticleAnswer other) { if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; onChanged(); @@ -947,25 +903,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object title_ = ""; /** - * - * *
      * The article title.
      * 
* * string title = 1; - * * @return The title. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -974,21 +927,20 @@ public java.lang.String getTitle() { } } /** - * - * *
      * The article title.
      * 
* * string title = 1; - * * @return The bytes for title. */ - public com.google.protobuf.ByteString getTitleBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -996,61 +948,54 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
      * The article title.
      * 
* * string title = 1; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { + public Builder setTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** - * - * *
      * The article title.
      * 
* * string title = 1; - * * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** - * - * *
      * The article title.
      * 
* * string title = 1; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; @@ -1058,20 +1003,18 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * The article URI.
      * 
* * string uri = 2; - * * @return The uri. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -1080,21 +1023,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The article URI.
      * 
* * string uri = 2; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -1102,112 +1044,95 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The article URI.
      * 
* * string uri = 2; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * The article URI.
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * The article URI.
      * 
* * string uri = 2; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList snippets_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList snippets_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSnippetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snippets_ = new com.google.protobuf.LazyStringArrayList(snippets_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @return A list containing the snippets. */ - public com.google.protobuf.ProtocolStringList getSnippetsList() { + public com.google.protobuf.ProtocolStringList + getSnippetsList() { return snippets_.getUnmodifiableView(); } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @return The count of snippets. */ public int getSnippetsCount() { return snippets_.size(); } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @param index The index of the element to return. * @return The snippets at the given index. */ @@ -1215,90 +1140,80 @@ public java.lang.String getSnippets(int index) { return snippets_.get(index); } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @param index The index of the value to return. * @return The bytes of the snippets at the given index. */ - public com.google.protobuf.ByteString getSnippetsBytes(int index) { + public com.google.protobuf.ByteString + getSnippetsBytes(int index) { return snippets_.getByteString(index); } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @param index The index to set the value at. * @param value The snippets to set. * @return This builder for chaining. */ - public Builder setSnippets(int index, java.lang.String value) { + public Builder setSnippets( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); + throw new NullPointerException(); + } + ensureSnippetsIsMutable(); snippets_.set(index, value); onChanged(); return this; } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @param value The snippets to add. * @return This builder for chaining. */ - public Builder addSnippets(java.lang.String value) { + public Builder addSnippets( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); + throw new NullPointerException(); + } + ensureSnippetsIsMutable(); snippets_.add(value); onChanged(); return this; } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @param values The snippets to add. * @return This builder for chaining. */ - public Builder addAllSnippets(java.lang.Iterable values) { + public Builder addAllSnippets( + java.lang.Iterable values) { ensureSnippetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snippets_); onChanged(); return this; } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @return This builder for chaining. */ public Builder clearSnippets() { @@ -1308,32 +1223,28 @@ public Builder clearSnippets() { return this; } /** - * - * *
      * Article snippets.
      * 
* * repeated string snippets = 3; - * * @param value The bytes of the snippets to add. * @return This builder for chaining. */ - public Builder addSnippetsBytes(com.google.protobuf.ByteString value) { + public Builder addSnippetsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSnippetsIsMutable(); snippets_.add(value); onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * Article match confidence.
      * The system's confidence score that this article is a good match for this
@@ -1342,7 +1253,6 @@ public Builder addSnippetsBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1350,8 +1260,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * Article match confidence.
      * The system's confidence score that this article is a good match for this
@@ -1360,19 +1268,16 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * Article match confidence.
      * The system's confidence score that this article is a good match for this
@@ -1381,32 +1286,31 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; + internalGetMutableMetadata() { + onChanged();; if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -1418,8 +1322,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1427,22 +1329,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 5;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1451,12 +1353,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1465,17 +1366,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1484,11 +1384,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1496,12 +1397,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1509,21 +1409,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1531,19 +1433,16 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+    public Builder putMetadata(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1551,15 +1450,16 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object answerRecord_ = "";
     /**
-     *
-     *
      * 
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1567,13 +1467,13 @@ public Builder putAllMetadata(java.util.Map
      * 
* * string answer_record = 6; - * * @return The answerRecord. */ public java.lang.String getAnswerRecord() { java.lang.Object ref = answerRecord_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); answerRecord_ = s; return s; @@ -1582,8 +1482,6 @@ public java.lang.String getAnswerRecord() { } } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1591,14 +1489,15 @@ public java.lang.String getAnswerRecord() {
      * 
* * string answer_record = 6; - * * @return The bytes for answerRecord. */ - public com.google.protobuf.ByteString getAnswerRecordBytes() { + public com.google.protobuf.ByteString + getAnswerRecordBytes() { java.lang.Object ref = answerRecord_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); answerRecord_ = b; return b; } else { @@ -1606,8 +1505,6 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1615,22 +1512,20 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() {
      * 
* * string answer_record = 6; - * * @param value The answerRecord to set. * @return This builder for chaining. */ - public Builder setAnswerRecord(java.lang.String value) { + public Builder setAnswerRecord( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + answerRecord_ = value; onChanged(); return this; } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1638,18 +1533,15 @@ public Builder setAnswerRecord(java.lang.String value) {
      * 
* * string answer_record = 6; - * * @return This builder for chaining. */ public Builder clearAnswerRecord() { - + answerRecord_ = getDefaultInstance().getAnswerRecord(); onChanged(); return this; } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1657,23 +1549,23 @@ public Builder clearAnswerRecord() {
      * 
* * string answer_record = 6; - * * @param value The bytes for answerRecord to set. * @return This builder for chaining. */ - public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + public Builder setAnswerRecordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1683,12 +1575,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ArticleAnswer) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ArticleAnswer) private static final com.google.cloud.dialogflow.v2.ArticleAnswer DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ArticleAnswer(); } @@ -1697,16 +1589,16 @@ public static com.google.cloud.dialogflow.v2.ArticleAnswer getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArticleAnswer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArticleAnswer(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArticleAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArticleAnswer(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1721,4 +1613,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.ArticleAnswer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswerOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswerOrBuilder.java similarity index 70% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswerOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswerOrBuilder.java index bde0bfcce..a517fff01 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswerOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ArticleAnswerOrBuilder.java @@ -1,132 +1,94 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; -public interface ArticleAnswerOrBuilder - extends +public interface ArticleAnswerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ArticleAnswer) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The article title.
    * 
* * string title = 1; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
    * The article title.
    * 
* * string title = 1; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
    * The article URI.
    * 
* * string uri = 2; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The article URI.
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @return A list containing the snippets. */ - java.util.List getSnippetsList(); + java.util.List + getSnippetsList(); /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @return The count of snippets. */ int getSnippetsCount(); /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @param index The index of the element to return. * @return The snippets at the given index. */ java.lang.String getSnippets(int index); /** - * - * *
    * Article snippets.
    * 
* * repeated string snippets = 3; - * * @param index The index of the value to return. * @return The bytes of the snippets at the given index. */ - com.google.protobuf.ByteString getSnippetsBytes(int index); + com.google.protobuf.ByteString + getSnippetsBytes(int index); /** - * - * *
    * Article match confidence.
    * The system's confidence score that this article is a good match for this
@@ -135,14 +97,11 @@ public interface ArticleAnswerOrBuilder
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -152,8 +111,6 @@ public interface ArticleAnswerOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -161,13 +118,15 @@ public interface ArticleAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -175,10 +134,9 @@ public interface ArticleAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -186,10 +144,11 @@ public interface ArticleAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -197,11 +156,11 @@ public interface ArticleAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -209,13 +168,10 @@ public interface ArticleAnswerOrBuilder
    * 
* * string answer_record = 6; - * * @return The answerRecord. */ java.lang.String getAnswerRecord(); /** - * - * *
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -223,8 +179,8 @@ public interface ArticleAnswerOrBuilder
    * 
* * string answer_record = 6; - * * @return The bytes for answerRecord. */ - com.google.protobuf.ByteString getAnswerRecordBytes(); + com.google.protobuf.ByteString + getAnswerRecordBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java new file mode 100644 index 000000000..e9cf5c5bf --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -0,0 +1,186 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/audio_config.proto + +package com.google.cloud.dialogflow.v2; + +public final class AudioConfigProto { + private AudioConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SpeechContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_InputAudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/dialogflow/v2/audio_confi" + + "g.proto\022\032google.cloud.dialogflow.v2\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032\036google/protobuf/duratio" + + "n.proto\032\037google/protobuf/timestamp.proto" + + "\032\034google/api/annotations.proto\"/\n\rSpeech" + + "Context\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\014star" + + "t_offset\030\001 \001(\0132\031.google.protobuf.Duratio" + + "n\022-\n\nend_offset\030\002 \001(\0132\031.google.protobuf." + + "Duration\022\022\n\nconfidence\030\004 \001(\002\"\233\003\n\020InputAu" + + "dioConfig\022A\n\016audio_encoding\030\001 \001(\0162).goog" + + "le.cloud.dialogflow.v2.AudioEncoding\022\031\n\021" + + "sample_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\030\n\014phra" + + "se_hints\030\004 \003(\tB\002\030\001\022B\n\017speech_contexts\030\013 " + + "\003(\0132).google.cloud.dialogflow.v2.SpeechC" + + "ontext\022\r\n\005model\030\007 \001(\t\022E\n\rmodel_variant\030\n" + + " \001(\0162..google.cloud.dialogflow.v2.Speech" + + "ModelVariant\022\030\n\020single_utterance\030\010 \001(\010\022*" + + "\n\"disable_no_speech_recognized_event\030\016 \001" + + "(\010\"f\n\024VoiceSelectionParams\022\014\n\004name\030\001 \001(\t" + + "\022@\n\013ssml_gender\030\002 \001(\0162+.google.cloud.dia" + + "logflow.v2.SsmlVoiceGender\"\263\001\n\026Synthesiz" + + "eSpeechConfig\022\025\n\rspeaking_rate\030\001 \001(\001\022\r\n\005" + + "pitch\030\002 \001(\001\022\026\n\016volume_gain_db\030\003 \001(\001\022\032\n\022e" + + "ffects_profile_id\030\005 \003(\t\022?\n\005voice\030\004 \001(\01320" + + ".google.cloud.dialogflow.v2.VoiceSelecti" + + "onParams\"\322\001\n\021OutputAudioConfig\022L\n\016audio_" + + "encoding\030\001 \001(\0162/.google.cloud.dialogflow" + + ".v2.OutputAudioEncodingB\003\340A\002\022\031\n\021sample_r" + + "ate_hertz\030\002 \001(\005\022T\n\030synthesize_speech_con" + + "fig\030\003 \001(\01322.google.cloud.dialogflow.v2.S" + + "ynthesizeSpeechConfig\"g\n\022SpeechToTextCon" + + "fig\022Q\n\024speech_model_variant\030\001 \001(\0162..goog" + + "le.cloud.dialogflow.v2.SpeechModelVarian" + + "tB\003\340A\001*\373\001\n\rAudioEncoding\022\036\n\032AUDIO_ENCODI" + + "NG_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENCODING_LINEA" + + "R_16\020\001\022\027\n\023AUDIO_ENCODING_FLAC\020\002\022\030\n\024AUDIO" + + "_ENCODING_MULAW\020\003\022\026\n\022AUDIO_ENCODING_AMR\020" + + "\004\022\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022\033\n\027AUDIO_EN" + + "CODING_OGG_OPUS\020\006\022)\n%AUDIO_ENCODING_SPEE" + + "X_WITH_HEADER_BYTE\020\007*v\n\022SpeechModelVaria" + + "nt\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_ENHANCED\020\003*\215\001\n\017SsmlVoiceGender" + + "\022!\n\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026S" + + "SML_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GE" + + "NDER_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTR" + + "AL\020\003*\354\001\n\023OutputAudioEncoding\022%\n!OUTPUT_A" + + "UDIO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AU" + + "DIO_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO" + + "_ENCODING_MP3\020\002\022%\n!OUTPUT_AUDIO_ENCODING" + + "_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODING_" + + "OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MULA" + + "W\020\005B\237\001\n\036com.google.cloud.dialogflow.v2B\020" + + "AudioConfigProtoP\001ZDgoogle.golang.org/ge" + + "nproto/googleapis/cloud/dialogflow/v2;di" + + "alogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogfl" + + "ow.V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_SpeechContext_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_SpeechContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SpeechContext_descriptor, + new java.lang.String[] { "Phrases", "Boost", }); + internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SpeechWordInfo_descriptor, + new java.lang.String[] { "Word", "StartOffset", "EndOffset", "Confidence", }); + internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_InputAudioConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor, + new java.lang.String[] { "AudioEncoding", "SampleRateHertz", "LanguageCode", "EnableWordInfo", "PhraseHints", "SpeechContexts", "Model", "ModelVariant", "SingleUtterance", "DisableNoSpeechRecognizedEvent", }); + internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor, + new java.lang.String[] { "Name", "SsmlGender", }); + internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SynthesizeSpeechConfig_descriptor, + new java.lang.String[] { "SpeakingRate", "Pitch", "VolumeGainDb", "EffectsProfileId", "Voice", }); + internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_OutputAudioConfig_descriptor, + new java.lang.String[] { "AudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfig", }); + internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SpeechToTextConfig_descriptor, + new java.lang.String[] { "SpeechModelVariant", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java similarity index 80% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java index 3b1f3cdf4..b496eca02 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioEncoding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * Audio encoding of the audio content sent in the conversational query request.
  * Refer to the
@@ -31,10 +14,9 @@
  *
  * Protobuf enum {@code google.cloud.dialogflow.v2.AudioEncoding}
  */
-public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
+public enum AudioEncoding
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Not specified.
    * 
@@ -43,8 +25,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_UNSPECIFIED(0), /** - * - * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * 
@@ -53,8 +33,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_LINEAR_16(1), /** - * - * *
    * [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio
    * Codec) is the recommended encoding because it is lossless (therefore
@@ -67,8 +45,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   AUDIO_ENCODING_FLAC(2),
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * 
@@ -77,8 +53,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_MULAW(3), /** - * - * *
    * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
    * 
@@ -87,8 +61,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_AMR(4), /** - * - * *
    * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
    * 
@@ -97,8 +69,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_AMR_WB(5), /** - * - * *
    * Opus encoded audio frames in Ogg container
    * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -109,8 +79,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   AUDIO_ENCODING_OGG_OPUS(6),
   /**
-   *
-   *
    * 
    * Although the use of lossy encodings is not recommended, if a very low
    * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -134,8 +102,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Not specified.
    * 
@@ -144,8 +110,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * 
@@ -154,8 +118,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_LINEAR_16_VALUE = 1; /** - * - * *
    * [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio
    * Codec) is the recommended encoding because it is lossless (therefore
@@ -168,8 +130,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int AUDIO_ENCODING_FLAC_VALUE = 2;
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * 
@@ -178,8 +138,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_MULAW_VALUE = 3; /** - * - * *
    * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
    * 
@@ -188,8 +146,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_AMR_VALUE = 4; /** - * - * *
    * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
    * 
@@ -198,8 +154,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_AMR_WB_VALUE = 5; /** - * - * *
    * Opus encoded audio frames in Ogg container
    * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -210,8 +164,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int AUDIO_ENCODING_OGG_OPUS_VALUE = 6;
   /**
-   *
-   *
    * 
    * Although the use of lossy encodings is not recommended, if a very low
    * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -232,6 +184,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE_VALUE = 7;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -256,59 +209,54 @@ public static AudioEncoding valueOf(int value) {
    */
   public static AudioEncoding forNumber(int value) {
     switch (value) {
-      case 0:
-        return AUDIO_ENCODING_UNSPECIFIED;
-      case 1:
-        return AUDIO_ENCODING_LINEAR_16;
-      case 2:
-        return AUDIO_ENCODING_FLAC;
-      case 3:
-        return AUDIO_ENCODING_MULAW;
-      case 4:
-        return AUDIO_ENCODING_AMR;
-      case 5:
-        return AUDIO_ENCODING_AMR_WB;
-      case 6:
-        return AUDIO_ENCODING_OGG_OPUS;
-      case 7:
-        return AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE;
-      default:
-        return null;
+      case 0: return AUDIO_ENCODING_UNSPECIFIED;
+      case 1: return AUDIO_ENCODING_LINEAR_16;
+      case 2: return AUDIO_ENCODING_FLAC;
+      case 3: return AUDIO_ENCODING_MULAW;
+      case 4: return AUDIO_ENCODING_AMR;
+      case 5: return AUDIO_ENCODING_AMR_WB;
+      case 6: return AUDIO_ENCODING_OGG_OPUS;
+      case 7: return AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      AudioEncoding> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AudioEncoding findValueByNumber(int number) {
+            return AudioEncoding.forNumber(number);
+          }
+        };
 
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public AudioEncoding findValueByNumber(int number) {
-          return AudioEncoding.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.cloud.dialogflow.v2.AudioConfigProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final AudioEncoding[] VALUES = values();
 
-  public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static AudioEncoding valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -324,3 +272,4 @@ private AudioEncoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.AudioEncoding)
 }
+
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
similarity index 71%
rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
index dc010239d..4fa597e44 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
+++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfig.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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/conversation_profile.proto
 
 package com.google.cloud.dialogflow.v2;
 
 /**
- *
- *
  * 
  * Defines the Automated Agent to connect to a conversation.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AutomatedAgentConfig} */ -public final class AutomatedAgentConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AutomatedAgentConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AutomatedAgentConfig) AutomatedAgentConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AutomatedAgentConfig.newBuilder() to construct. private AutomatedAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AutomatedAgentConfig() { agent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AutomatedAgentConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AutomatedAgentConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private AutomatedAgentConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - agent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + agent_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.class, - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder.class); + com.google.cloud.dialogflow.v2.AutomatedAgentConfig.class, com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder.class); } public static final int AGENT_FIELD_NUMBER = 1; private volatile java.lang.Object agent_; /** - * - * *
    * Required. ID of the Dialogflow agent environment to use.
    * This project needs to either be the same project as the conversation or you
@@ -129,10 +107,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * for more details.
    * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The agent. */ @java.lang.Override @@ -141,15 +116,14 @@ public java.lang.String getAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agent_ = s; return s; } } /** - * - * *
    * Required. ID of the Dialogflow agent environment to use.
    * This project needs to either be the same project as the conversation or you
@@ -163,18 +137,17 @@ public java.lang.String getAgent() {
    * for more details.
    * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for agent. */ @java.lang.Override - public com.google.protobuf.ByteString getAgentBytes() { + public com.google.protobuf.ByteString + getAgentBytes() { java.lang.Object ref = agent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agent_ = b; return b; } else { @@ -183,7 +156,6 @@ public com.google.protobuf.ByteString getAgentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getAgentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agent_); } @@ -219,15 +192,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AutomatedAgentConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AutomatedAgentConfig other = - (com.google.cloud.dialogflow.v2.AutomatedAgentConfig) obj; + com.google.cloud.dialogflow.v2.AutomatedAgentConfig other = (com.google.cloud.dialogflow.v2.AutomatedAgentConfig) obj; - if (!getAgent().equals(other.getAgent())) return false; + if (!getAgent() + .equals(other.getAgent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -247,126 +220,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.AutomatedAgentConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines the Automated Agent to connect to a conversation.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AutomatedAgentConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AutomatedAgentConfig) com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.class, - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder.class); + com.google.cloud.dialogflow.v2.AutomatedAgentConfig.class, com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AutomatedAgentConfig.newBuilder() @@ -374,15 +338,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -392,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor; } @java.lang.Override @@ -413,8 +378,7 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentConfig build() { @java.lang.Override public com.google.cloud.dialogflow.v2.AutomatedAgentConfig buildPartial() { - com.google.cloud.dialogflow.v2.AutomatedAgentConfig result = - new com.google.cloud.dialogflow.v2.AutomatedAgentConfig(this); + com.google.cloud.dialogflow.v2.AutomatedAgentConfig result = new com.google.cloud.dialogflow.v2.AutomatedAgentConfig(this); result.agent_ = agent_; onBuilt(); return result; @@ -424,39 +388,38 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AutomatedAgentConfig) { - return mergeFrom((com.google.cloud.dialogflow.v2.AutomatedAgentConfig) other); + return mergeFrom((com.google.cloud.dialogflow.v2.AutomatedAgentConfig)other); } else { super.mergeFrom(other); return this; @@ -464,8 +427,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AutomatedAgentConfig other) { - if (other == com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance()) return this; if (!other.getAgent().isEmpty()) { agent_ = other.agent_; onChanged(); @@ -489,8 +451,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.AutomatedAgentConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.AutomatedAgentConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,8 +463,6 @@ public Builder mergeFrom( private java.lang.Object agent_ = ""; /** - * - * *
      * Required. ID of the Dialogflow agent environment to use.
      * This project needs to either be the same project as the conversation or you
@@ -517,16 +476,14 @@ public Builder mergeFrom(
      * for more details.
      * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The agent. */ public java.lang.String getAgent() { java.lang.Object ref = agent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agent_ = s; return s; @@ -535,8 +492,6 @@ public java.lang.String getAgent() { } } /** - * - * *
      * Required. ID of the Dialogflow agent environment to use.
      * This project needs to either be the same project as the conversation or you
@@ -550,17 +505,16 @@ public java.lang.String getAgent() {
      * for more details.
      * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for agent. */ - public com.google.protobuf.ByteString getAgentBytes() { + public com.google.protobuf.ByteString + getAgentBytes() { java.lang.Object ref = agent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agent_ = b; return b; } else { @@ -568,8 +522,6 @@ public com.google.protobuf.ByteString getAgentBytes() { } } /** - * - * *
      * Required. ID of the Dialogflow agent environment to use.
      * This project needs to either be the same project as the conversation or you
@@ -583,25 +535,21 @@ public com.google.protobuf.ByteString getAgentBytes() {
      * for more details.
      * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The agent to set. * @return This builder for chaining. */ - public Builder setAgent(java.lang.String value) { + public Builder setAgent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + agent_ = value; onChanged(); return this; } /** - * - * *
      * Required. ID of the Dialogflow agent environment to use.
      * This project needs to either be the same project as the conversation or you
@@ -615,21 +563,16 @@ public Builder setAgent(java.lang.String value) {
      * for more details.
      * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAgent() { - + agent_ = getDefaultInstance().getAgent(); onChanged(); return this; } /** - * - * *
      * Required. ID of the Dialogflow agent environment to use.
      * This project needs to either be the same project as the conversation or you
@@ -643,26 +586,24 @@ public Builder clearAgent() {
      * for more details.
      * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for agent to set. * @return This builder for chaining. */ - public Builder setAgentBytes(com.google.protobuf.ByteString value) { + public Builder setAgentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -672,12 +613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AutomatedAgentConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AutomatedAgentConfig) private static final com.google.cloud.dialogflow.v2.AutomatedAgentConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AutomatedAgentConfig(); } @@ -686,16 +627,16 @@ public static com.google.cloud.dialogflow.v2.AutomatedAgentConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutomatedAgentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutomatedAgentConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutomatedAgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutomatedAgentConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -710,4 +651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AutomatedAgentConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java index abc9b0347..6edcff3d6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; -public interface AutomatedAgentConfigOrBuilder - extends +public interface AutomatedAgentConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AutomatedAgentConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. ID of the Dialogflow agent environment to use.
    * This project needs to either be the same project as the conversation or you
@@ -39,16 +21,11 @@ public interface AutomatedAgentConfigOrBuilder
    * for more details.
    * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The agent. */ java.lang.String getAgent(); /** - * - * *
    * Required. ID of the Dialogflow agent environment to use.
    * This project needs to either be the same project as the conversation or you
@@ -62,11 +39,9 @@ public interface AutomatedAgentConfigOrBuilder
    * for more details.
    * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for agent. */ - com.google.protobuf.ByteString getAgentBytes(); + com.google.protobuf.ByteString + getAgentBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java index 49b63ca26..752545dcf 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReply.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents a response from an automated agent.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AutomatedAgentReply} */ -public final class AutomatedAgentReply extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AutomatedAgentReply extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.AutomatedAgentReply) AutomatedAgentReplyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AutomatedAgentReply.newBuilder() to construct. private AutomatedAgentReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AutomatedAgentReply() { automatedAgentReplyType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AutomatedAgentReply(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AutomatedAgentReply( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,82 +53,72 @@ private AutomatedAgentReply( case 0: done = true; break; - case 10: - { - com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder subBuilder = null; - if (detectIntentResponse_ != null) { - subBuilder = detectIntentResponse_.toBuilder(); - } - detectIntentResponse_ = - input.readMessage( - com.google.cloud.dialogflow.v2.DetectIntentResponse.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(detectIntentResponse_); - detectIntentResponse_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - int rawValue = input.readEnum(); - - automatedAgentReplyType_ = rawValue; - break; + case 10: { + com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder subBuilder = null; + if (detectIntentResponse_ != null) { + subBuilder = detectIntentResponse_.toBuilder(); } - case 64: - { - allowCancellation_ = input.readBool(); - break; + detectIntentResponse_ = input.readMessage(com.google.cloud.dialogflow.v2.DetectIntentResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(detectIntentResponse_); + detectIntentResponse_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 56: { + int rawValue = input.readEnum(); + + automatedAgentReplyType_ = rawValue; + break; + } + case 64: { + + allowCancellation_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AutomatedAgentReply.class, - com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder.class); + com.google.cloud.dialogflow.v2.AutomatedAgentReply.class, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder.class); } /** - * - * *
    * Represents different automated agent reply types.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType} */ - public enum AutomatedAgentReplyType implements com.google.protobuf.ProtocolMessageEnum { + public enum AutomatedAgentReplyType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified. This should never happen.
      * 
@@ -154,8 +127,6 @@ public enum AutomatedAgentReplyType implements com.google.protobuf.ProtocolMessa */ AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED(0), /** - * - * *
      * Partial reply. e.g. Aggregated responses in a `Fulfillment` that enables
      * `return_partial_response` can be returned as partial reply.
@@ -166,8 +137,6 @@ public enum AutomatedAgentReplyType implements com.google.protobuf.ProtocolMessa
      */
     PARTIAL(1),
     /**
-     *
-     *
      * 
      * Final reply.
      * 
@@ -179,8 +148,6 @@ public enum AutomatedAgentReplyType implements com.google.protobuf.ProtocolMessa ; /** - * - * *
      * Not specified. This should never happen.
      * 
@@ -189,8 +156,6 @@ public enum AutomatedAgentReplyType implements com.google.protobuf.ProtocolMessa */ public static final int AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Partial reply. e.g. Aggregated responses in a `Fulfillment` that enables
      * `return_partial_response` can be returned as partial reply.
@@ -201,8 +166,6 @@ public enum AutomatedAgentReplyType implements com.google.protobuf.ProtocolMessa
      */
     public static final int PARTIAL_VALUE = 1;
     /**
-     *
-     *
      * 
      * Final reply.
      * 
@@ -211,6 +174,7 @@ public enum AutomatedAgentReplyType implements com.google.protobuf.ProtocolMessa */ public static final int FINAL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -235,14 +199,10 @@ public static AutomatedAgentReplyType valueOf(int value) { */ public static AutomatedAgentReplyType forNumber(int value) { switch (value) { - case 0: - return AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED; - case 1: - return PARTIAL; - case 2: - return FINAL; - default: - return null; + case 0: return AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED; + case 1: return PARTIAL; + case 2: return FINAL; + default: return null; } } @@ -250,31 +210,29 @@ public static AutomatedAgentReplyType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AutomatedAgentReplyType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AutomatedAgentReplyType findValueByNumber(int number) { + return AutomatedAgentReplyType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AutomatedAgentReplyType findValueByNumber(int number) { - return AutomatedAgentReplyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDescriptor().getEnumTypes().get(0); } private static final AutomatedAgentReplyType[] VALUES = values(); @@ -282,7 +240,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static AutomatedAgentReplyType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -302,14 +261,11 @@ private AutomatedAgentReplyType(int value) { public static final int DETECT_INTENT_RESPONSE_FIELD_NUMBER = 1; private com.google.cloud.dialogflow.v2.DetectIntentResponse detectIntentResponse_; /** - * - * *
    * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; - * * @return Whether the detectIntentResponse field is set. */ @java.lang.Override @@ -317,25 +273,18 @@ public boolean hasDetectIntentResponse() { return detectIntentResponse_ != null; } /** - * - * *
    * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; - * * @return The detectIntentResponse. */ @java.lang.Override public com.google.cloud.dialogflow.v2.DetectIntentResponse getDetectIntentResponse() { - return detectIntentResponse_ == null - ? com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance() - : detectIntentResponse_; + return detectIntentResponse_ == null ? com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance() : detectIntentResponse_; } /** - * - * *
    * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
    * 
@@ -343,60 +292,40 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse getDetectIntentRespon * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder - getDetectIntentResponseOrBuilder() { + public com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder() { return getDetectIntentResponse(); } public static final int AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER = 7; private int automatedAgentReplyType_; /** - * - * *
    * AutomatedAgentReply type.
    * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @return The enum numeric value on the wire for automatedAgentReplyType. */ - @java.lang.Override - public int getAutomatedAgentReplyTypeValue() { + @java.lang.Override public int getAutomatedAgentReplyTypeValue() { return automatedAgentReplyType_; } /** - * - * *
    * AutomatedAgentReply type.
    * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @return The automatedAgentReplyType. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType - getAutomatedAgentReplyType() { + @java.lang.Override public com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType result = - com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.valueOf( - automatedAgentReplyType_); - return result == null - ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType result = com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.valueOf(automatedAgentReplyType_); + return result == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.UNRECOGNIZED : result; } public static final int ALLOW_CANCELLATION_FIELD_NUMBER = 8; private boolean allowCancellation_; /** - * - * *
    * Indicates whether the partial automated agent reply is interruptible when a
    * later reply message arrives. e.g. if the agent specified some music as
@@ -404,7 +333,6 @@ public int getAutomatedAgentReplyTypeValue() {
    * 
* * bool allow_cancellation = 8; - * * @return The allowCancellation. */ @java.lang.Override @@ -413,7 +341,6 @@ public boolean getAllowCancellation() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -425,14 +352,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (detectIntentResponse_ != null) { output.writeMessage(1, getDetectIntentResponse()); } - if (automatedAgentReplyType_ - != com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType - .AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED - .getNumber()) { + if (automatedAgentReplyType_ != com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(7, automatedAgentReplyType_); } if (allowCancellation_ != false) { @@ -448,17 +373,16 @@ public int getSerializedSize() { size = 0; if (detectIntentResponse_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDetectIntentResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDetectIntentResponse()); } - if (automatedAgentReplyType_ - != com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType - .AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, automatedAgentReplyType_); + if (automatedAgentReplyType_ != com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, automatedAgentReplyType_); } if (allowCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, allowCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, allowCancellation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -468,20 +392,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.AutomatedAgentReply)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.AutomatedAgentReply other = - (com.google.cloud.dialogflow.v2.AutomatedAgentReply) obj; + com.google.cloud.dialogflow.v2.AutomatedAgentReply other = (com.google.cloud.dialogflow.v2.AutomatedAgentReply) obj; if (hasDetectIntentResponse() != other.hasDetectIntentResponse()) return false; if (hasDetectIntentResponse()) { - if (!getDetectIntentResponse().equals(other.getDetectIntentResponse())) return false; + if (!getDetectIntentResponse() + .equals(other.getDetectIntentResponse())) return false; } if (automatedAgentReplyType_ != other.automatedAgentReplyType_) return false; - if (getAllowCancellation() != other.getAllowCancellation()) return false; + if (getAllowCancellation() + != other.getAllowCancellation()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -500,133 +425,125 @@ public int hashCode() { hash = (37 * hash) + AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER; hash = (53 * hash) + automatedAgentReplyType_; hash = (37 * hash) + ALLOW_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowCancellation()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.AutomatedAgentReply parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.AutomatedAgentReply prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a response from an automated agent.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.AutomatedAgentReply} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.AutomatedAgentReply) com.google.cloud.dialogflow.v2.AutomatedAgentReplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.AutomatedAgentReply.class, - com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder.class); + com.google.cloud.dialogflow.v2.AutomatedAgentReply.class, com.google.cloud.dialogflow.v2.AutomatedAgentReply.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.AutomatedAgentReply.newBuilder() @@ -634,15 +551,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +578,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_AutomatedAgentReply_descriptor; } @java.lang.Override @@ -681,8 +599,7 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply build() { @java.lang.Override public com.google.cloud.dialogflow.v2.AutomatedAgentReply buildPartial() { - com.google.cloud.dialogflow.v2.AutomatedAgentReply result = - new com.google.cloud.dialogflow.v2.AutomatedAgentReply(this); + com.google.cloud.dialogflow.v2.AutomatedAgentReply result = new com.google.cloud.dialogflow.v2.AutomatedAgentReply(this); if (detectIntentResponseBuilder_ == null) { result.detectIntentResponse_ = detectIntentResponse_; } else { @@ -698,39 +615,38 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentReply buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.AutomatedAgentReply) { - return mergeFrom((com.google.cloud.dialogflow.v2.AutomatedAgentReply) other); + return mergeFrom((com.google.cloud.dialogflow.v2.AutomatedAgentReply)other); } else { super.mergeFrom(other); return this; @@ -738,8 +654,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.AutomatedAgentReply other) { - if (other == com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.AutomatedAgentReply.getDefaultInstance()) return this; if (other.hasDetectIntentResponse()) { mergeDetectIntentResponse(other.getDetectIntentResponse()); } @@ -768,8 +683,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.AutomatedAgentReply) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.AutomatedAgentReply) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -781,55 +695,41 @@ public Builder mergeFrom( private com.google.cloud.dialogflow.v2.DetectIntentResponse detectIntentResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.DetectIntentResponse, - com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder, - com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder> - detectIntentResponseBuilder_; + com.google.cloud.dialogflow.v2.DetectIntentResponse, com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder, com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder> detectIntentResponseBuilder_; /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; - * * @return Whether the detectIntentResponse field is set. */ public boolean hasDetectIntentResponse() { return detectIntentResponseBuilder_ != null || detectIntentResponse_ != null; } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; - * * @return The detectIntentResponse. */ public com.google.cloud.dialogflow.v2.DetectIntentResponse getDetectIntentResponse() { if (detectIntentResponseBuilder_ == null) { - return detectIntentResponse_ == null - ? com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance() - : detectIntentResponse_; + return detectIntentResponse_ == null ? com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance() : detectIntentResponse_; } else { return detectIntentResponseBuilder_.getMessage(); } } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; */ - public Builder setDetectIntentResponse( - com.google.cloud.dialogflow.v2.DetectIntentResponse value) { + public Builder setDetectIntentResponse(com.google.cloud.dialogflow.v2.DetectIntentResponse value) { if (detectIntentResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -843,8 +743,6 @@ public Builder setDetectIntentResponse( return this; } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
@@ -863,22 +761,17 @@ public Builder setDetectIntentResponse( return this; } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; */ - public Builder mergeDetectIntentResponse( - com.google.cloud.dialogflow.v2.DetectIntentResponse value) { + public Builder mergeDetectIntentResponse(com.google.cloud.dialogflow.v2.DetectIntentResponse value) { if (detectIntentResponseBuilder_ == null) { if (detectIntentResponse_ != null) { detectIntentResponse_ = - com.google.cloud.dialogflow.v2.DetectIntentResponse.newBuilder(detectIntentResponse_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.DetectIntentResponse.newBuilder(detectIntentResponse_).mergeFrom(value).buildPartial(); } else { detectIntentResponse_ = value; } @@ -890,8 +783,6 @@ public Builder mergeDetectIntentResponse( return this; } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
@@ -910,42 +801,33 @@ public Builder clearDetectIntentResponse() { return this; } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; */ - public com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder - getDetectIntentResponseBuilder() { - + public com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder getDetectIntentResponseBuilder() { + onChanged(); return getDetectIntentResponseFieldBuilder().getBuilder(); } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; */ - public com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder - getDetectIntentResponseOrBuilder() { + public com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder() { if (detectIntentResponseBuilder_ != null) { return detectIntentResponseBuilder_.getMessageOrBuilder(); } else { - return detectIntentResponse_ == null - ? com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance() - : detectIntentResponse_; + return detectIntentResponse_ == null ? + com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance() : detectIntentResponse_; } } /** - * - * *
      * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
      * 
@@ -953,17 +835,14 @@ public Builder clearDetectIntentResponse() { * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.DetectIntentResponse, - com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder, - com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder> + com.google.cloud.dialogflow.v2.DetectIntentResponse, com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder, com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder> getDetectIntentResponseFieldBuilder() { if (detectIntentResponseBuilder_ == null) { - detectIntentResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.DetectIntentResponse, - com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder, - com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder>( - getDetectIntentResponse(), getParentForChildren(), isClean()); + detectIntentResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.DetectIntentResponse, com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder, com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder>( + getDetectIntentResponse(), + getParentForChildren(), + isClean()); detectIntentResponse_ = null; } return detectIntentResponseBuilder_; @@ -971,114 +850,80 @@ public Builder clearDetectIntentResponse() { private int automatedAgentReplyType_ = 0; /** - * - * *
      * AutomatedAgentReply type.
      * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @return The enum numeric value on the wire for automatedAgentReplyType. */ - @java.lang.Override - public int getAutomatedAgentReplyTypeValue() { + @java.lang.Override public int getAutomatedAgentReplyTypeValue() { return automatedAgentReplyType_; } /** - * - * *
      * AutomatedAgentReply type.
      * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @param value The enum numeric value on the wire for automatedAgentReplyType to set. * @return This builder for chaining. */ public Builder setAutomatedAgentReplyTypeValue(int value) { - + automatedAgentReplyType_ = value; onChanged(); return this; } /** - * - * *
      * AutomatedAgentReply type.
      * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @return The automatedAgentReplyType. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType - getAutomatedAgentReplyType() { + public com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType result = - com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.valueOf( - automatedAgentReplyType_); - return result == null - ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType result = com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.valueOf(automatedAgentReplyType_); + return result == null ? com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType.UNRECOGNIZED : result; } /** - * - * *
      * AutomatedAgentReply type.
      * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @param value The automatedAgentReplyType to set. * @return This builder for chaining. */ - public Builder setAutomatedAgentReplyType( - com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType value) { + public Builder setAutomatedAgentReplyType(com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType value) { if (value == null) { throw new NullPointerException(); } - + automatedAgentReplyType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * AutomatedAgentReply type.
      * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @return This builder for chaining. */ public Builder clearAutomatedAgentReplyType() { - + automatedAgentReplyType_ = 0; onChanged(); return this; } - private boolean allowCancellation_; + private boolean allowCancellation_ ; /** - * - * *
      * Indicates whether the partial automated agent reply is interruptible when a
      * later reply message arrives. e.g. if the agent specified some music as
@@ -1086,7 +931,6 @@ public Builder clearAutomatedAgentReplyType() {
      * 
* * bool allow_cancellation = 8; - * * @return The allowCancellation. */ @java.lang.Override @@ -1094,8 +938,6 @@ public boolean getAllowCancellation() { return allowCancellation_; } /** - * - * *
      * Indicates whether the partial automated agent reply is interruptible when a
      * later reply message arrives. e.g. if the agent specified some music as
@@ -1103,19 +945,16 @@ public boolean getAllowCancellation() {
      * 
* * bool allow_cancellation = 8; - * * @param value The allowCancellation to set. * @return This builder for chaining. */ public Builder setAllowCancellation(boolean value) { - + allowCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether the partial automated agent reply is interruptible when a
      * later reply message arrives. e.g. if the agent specified some music as
@@ -1123,18 +962,17 @@ public Builder setAllowCancellation(boolean value) {
      * 
* * bool allow_cancellation = 8; - * * @return This builder for chaining. */ public Builder clearAllowCancellation() { - + allowCancellation_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1144,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.AutomatedAgentReply) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.AutomatedAgentReply) private static final com.google.cloud.dialogflow.v2.AutomatedAgentReply DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.AutomatedAgentReply(); } @@ -1158,16 +996,16 @@ public static com.google.cloud.dialogflow.v2.AutomatedAgentReply getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutomatedAgentReply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutomatedAgentReply(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutomatedAgentReply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutomatedAgentReply(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1182,4 +1020,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.AutomatedAgentReply getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java index 04e651f2c..9c101c99e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AutomatedAgentReplyOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; -public interface AutomatedAgentReplyOrBuilder - extends +public interface AutomatedAgentReplyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.AutomatedAgentReply) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; - * * @return Whether the detectIntentResponse field is set. */ boolean hasDetectIntentResponse(); /** - * - * *
    * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
    * 
* * .google.cloud.dialogflow.v2.DetectIntentResponse detect_intent_response = 1; - * * @return The detectIntentResponse. */ com.google.cloud.dialogflow.v2.DetectIntentResponse getDetectIntentResponse(); /** - * - * *
    * Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call.
    * 
@@ -59,38 +35,25 @@ public interface AutomatedAgentReplyOrBuilder com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder(); /** - * - * *
    * AutomatedAgentReply type.
    * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @return The enum numeric value on the wire for automatedAgentReplyType. */ int getAutomatedAgentReplyTypeValue(); /** - * - * *
    * AutomatedAgentReply type.
    * 
* - * - * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; - * - * + * .google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7; * @return The automatedAgentReplyType. */ - com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType - getAutomatedAgentReplyType(); + com.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType(); /** - * - * *
    * Indicates whether the partial automated agent reply is interruptible when a
    * later reply message arrives. e.g. if the agent specified some music as
@@ -98,7 +61,6 @@ public interface AutomatedAgentReplyOrBuilder
    * 
* * bool allow_cancellation = 8; - * * @return The allowCancellation. */ boolean getAllowCancellation(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java index a6c56e1b3..a605d43b1 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchCreateEntitiesRequest} */ -public final class BatchCreateEntitiesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchCreateEntitiesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) BatchCreateEntitiesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchCreateEntitiesRequest.newBuilder() to construct. private BatchCreateEntitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchCreateEntitiesRequest() { parent_ = ""; entities_ = java.util.Collections.emptyList(); @@ -45,15 +27,16 @@ private BatchCreateEntitiesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchCreateEntitiesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchCreateEntitiesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,41 @@ private BatchCreateEntitiesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entities_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.EntityType.Entity.parser(), - extensionRegistry)); - break; + parent_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entities_.add( + input.readMessage(com.google.cloud.dialogflow.v2.EntityType.Entity.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entities_ = java.util.Collections.unmodifiableList(entities_); @@ -121,36 +99,28 @@ private BatchCreateEntitiesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.class, - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.class, com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the entity type to create entities in. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +129,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the entity type to create entities in. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,87 +163,66 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENTITIES_FIELD_NUMBER = 2; private java.util.List entities_; /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getEntitiesList() { return entities_; } /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getEntitiesOrBuilderList() { return entities_; } /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getEntitiesCount() { return entities_.size(); } /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { return entities_.get(index); } /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( + int index) { return entities_.get(index); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -285,7 +232,6 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -294,15 +240,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -312,15 +257,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -329,7 +275,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +286,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -364,7 +310,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, entities_.get(i)); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); @@ -377,17 +324,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest other = - (com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) obj; + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest other = (com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getEntitiesList().equals(other.getEntitiesList())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,127 +362,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchCreateEntitiesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.class, - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.class, com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.newBuilder() @@ -541,17 +480,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntitiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor; } @java.lang.Override @@ -590,8 +529,7 @@ public com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest buildPartial() { - com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest result = - new com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest(this); + com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest result = new com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (entitiesBuilder_ == null) { @@ -612,39 +550,38 @@ public com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest)other); } else { super.mergeFrom(other); return this; @@ -652,8 +589,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest other) { - if (other == com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -676,10 +612,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchCreateEntitiesReque entitiesBuilder_ = null; entities_ = other.entities_; bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntitiesFieldBuilder() - : null; + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; } else { entitiesBuilder_.addAllMessages(other.entities_); } @@ -708,8 +643,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -718,28 +652,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the entity type to create entities in. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -748,24 +677,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the entity type to create entities in. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -773,102 +699,80 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the entity type to create entities in. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to create entities in. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to create entities in. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private java.util.List entities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = - new java.util.ArrayList(entities_); + entities_ = new java.util.ArrayList(entities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> - entitiesBuilder_; + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> entitiesBuilder_; /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getEntitiesList() { if (entitiesBuilder_ == null) { @@ -878,15 +782,11 @@ public java.util.List getEntit } } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getEntitiesCount() { if (entitiesBuilder_ == null) { @@ -896,15 +796,11 @@ public int getEntitiesCount() { } } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { if (entitiesBuilder_ == null) { @@ -914,17 +810,14 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { } } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { + public Builder setEntities( + int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -938,15 +831,11 @@ public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType. return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEntities( int index, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -960,15 +849,11 @@ public Builder setEntities( return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { @@ -984,17 +869,14 @@ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity valu return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { + public Builder addEntities( + int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1008,15 +890,11 @@ public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType. return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEntities( com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -1030,15 +908,11 @@ public Builder addEntities( return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEntities( int index, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -1052,21 +926,18 @@ public Builder addEntities( return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllEntities( java.lang.Iterable values) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); onChanged(); } else { entitiesBuilder_.addAllMessages(values); @@ -1074,15 +945,11 @@ public Builder addAllEntities( return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEntities() { if (entitiesBuilder_ == null) { @@ -1095,15 +962,11 @@ public Builder clearEntities() { return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeEntities(int index) { if (entitiesBuilder_ == null) { @@ -1116,51 +979,39 @@ public Builder removeEntities(int index) { return this; } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuilder( + int index) { return getEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( int index) { if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { + return entities_.get(index); } else { return entitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getEntitiesOrBuilderList() { + public java.util.List + getEntitiesOrBuilderList() { if (entitiesBuilder_ != null) { return entitiesBuilder_.getMessageOrBuilderList(); } else { @@ -1168,63 +1019,49 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu } } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); + return getEntitiesFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder(int index) { - return getEntitiesFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); } /** - * - * *
      * Required. The entities to create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getEntitiesBuilderList() { + public java.util.List + getEntitiesBuilderList() { return getEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> getEntitiesFieldBuilder() { if (entitiesBuilder_ == null) { - entitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder>( - entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entities_ = null; } return entitiesBuilder_; @@ -1232,8 +1069,6 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1243,13 +1078,13 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1258,8 +1093,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1269,14 +1102,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1284,8 +1118,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1295,22 +1127,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1320,18 +1150,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1341,23 +1168,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1367,12 +1194,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) private static final com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest(); } @@ -1381,16 +1208,16 @@ public static com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateEntitiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchCreateEntitiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateEntitiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchCreateEntitiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1405,4 +1232,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java index 9eca051b6..9c01ce05b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchCreateEntitiesRequestOrBuilder.java @@ -1,124 +1,79 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchCreateEntitiesRequestOrBuilder - extends +public interface BatchCreateEntitiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchCreateEntitiesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the entity type to create entities in. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the entity type to create entities in. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getEntitiesList(); + java.util.List + getEntitiesList(); /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index); /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getEntitiesCount(); /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getEntitiesOrBuilderList(); /** - * - * *
    * Required. The entities to create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder(int index); + com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( + int index); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -128,13 +83,10 @@ public interface BatchCreateEntitiesRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -144,8 +96,8 @@ public interface BatchCreateEntitiesRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java similarity index 72% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java index 825da49b0..470acac78 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest} */ -public final class BatchDeleteEntitiesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDeleteEntitiesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) BatchDeleteEntitiesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDeleteEntitiesRequest.newBuilder() to construct. private BatchDeleteEntitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDeleteEntitiesRequest() { parent_ = ""; entityValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private BatchDeleteEntitiesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDeleteEntitiesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDeleteEntitiesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,43 +56,41 @@ private BatchDeleteEntitiesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityValues_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entityValues_.add(s); - break; + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityValues_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entityValues_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entityValues_ = entityValues_.getUnmodifiableView(); @@ -118,36 +99,28 @@ private BatchDeleteEntitiesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.class, - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.class, com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the entity type to delete entries for. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -156,32 +129,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the entity type to delete entries for. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -192,8 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENTITY_VALUES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList entityValues_; /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -201,15 +170,13 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the entityValues. */ - public com.google.protobuf.ProtocolStringList getEntityValuesList() { + public com.google.protobuf.ProtocolStringList + getEntityValuesList() { return entityValues_; } /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -217,15 +184,12 @@ public com.google.protobuf.ProtocolStringList getEntityValuesList() {
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of entityValues. */ public int getEntityValuesCount() { return entityValues_.size(); } /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -233,7 +197,6 @@ public int getEntityValuesCount() {
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The entityValues at the given index. */ @@ -241,8 +204,6 @@ public java.lang.String getEntityValues(int index) { return entityValues_.get(index); } /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -250,19 +211,17 @@ public java.lang.String getEntityValues(int index) {
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the entityValues at the given index. */ - public com.google.protobuf.ByteString getEntityValuesBytes(int index) { + public com.google.protobuf.ByteString + getEntityValuesBytes(int index) { return entityValues_.getByteString(index); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -272,7 +231,6 @@ public com.google.protobuf.ByteString getEntityValuesBytes(int index) {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -281,15 +239,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -299,15 +256,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -316,7 +274,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -369,17 +327,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest other = - (com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getEntityValuesList().equals(other.getEntityValuesList())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest other = (com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getEntityValuesList() + .equals(other.getEntityValuesList())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,127 +365,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.class, - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.class, com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.newBuilder() @@ -533,15 +483,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -555,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor; } @java.lang.Override @@ -576,8 +527,7 @@ public com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest buildPartial() { - com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest result = - new com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest(this); + com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest result = new com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -594,39 +544,38 @@ public com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest)other); } else { super.mergeFrom(other); return this; @@ -634,8 +583,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest other) { - if (other == com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -673,8 +621,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,28 +630,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the entity type to delete entries for. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -713,24 +655,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the entity type to delete entries for. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -738,87 +677,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the entity type to delete entries for. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to delete entries for. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to delete entries for. Format:
      * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList entityValues_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList entityValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEntityValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entityValues_ = new com.google.protobuf.LazyStringArrayList(entityValues_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -826,15 +748,13 @@ private void ensureEntityValuesIsMutable() {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the entityValues. */ - public com.google.protobuf.ProtocolStringList getEntityValuesList() { + public com.google.protobuf.ProtocolStringList + getEntityValuesList() { return entityValues_.getUnmodifiableView(); } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -842,15 +762,12 @@ public com.google.protobuf.ProtocolStringList getEntityValuesList() {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of entityValues. */ public int getEntityValuesCount() { return entityValues_.size(); } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -858,7 +775,6 @@ public int getEntityValuesCount() {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The entityValues at the given index. */ @@ -866,8 +782,6 @@ public java.lang.String getEntityValues(int index) { return entityValues_.get(index); } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -875,16 +789,14 @@ public java.lang.String getEntityValues(int index) {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the entityValues at the given index. */ - public com.google.protobuf.ByteString getEntityValuesBytes(int index) { + public com.google.protobuf.ByteString + getEntityValuesBytes(int index) { return entityValues_.getByteString(index); } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -892,23 +804,21 @@ public com.google.protobuf.ByteString getEntityValuesBytes(int index) {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The entityValues to set. * @return This builder for chaining. */ - public Builder setEntityValues(int index, java.lang.String value) { + public Builder setEntityValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEntityValuesIsMutable(); + throw new NullPointerException(); + } + ensureEntityValuesIsMutable(); entityValues_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -916,22 +826,20 @@ public Builder setEntityValues(int index, java.lang.String value) {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The entityValues to add. * @return This builder for chaining. */ - public Builder addEntityValues(java.lang.String value) { + public Builder addEntityValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEntityValuesIsMutable(); + throw new NullPointerException(); + } + ensureEntityValuesIsMutable(); entityValues_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -939,19 +847,18 @@ public Builder addEntityValues(java.lang.String value) {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The entityValues to add. * @return This builder for chaining. */ - public Builder addAllEntityValues(java.lang.Iterable values) { + public Builder addAllEntityValues( + java.lang.Iterable values) { ensureEntityValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityValues_); onChanged(); return this; } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -959,7 +866,6 @@ public Builder addAllEntityValues(java.lang.Iterable values) {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEntityValues() { @@ -969,8 +875,6 @@ public Builder clearEntityValues() { return this; } /** - * - * *
      * Required. The reference `values` of the entities to delete. Note that
      * these are not fully-qualified names, i.e. they don't start with
@@ -978,15 +882,15 @@ public Builder clearEntityValues() {
      * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the entityValues to add. * @return This builder for chaining. */ - public Builder addEntityValuesBytes(com.google.protobuf.ByteString value) { + public Builder addEntityValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEntityValuesIsMutable(); entityValues_.add(value); onChanged(); @@ -995,8 +899,6 @@ public Builder addEntityValuesBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1006,13 +908,13 @@ public Builder addEntityValuesBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1021,8 +923,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1032,14 +932,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1047,8 +948,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1058,22 +957,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1083,18 +980,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1104,23 +998,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1130,12 +1024,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) private static final com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest(); } @@ -1144,16 +1038,16 @@ public static com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDeleteEntitiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchDeleteEntitiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteEntitiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchDeleteEntitiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1168,4 +1062,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java index a42b63722..63923b84a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntitiesRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchDeleteEntitiesRequestOrBuilder - extends +public interface BatchDeleteEntitiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the entity type to delete entries for. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the entity type to delete entries for. Format:
    * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -64,13 +37,11 @@ public interface BatchDeleteEntitiesRequestOrBuilder
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the entityValues. */ - java.util.List getEntityValuesList(); + java.util.List + getEntityValuesList(); /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -78,13 +49,10 @@ public interface BatchDeleteEntitiesRequestOrBuilder
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of entityValues. */ int getEntityValuesCount(); /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -92,14 +60,11 @@ public interface BatchDeleteEntitiesRequestOrBuilder
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The entityValues at the given index. */ java.lang.String getEntityValues(int index); /** - * - * *
    * Required. The reference `values` of the entities to delete. Note that
    * these are not fully-qualified names, i.e. they don't start with
@@ -107,15 +72,13 @@ public interface BatchDeleteEntitiesRequestOrBuilder
    * 
* * repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the entityValues at the given index. */ - com.google.protobuf.ByteString getEntityValuesBytes(int index); + com.google.protobuf.ByteString + getEntityValuesBytes(int index); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -125,13 +88,10 @@ public interface BatchDeleteEntitiesRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -141,8 +101,8 @@ public interface BatchDeleteEntitiesRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java index b7508b20d..93ec5682c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest} */ -public final class BatchDeleteEntityTypesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDeleteEntityTypesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) BatchDeleteEntityTypesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDeleteEntityTypesRequest.newBuilder() to construct. private BatchDeleteEntityTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDeleteEntityTypesRequest() { parent_ = ""; entityTypeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private BatchDeleteEntityTypesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDeleteEntityTypesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDeleteEntityTypesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private BatchDeleteEntityTypesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityTypeNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entityTypeNames_.add(s); - break; + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityTypeNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + entityTypeNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entityTypeNames_ = entityTypeNames_.getUnmodifiableView(); @@ -110,36 +92,28 @@ private BatchDeleteEntityTypesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.class, - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.class, com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the agent to delete all entities types for. Format:
    * `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the agent to delete all entities types for. Format:
    * `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,45 +156,37 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENTITY_TYPE_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList entityTypeNames_; /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the entityTypeNames. */ - public com.google.protobuf.ProtocolStringList getEntityTypeNamesList() { + public com.google.protobuf.ProtocolStringList + getEntityTypeNamesList() { return entityTypeNames_; } /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of entityTypeNames. */ public int getEntityTypeNamesCount() { return entityTypeNames_.size(); } /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The entityTypeNames at the given index. */ @@ -230,24 +194,21 @@ public java.lang.String getEntityTypeNames(int index) { return entityTypeNames_.get(index); } /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the entityTypeNames at the given index. */ - public com.google.protobuf.ByteString getEntityTypeNamesBytes(int index) { + public com.google.protobuf.ByteString + getEntityTypeNamesBytes(int index) { return entityTypeNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +220,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -294,16 +256,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest other = - (com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) obj; + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest other = (com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getEntityTypeNamesList().equals(other.getEntityTypeNamesList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getEntityTypeNamesList() + .equals(other.getEntityTypeNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +290,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.class, - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.class, com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.newBuilder() @@ -455,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,14 +429,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.getDefaultInstance(); } @@ -497,8 +450,7 @@ public com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest buildPartial() { - com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest result = - new com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest(this); + com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest result = new com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -514,39 +466,38 @@ public com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest)other); } else { super.mergeFrom(other); return this; @@ -554,9 +505,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest other) { - if (other - == com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -590,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -600,28 +548,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,24 +573,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -655,124 +595,101 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList entityTypeNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList entityTypeNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEntityTypeNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entityTypeNames_ = new com.google.protobuf.LazyStringArrayList(entityTypeNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the entityTypeNames. */ - public com.google.protobuf.ProtocolStringList getEntityTypeNamesList() { + public com.google.protobuf.ProtocolStringList + getEntityTypeNamesList() { return entityTypeNames_.getUnmodifiableView(); } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of entityTypeNames. */ public int getEntityTypeNamesCount() { return entityTypeNames_.size(); } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The entityTypeNames at the given index. */ @@ -780,95 +697,85 @@ public java.lang.String getEntityTypeNames(int index) { return entityTypeNames_.get(index); } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the entityTypeNames at the given index. */ - public com.google.protobuf.ByteString getEntityTypeNamesBytes(int index) { + public com.google.protobuf.ByteString + getEntityTypeNamesBytes(int index) { return entityTypeNames_.getByteString(index); } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The entityTypeNames to set. * @return This builder for chaining. */ - public Builder setEntityTypeNames(int index, java.lang.String value) { + public Builder setEntityTypeNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEntityTypeNamesIsMutable(); + throw new NullPointerException(); + } + ensureEntityTypeNamesIsMutable(); entityTypeNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The entityTypeNames to add. * @return This builder for chaining. */ - public Builder addEntityTypeNames(java.lang.String value) { + public Builder addEntityTypeNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEntityTypeNamesIsMutable(); + throw new NullPointerException(); + } + ensureEntityTypeNamesIsMutable(); entityTypeNames_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The entityTypeNames to add. * @return This builder for chaining. */ - public Builder addAllEntityTypeNames(java.lang.Iterable values) { + public Builder addAllEntityTypeNames( + java.lang.Iterable values) { ensureEntityTypeNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityTypeNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityTypeNames_); onChanged(); return this; } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEntityTypeNames() { @@ -878,31 +785,29 @@ public Builder clearEntityTypeNames() { return this; } /** - * - * *
      * Required. The names entity types to delete. All names must point to the
      * same agent as `parent`.
      * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the entityTypeNames to add. * @return This builder for chaining. */ - public Builder addEntityTypeNamesBytes(com.google.protobuf.ByteString value) { + public Builder addEntityTypeNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEntityTypeNamesIsMutable(); entityTypeNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,13 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) - private static final com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest(); } @@ -927,16 +831,16 @@ public static com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDeleteEntityTypesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchDeleteEntityTypesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteEntityTypesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchDeleteEntityTypesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +855,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java index 8c782ad19..4e1b66b2a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteEntityTypesRequestOrBuilder.java @@ -1,111 +1,76 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchDeleteEntityTypesRequestOrBuilder - extends +public interface BatchDeleteEntityTypesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the agent to delete all entities types for. Format:
    * `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the agent to delete all entities types for. Format:
    * `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the entityTypeNames. */ - java.util.List getEntityTypeNamesList(); + java.util.List + getEntityTypeNamesList(); /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of entityTypeNames. */ int getEntityTypeNamesCount(); /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The entityTypeNames at the given index. */ java.lang.String getEntityTypeNames(int index); /** - * - * *
    * Required. The names entity types to delete. All names must point to the
    * same agent as `parent`.
    * 
* * repeated string entity_type_names = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the entityTypeNames at the given index. */ - com.google.protobuf.ByteString getEntityTypeNamesBytes(int index); + com.google.protobuf.ByteString + getEntityTypeNamesBytes(int index); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java index dbccb8d85..ff0a9fee3 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteIntentsRequest} */ -public final class BatchDeleteIntentsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDeleteIntentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) BatchDeleteIntentsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDeleteIntentsRequest.newBuilder() to construct. private BatchDeleteIntentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchDeleteIntentsRequest() { parent_ = ""; intents_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private BatchDeleteIntentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDeleteIntentsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDeleteIntentsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private BatchDeleteIntentsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - intents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - intents_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.Intent.parser(), extensionRegistry)); - break; + parent_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + intents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + intents_.add( + input.readMessage(com.google.cloud.dialogflow.v2.Intent.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { intents_ = java.util.Collections.unmodifiableList(intents_); @@ -111,36 +92,28 @@ private BatchDeleteIntentsRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.class, - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.class, com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the agent to delete all entities types for. Format:
    * `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the agent to delete all entities types for. Format:
    * `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -185,89 +156,69 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INTENTS_FIELD_NUMBER = 2; private java.util.List intents_; /** - * - * *
    * Required. The collection of intents to delete. Only intent `name` must be
    * filled in.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getIntentsList() { return intents_; } /** - * - * *
    * Required. The collection of intents to delete. Only intent `name` must be
    * filled in.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getIntentsOrBuilderList() { return intents_; } /** - * - * *
    * Required. The collection of intents to delete. Only intent `name` must be
    * filled in.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getIntentsCount() { return intents_.size(); } /** - * - * *
    * Required. The collection of intents to delete. Only intent `name` must be
    * filled in.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.Intent getIntents(int index) { return intents_.get(index); } /** - * - * *
    * Required. The collection of intents to delete. Only intent `name` must be
    * filled in.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder( + int index) { return intents_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -299,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < intents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, intents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, intents_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,16 +262,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest other = - (com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) obj; + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest other = (com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getIntentsList().equals(other.getIntentsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getIntentsList() + .equals(other.getIntentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,127 +296,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchDeleteIntentsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.class, - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.class, com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.newBuilder() @@ -470,17 +414,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getIntentsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchDeleteIntentsRequest_descriptor; } @java.lang.Override @@ -517,8 +461,7 @@ public com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest buildPartial() { - com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest result = - new com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest(this); + com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest result = new com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (intentsBuilder_ == null) { @@ -538,39 +481,38 @@ public com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest)other); } else { super.mergeFrom(other); return this; @@ -578,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest other) { - if (other == com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -602,10 +543,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchDeleteIntentsReques intentsBuilder_ = null; intents_ = other.intents_; bitField0_ = (bitField0_ & ~0x00000001); - intentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIntentsFieldBuilder() - : null; + intentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntentsFieldBuilder() : null; } else { intentsBuilder_.addAllMessages(other.intents_); } @@ -630,8 +570,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -640,28 +579,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -670,24 +604,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -695,102 +626,81 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to delete all entities types for. Format:
      * `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private java.util.List intents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIntentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { intents_ = new java.util.ArrayList(intents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder> - intentsBuilder_; + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder> intentsBuilder_; /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getIntentsList() { if (intentsBuilder_ == null) { @@ -800,16 +710,12 @@ public java.util.List getIntentsList() { } } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getIntentsCount() { if (intentsBuilder_ == null) { @@ -819,16 +725,12 @@ public int getIntentsCount() { } } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent getIntents(int index) { if (intentsBuilder_ == null) { @@ -838,18 +740,15 @@ public com.google.cloud.dialogflow.v2.Intent getIntents(int index) { } } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setIntents(int index, com.google.cloud.dialogflow.v2.Intent value) { + public Builder setIntents( + int index, com.google.cloud.dialogflow.v2.Intent value) { if (intentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -863,16 +762,12 @@ public Builder setIntents(int index, com.google.cloud.dialogflow.v2.Intent value return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setIntents( int index, com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { @@ -886,16 +781,12 @@ public Builder setIntents( return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addIntents(com.google.cloud.dialogflow.v2.Intent value) { if (intentsBuilder_ == null) { @@ -911,18 +802,15 @@ public Builder addIntents(com.google.cloud.dialogflow.v2.Intent value) { return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addIntents(int index, com.google.cloud.dialogflow.v2.Intent value) { + public Builder addIntents( + int index, com.google.cloud.dialogflow.v2.Intent value) { if (intentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -936,18 +824,15 @@ public Builder addIntents(int index, com.google.cloud.dialogflow.v2.Intent value return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addIntents(com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { + public Builder addIntents( + com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { if (intentsBuilder_ == null) { ensureIntentsIsMutable(); intents_.add(builderForValue.build()); @@ -958,16 +843,12 @@ public Builder addIntents(com.google.cloud.dialogflow.v2.Intent.Builder builderF return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addIntents( int index, com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { @@ -981,22 +862,19 @@ public Builder addIntents( return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllIntents( java.lang.Iterable values) { if (intentsBuilder_ == null) { ensureIntentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intents_); onChanged(); } else { intentsBuilder_.addAllMessages(values); @@ -1004,16 +882,12 @@ public Builder addAllIntents( return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearIntents() { if (intentsBuilder_ == null) { @@ -1026,16 +900,12 @@ public Builder clearIntents() { return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeIntents(int index) { if (intentsBuilder_ == null) { @@ -1048,53 +918,42 @@ public Builder removeIntents(int index) { return this; } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.Intent.Builder getIntentsBuilder(int index) { + public com.google.cloud.dialogflow.v2.Intent.Builder getIntentsBuilder( + int index) { return getIntentsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder( + int index) { if (intentsBuilder_ == null) { - return intents_.get(index); - } else { + return intents_.get(index); } else { return intentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getIntentsOrBuilderList() { + public java.util.List + getIntentsOrBuilderList() { if (intentsBuilder_ != null) { return intentsBuilder_.getMessageOrBuilderList(); } else { @@ -1102,72 +961,59 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int in } } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent.Builder addIntentsBuilder() { - return getIntentsFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); + return getIntentsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.Intent.Builder addIntentsBuilder(int index) { - return getIntentsFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.Intent.Builder addIntentsBuilder( + int index) { + return getIntentsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); } /** - * - * *
      * Required. The collection of intents to delete. Only intent `name` must be
      * filled in.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getIntentsBuilderList() { + public java.util.List + getIntentsBuilderList() { return getIntentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder> + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder> getIntentsFieldBuilder() { if (intentsBuilder_ == null) { - intentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder>( - intents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + intentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder>( + intents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); intents_ = null; } return intentsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1177,12 +1023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) private static final com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest(); } @@ -1191,16 +1037,16 @@ public static com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDeleteIntentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchDeleteIntentsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteIntentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchDeleteIntentsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1215,4 +1061,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.BatchDeleteIntentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java new file mode 100644 index 000000000..08d79a907 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchDeleteIntentsRequestOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/intent.proto + +package com.google.cloud.dialogflow.v2; + +public interface BatchDeleteIntentsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchDeleteIntentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the agent to delete all entities types for. Format:
+   * `projects/<Project ID>/agent`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The name of the agent to delete all entities types for. Format:
+   * `projects/<Project ID>/agent`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The collection of intents to delete. Only intent `name` must be
+   * filled in.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getIntentsList(); + /** + *
+   * Required. The collection of intents to delete. Only intent `name` must be
+   * filled in.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dialogflow.v2.Intent getIntents(int index); + /** + *
+   * Required. The collection of intents to delete. Only intent `name` must be
+   * filled in.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + int getIntentsCount(); + /** + *
+   * Required. The collection of intents to delete. Only intent `name` must be
+   * filled in.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getIntentsOrBuilderList(); + /** + *
+   * Required. The collection of intents to delete. Only intent `name` must be
+   * filled in.
+   * 
+ * + * repeated .google.cloud.dialogflow.v2.Intent intents = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder( + int index); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java index e794ba855..60e5644df 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest} */ -public final class BatchUpdateEntitiesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchUpdateEntitiesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) BatchUpdateEntitiesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchUpdateEntitiesRequest.newBuilder() to construct. private BatchUpdateEntitiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchUpdateEntitiesRequest() { parent_ = ""; entities_ = java.util.Collections.emptyList(); @@ -45,15 +27,16 @@ private BatchUpdateEntitiesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchUpdateEntitiesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchUpdateEntitiesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,61 +56,54 @@ private BatchUpdateEntitiesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entities_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.EntityType.Entity.parser(), - extensionRegistry)); - break; + parent_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entities_.add( + input.readMessage(com.google.cloud.dialogflow.v2.EntityType.Entity.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; + languageCode_ = s; + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entities_ = java.util.Collections.unmodifiableList(entities_); @@ -136,36 +112,28 @@ private BatchUpdateEntitiesRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.class, - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.class, com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the entity type to update or create entities in.
    * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -174,32 +142,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the entity type to update or create entities in.
    * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -210,87 +176,66 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENTITIES_FIELD_NUMBER = 2; private java.util.List entities_; /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getEntitiesList() { return entities_; } /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getEntitiesOrBuilderList() { return entities_; } /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getEntitiesCount() { return entities_.size(); } /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { return entities_.get(index); } /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( + int index) { return entities_.get(index); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -300,7 +245,6 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -309,15 +253,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -327,15 +270,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -346,15 +290,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -362,15 +302,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -378,14 +314,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -393,7 +326,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,7 +337,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -431,13 +364,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, entities_.get(i)); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -447,20 +382,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest other = - (com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) obj; + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest other = (com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getEntitiesList().equals(other.getEntitiesList())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -491,127 +429,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.class, - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.class, com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.newBuilder() @@ -619,17 +547,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntitiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -653,9 +581,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor; } @java.lang.Override @@ -674,8 +602,7 @@ public com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest buildPartial() { - com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest result = - new com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest(this); + com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest result = new com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (entitiesBuilder_ == null) { @@ -701,39 +628,38 @@ public com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest)other); } else { super.mergeFrom(other); return this; @@ -741,8 +667,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest other) { - if (other == com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -765,10 +690,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateEntitiesReque entitiesBuilder_ = null; entities_ = other.entities_; bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntitiesFieldBuilder() - : null; + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; } else { entitiesBuilder_.addAllMessages(other.entities_); } @@ -800,8 +724,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -810,28 +733,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the entity type to update or create entities in.
      * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -840,24 +758,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the entity type to update or create entities in.
      * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -865,102 +780,80 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the entity type to update or create entities in.
      * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to update or create entities in.
      * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to update or create entities in.
      * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private java.util.List entities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = - new java.util.ArrayList(entities_); + entities_ = new java.util.ArrayList(entities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> - entitiesBuilder_; + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> entitiesBuilder_; /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getEntitiesList() { if (entitiesBuilder_ == null) { @@ -970,15 +863,11 @@ public java.util.List getEntit } } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getEntitiesCount() { if (entitiesBuilder_ == null) { @@ -988,15 +877,11 @@ public int getEntitiesCount() { } } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { if (entitiesBuilder_ == null) { @@ -1006,17 +891,14 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { } } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { + public Builder setEntities( + int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1030,15 +912,11 @@ public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType. return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEntities( int index, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -1052,15 +930,11 @@ public Builder setEntities( return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { @@ -1076,17 +950,14 @@ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity valu return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { + public Builder addEntities( + int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1100,15 +971,11 @@ public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType. return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEntities( com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -1122,15 +989,11 @@ public Builder addEntities( return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEntities( int index, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -1144,21 +1007,18 @@ public Builder addEntities( return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllEntities( java.lang.Iterable values) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); onChanged(); } else { entitiesBuilder_.addAllMessages(values); @@ -1166,15 +1026,11 @@ public Builder addAllEntities( return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEntities() { if (entitiesBuilder_ == null) { @@ -1187,15 +1043,11 @@ public Builder clearEntities() { return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeEntities(int index) { if (entitiesBuilder_ == null) { @@ -1208,51 +1060,39 @@ public Builder removeEntities(int index) { return this; } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuilder( + int index) { return getEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( int index) { if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { + return entities_.get(index); } else { return entitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getEntitiesOrBuilderList() { + public java.util.List + getEntitiesOrBuilderList() { if (entitiesBuilder_ != null) { return entitiesBuilder_.getMessageOrBuilderList(); } else { @@ -1260,63 +1100,49 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu } } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); + return getEntitiesFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder(int index) { - return getEntitiesFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); } /** - * - * *
      * Required. The entities to update or create.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getEntitiesBuilderList() { + public java.util.List + getEntitiesBuilderList() { return getEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> getEntitiesFieldBuilder() { if (entitiesBuilder_ == null) { - entitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder>( - entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entities_ = null; } return entitiesBuilder_; @@ -1324,8 +1150,6 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1335,13 +1159,13 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuild
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1350,8 +1174,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1361,14 +1183,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1376,8 +1199,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1387,22 +1208,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1412,18 +1231,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1433,16 +1249,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -1450,55 +1266,39 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1514,16 +1314,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1534,20 +1332,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1559,14 +1354,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1580,68 +1372,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1651,12 +1430,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) private static final com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest(); } @@ -1665,16 +1444,16 @@ public static com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateEntitiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchUpdateEntitiesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateEntitiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchUpdateEntitiesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1689,4 +1468,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java index a99a2c82c..c55cd5cad 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntitiesRequestOrBuilder.java @@ -1,124 +1,79 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchUpdateEntitiesRequestOrBuilder - extends +public interface BatchUpdateEntitiesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the entity type to update or create entities in.
    * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the entity type to update or create entities in.
    * Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getEntitiesList(); + java.util.List + getEntitiesList(); /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index); /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getEntitiesCount(); /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getEntitiesOrBuilderList(); /** - * - * *
    * Required. The entities to update or create.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder(int index); + com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( + int index); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -128,13 +83,10 @@ public interface BatchUpdateEntitiesRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -144,46 +96,35 @@ public interface BatchUpdateEntitiesRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java similarity index 71% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java index 08efcb0cb..ed203b4e3 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest} */ -public final class BatchUpdateEntityTypesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchUpdateEntityTypesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) BatchUpdateEntityTypesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchUpdateEntityTypesRequest.newBuilder() to construct. private BatchUpdateEntityTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchUpdateEntityTypesRequest() { parent_ = ""; languageCode_ = ""; @@ -44,15 +26,16 @@ private BatchUpdateEntityTypesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchUpdateEntityTypesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchUpdateEntityTypesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,106 +54,92 @@ private BatchUpdateEntityTypesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - entityTypeBatchCase_ = 2; - entityTypeBatch_ = s; - break; + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + entityTypeBatchCase_ = 2; + entityTypeBatch_ = s; + break; + } + case 26: { + com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder subBuilder = null; + if (entityTypeBatchCase_ == 3) { + subBuilder = ((com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_).toBuilder(); } - case 26: - { - com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder subBuilder = null; - if (entityTypeBatchCase_ == 3) { - subBuilder = - ((com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_).toBuilder(); - } - entityTypeBatch_ = - input.readMessage( - com.google.cloud.dialogflow.v2.EntityTypeBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_); - entityTypeBatch_ = subBuilder.buildPartial(); - } - entityTypeBatchCase_ = 3; - break; + entityTypeBatch_ = + input.readMessage(com.google.cloud.dialogflow.v2.EntityTypeBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_); + entityTypeBatch_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + entityTypeBatchCase_ = 3; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; + languageCode_ = s; + break; + } + case 42: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 42: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.class, - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.class, com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.Builder.class); } private int entityTypeBatchCase_ = 0; private java.lang.Object entityTypeBatch_; - public enum EntityTypeBatchCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENTITY_TYPE_BATCH_URI(2), ENTITY_TYPE_BATCH_INLINE(3), ENTITYTYPEBATCH_NOT_SET(0); private final int value; - private EntityTypeBatchCase(int value) { this.value = value; } @@ -186,40 +155,32 @@ public static EntityTypeBatchCase valueOf(int value) { public static EntityTypeBatchCase forNumber(int value) { switch (value) { - case 2: - return ENTITY_TYPE_BATCH_URI; - case 3: - return ENTITY_TYPE_BATCH_INLINE; - case 0: - return ENTITYTYPEBATCH_NOT_SET; - default: - return null; + case 2: return ENTITY_TYPE_BATCH_URI; + case 3: return ENTITY_TYPE_BATCH_INLINE; + case 0: return ENTITYTYPEBATCH_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public EntityTypeBatchCase getEntityTypeBatchCase() { - return EntityTypeBatchCase.forNumber(entityTypeBatchCase_); + public EntityTypeBatchCase + getEntityTypeBatchCase() { + return EntityTypeBatchCase.forNumber( + entityTypeBatchCase_); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the agent to update or create entity types in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -228,32 +189,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the agent to update or create entity types in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -263,8 +222,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENTITY_TYPE_BATCH_URI_FIELD_NUMBER = 2; /** - * - * *
    * The URI to a Google Cloud Storage file containing entity types to update
    * or create. The file format can either be a serialized proto (of
@@ -273,15 +230,12 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string entity_type_batch_uri = 2; - * * @return Whether the entityTypeBatchUri field is set. */ public boolean hasEntityTypeBatchUri() { return entityTypeBatchCase_ == 2; } /** - * - * *
    * The URI to a Google Cloud Storage file containing entity types to update
    * or create. The file format can either be a serialized proto (of
@@ -290,7 +244,6 @@ public boolean hasEntityTypeBatchUri() {
    * 
* * string entity_type_batch_uri = 2; - * * @return The entityTypeBatchUri. */ public java.lang.String getEntityTypeBatchUri() { @@ -301,7 +254,8 @@ public java.lang.String getEntityTypeBatchUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (entityTypeBatchCase_ == 2) { entityTypeBatch_ = s; @@ -310,8 +264,6 @@ public java.lang.String getEntityTypeBatchUri() { } } /** - * - * *
    * The URI to a Google Cloud Storage file containing entity types to update
    * or create. The file format can either be a serialized proto (of
@@ -320,17 +272,18 @@ public java.lang.String getEntityTypeBatchUri() {
    * 
* * string entity_type_batch_uri = 2; - * * @return The bytes for entityTypeBatchUri. */ - public com.google.protobuf.ByteString getEntityTypeBatchUriBytes() { + public com.google.protobuf.ByteString + getEntityTypeBatchUriBytes() { java.lang.Object ref = ""; if (entityTypeBatchCase_ == 2) { ref = entityTypeBatch_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (entityTypeBatchCase_ == 2) { entityTypeBatch_ = b; } @@ -342,14 +295,11 @@ public com.google.protobuf.ByteString getEntityTypeBatchUriBytes() { public static final int ENTITY_TYPE_BATCH_INLINE_FIELD_NUMBER = 3; /** - * - * *
    * The collection of entity types to update or create.
    * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; - * * @return Whether the entityTypeBatchInline field is set. */ @java.lang.Override @@ -357,26 +307,21 @@ public boolean hasEntityTypeBatchInline() { return entityTypeBatchCase_ == 3; } /** - * - * *
    * The collection of entity types to update or create.
    * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; - * * @return The entityTypeBatchInline. */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline() { if (entityTypeBatchCase_ == 3) { - return (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_; + return (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_; } return com.google.cloud.dialogflow.v2.EntityTypeBatch.getDefaultInstance(); } /** - * - * *
    * The collection of entity types to update or create.
    * 
@@ -384,10 +329,9 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline() * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder - getEntityTypeBatchInlineOrBuilder() { + public com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder getEntityTypeBatchInlineOrBuilder() { if (entityTypeBatchCase_ == 3) { - return (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_; + return (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_; } return com.google.cloud.dialogflow.v2.EntityTypeBatch.getDefaultInstance(); } @@ -395,8 +339,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline() public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -406,7 +348,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline()
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -415,15 +356,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -433,15 +373,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -452,15 +393,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -468,15 +405,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -484,14 +417,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -499,7 +429,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -511,7 +440,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -543,15 +473,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityTypeBatch_); } if (entityTypeBatchCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -561,27 +491,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest other = - (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) obj; + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest other = (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getEntityTypeBatchCase().equals(other.getEntityTypeBatchCase())) return false; switch (entityTypeBatchCase_) { case 2: - if (!getEntityTypeBatchUri().equals(other.getEntityTypeBatchUri())) return false; + if (!getEntityTypeBatchUri() + .equals(other.getEntityTypeBatchUri())) return false; break; case 3: - if (!getEntityTypeBatchInline().equals(other.getEntityTypeBatchInline())) return false; + if (!getEntityTypeBatchInline() + .equals(other.getEntityTypeBatchInline())) return false; break; case 0: default: @@ -623,127 +557,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.class, - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.class, com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.newBuilder() @@ -751,15 +675,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,14 +704,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.getDefaultInstance(); } @@ -801,8 +725,7 @@ public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest buildPartial() { - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest result = - new com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest(this); + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest result = new com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest(this); result.parent_ = parent_; if (entityTypeBatchCase_ == 2) { result.entityTypeBatch_ = entityTypeBatch_; @@ -829,39 +752,38 @@ public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest)other); } else { super.mergeFrom(other); return this; @@ -869,9 +791,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest other) { - if (other - == com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -884,22 +804,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRe mergeUpdateMask(other.getUpdateMask()); } switch (other.getEntityTypeBatchCase()) { - case ENTITY_TYPE_BATCH_URI: - { - entityTypeBatchCase_ = 2; - entityTypeBatch_ = other.entityTypeBatch_; - onChanged(); - break; - } - case ENTITY_TYPE_BATCH_INLINE: - { - mergeEntityTypeBatchInline(other.getEntityTypeBatchInline()); - break; - } - case ENTITYTYPEBATCH_NOT_SET: - { - break; - } + case ENTITY_TYPE_BATCH_URI: { + entityTypeBatchCase_ = 2; + entityTypeBatch_ = other.entityTypeBatch_; + onChanged(); + break; + } + case ENTITY_TYPE_BATCH_INLINE: { + mergeEntityTypeBatchInline(other.getEntityTypeBatchInline()); + break; + } + case ENTITYTYPEBATCH_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -920,8 +837,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -930,12 +846,12 @@ public Builder mergeFrom( } return this; } - private int entityTypeBatchCase_ = 0; private java.lang.Object entityTypeBatch_; - - public EntityTypeBatchCase getEntityTypeBatchCase() { - return EntityTypeBatchCase.forNumber(entityTypeBatchCase_); + public EntityTypeBatchCase + getEntityTypeBatchCase() { + return EntityTypeBatchCase.forNumber( + entityTypeBatchCase_); } public Builder clearEntityTypeBatch() { @@ -945,25 +861,22 @@ public Builder clearEntityTypeBatch() { return this; } + private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the agent to update or create entity types in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -972,24 +885,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the agent to update or create entity types in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -997,78 +907,63 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the agent to update or create entity types in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to update or create entity types in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to update or create entity types in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** - * - * *
      * The URI to a Google Cloud Storage file containing entity types to update
      * or create. The file format can either be a serialized proto (of
@@ -1077,7 +972,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string entity_type_batch_uri = 2; - * * @return Whether the entityTypeBatchUri field is set. */ @java.lang.Override @@ -1085,8 +979,6 @@ public boolean hasEntityTypeBatchUri() { return entityTypeBatchCase_ == 2; } /** - * - * *
      * The URI to a Google Cloud Storage file containing entity types to update
      * or create. The file format can either be a serialized proto (of
@@ -1095,7 +987,6 @@ public boolean hasEntityTypeBatchUri() {
      * 
* * string entity_type_batch_uri = 2; - * * @return The entityTypeBatchUri. */ @java.lang.Override @@ -1105,7 +996,8 @@ public java.lang.String getEntityTypeBatchUri() { ref = entityTypeBatch_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (entityTypeBatchCase_ == 2) { entityTypeBatch_ = s; @@ -1116,8 +1008,6 @@ public java.lang.String getEntityTypeBatchUri() { } } /** - * - * *
      * The URI to a Google Cloud Storage file containing entity types to update
      * or create. The file format can either be a serialized proto (of
@@ -1126,18 +1016,19 @@ public java.lang.String getEntityTypeBatchUri() {
      * 
* * string entity_type_batch_uri = 2; - * * @return The bytes for entityTypeBatchUri. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityTypeBatchUriBytes() { + public com.google.protobuf.ByteString + getEntityTypeBatchUriBytes() { java.lang.Object ref = ""; if (entityTypeBatchCase_ == 2) { ref = entityTypeBatch_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (entityTypeBatchCase_ == 2) { entityTypeBatch_ = b; } @@ -1147,8 +1038,6 @@ public com.google.protobuf.ByteString getEntityTypeBatchUriBytes() { } } /** - * - * *
      * The URI to a Google Cloud Storage file containing entity types to update
      * or create. The file format can either be a serialized proto (of
@@ -1157,22 +1046,20 @@ public com.google.protobuf.ByteString getEntityTypeBatchUriBytes() {
      * 
* * string entity_type_batch_uri = 2; - * * @param value The entityTypeBatchUri to set. * @return This builder for chaining. */ - public Builder setEntityTypeBatchUri(java.lang.String value) { + public Builder setEntityTypeBatchUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - entityTypeBatchCase_ = 2; + throw new NullPointerException(); + } + entityTypeBatchCase_ = 2; entityTypeBatch_ = value; onChanged(); return this; } /** - * - * *
      * The URI to a Google Cloud Storage file containing entity types to update
      * or create. The file format can either be a serialized proto (of
@@ -1181,7 +1068,6 @@ public Builder setEntityTypeBatchUri(java.lang.String value) {
      * 
* * string entity_type_batch_uri = 2; - * * @return This builder for chaining. */ public Builder clearEntityTypeBatchUri() { @@ -1193,8 +1079,6 @@ public Builder clearEntityTypeBatchUri() { return this; } /** - * - * *
      * The URI to a Google Cloud Storage file containing entity types to update
      * or create. The file format can either be a serialized proto (of
@@ -1203,15 +1087,15 @@ public Builder clearEntityTypeBatchUri() {
      * 
* * string entity_type_batch_uri = 2; - * * @param value The bytes for entityTypeBatchUri to set. * @return This builder for chaining. */ - public Builder setEntityTypeBatchUriBytes(com.google.protobuf.ByteString value) { + public Builder setEntityTypeBatchUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); entityTypeBatchCase_ = 2; entityTypeBatch_ = value; onChanged(); @@ -1219,19 +1103,13 @@ public Builder setEntityTypeBatchUriBytes(com.google.protobuf.ByteString value) } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityTypeBatch, - com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder, - com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder> - entityTypeBatchInlineBuilder_; + com.google.cloud.dialogflow.v2.EntityTypeBatch, com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder, com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder> entityTypeBatchInlineBuilder_; /** - * - * *
      * The collection of entity types to update or create.
      * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; - * * @return Whether the entityTypeBatchInline field is set. */ @java.lang.Override @@ -1239,14 +1117,11 @@ public boolean hasEntityTypeBatchInline() { return entityTypeBatchCase_ == 3; } /** - * - * *
      * The collection of entity types to update or create.
      * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; - * * @return The entityTypeBatchInline. */ @java.lang.Override @@ -1264,8 +1139,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline() } } /** - * - * *
      * The collection of entity types to update or create.
      * 
@@ -1286,8 +1159,6 @@ public Builder setEntityTypeBatchInline(com.google.cloud.dialogflow.v2.EntityTyp return this; } /** - * - * *
      * The collection of entity types to update or create.
      * 
@@ -1306,25 +1177,18 @@ public Builder setEntityTypeBatchInline( return this; } /** - * - * *
      * The collection of entity types to update or create.
      * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; */ - public Builder mergeEntityTypeBatchInline( - com.google.cloud.dialogflow.v2.EntityTypeBatch value) { + public Builder mergeEntityTypeBatchInline(com.google.cloud.dialogflow.v2.EntityTypeBatch value) { if (entityTypeBatchInlineBuilder_ == null) { - if (entityTypeBatchCase_ == 3 - && entityTypeBatch_ - != com.google.cloud.dialogflow.v2.EntityTypeBatch.getDefaultInstance()) { - entityTypeBatch_ = - com.google.cloud.dialogflow.v2.EntityTypeBatch.newBuilder( - (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_) - .mergeFrom(value) - .buildPartial(); + if (entityTypeBatchCase_ == 3 && + entityTypeBatch_ != com.google.cloud.dialogflow.v2.EntityTypeBatch.getDefaultInstance()) { + entityTypeBatch_ = com.google.cloud.dialogflow.v2.EntityTypeBatch.newBuilder((com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_) + .mergeFrom(value).buildPartial(); } else { entityTypeBatch_ = value; } @@ -1339,8 +1203,6 @@ public Builder mergeEntityTypeBatchInline( return this; } /** - * - * *
      * The collection of entity types to update or create.
      * 
@@ -1364,21 +1226,16 @@ public Builder clearEntityTypeBatchInline() { return this; } /** - * - * *
      * The collection of entity types to update or create.
      * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; */ - public com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder - getEntityTypeBatchInlineBuilder() { + public com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder getEntityTypeBatchInlineBuilder() { return getEntityTypeBatchInlineFieldBuilder().getBuilder(); } /** - * - * *
      * The collection of entity types to update or create.
      * 
@@ -1386,8 +1243,7 @@ public Builder clearEntityTypeBatchInline() { * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder - getEntityTypeBatchInlineOrBuilder() { + public com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder getEntityTypeBatchInlineOrBuilder() { if ((entityTypeBatchCase_ == 3) && (entityTypeBatchInlineBuilder_ != null)) { return entityTypeBatchInlineBuilder_.getMessageOrBuilder(); } else { @@ -1398,8 +1254,6 @@ public Builder clearEntityTypeBatchInline() { } } /** - * - * *
      * The collection of entity types to update or create.
      * 
@@ -1407,34 +1261,26 @@ public Builder clearEntityTypeBatchInline() { * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityTypeBatch, - com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder, - com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder> + com.google.cloud.dialogflow.v2.EntityTypeBatch, com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder, com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder> getEntityTypeBatchInlineFieldBuilder() { if (entityTypeBatchInlineBuilder_ == null) { if (!(entityTypeBatchCase_ == 3)) { entityTypeBatch_ = com.google.cloud.dialogflow.v2.EntityTypeBatch.getDefaultInstance(); } - entityTypeBatchInlineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityTypeBatch, - com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder, - com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder>( + entityTypeBatchInlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.EntityTypeBatch, com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder, com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder>( (com.google.cloud.dialogflow.v2.EntityTypeBatch) entityTypeBatch_, getParentForChildren(), isClean()); entityTypeBatch_ = null; } entityTypeBatchCase_ = 3; - onChanged(); - ; + onChanged();; return entityTypeBatchInlineBuilder_; } private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1444,13 +1290,13 @@ public Builder clearEntityTypeBatchInline() {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1459,8 +1305,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1470,14 +1314,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1485,8 +1330,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1496,22 +1339,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1521,18 +1362,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1542,16 +1380,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -1559,55 +1397,39 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1623,16 +1445,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1643,20 +1463,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1668,14 +1485,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1689,68 +1503,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1760,13 +1561,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) - private static final com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest(); } @@ -1775,16 +1575,16 @@ public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateEntityTypesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchUpdateEntityTypesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateEntityTypesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchUpdateEntityTypesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1799,4 +1599,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java index e20367888..483bdebb7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchUpdateEntityTypesRequestOrBuilder - extends +public interface BatchUpdateEntityTypesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the agent to update or create entity types in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the agent to update or create entity types in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The URI to a Google Cloud Storage file containing entity types to update
    * or create. The file format can either be a serialized proto (of
@@ -65,13 +38,10 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
    * 
* * string entity_type_batch_uri = 2; - * * @return Whether the entityTypeBatchUri field is set. */ boolean hasEntityTypeBatchUri(); /** - * - * *
    * The URI to a Google Cloud Storage file containing entity types to update
    * or create. The file format can either be a serialized proto (of
@@ -80,13 +50,10 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
    * 
* * string entity_type_batch_uri = 2; - * * @return The entityTypeBatchUri. */ java.lang.String getEntityTypeBatchUri(); /** - * - * *
    * The URI to a Google Cloud Storage file containing entity types to update
    * or create. The file format can either be a serialized proto (of
@@ -95,38 +62,30 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
    * 
* * string entity_type_batch_uri = 2; - * * @return The bytes for entityTypeBatchUri. */ - com.google.protobuf.ByteString getEntityTypeBatchUriBytes(); + com.google.protobuf.ByteString + getEntityTypeBatchUriBytes(); /** - * - * *
    * The collection of entity types to update or create.
    * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; - * * @return Whether the entityTypeBatchInline field is set. */ boolean hasEntityTypeBatchInline(); /** - * - * *
    * The collection of entity types to update or create.
    * 
* * .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3; - * * @return The entityTypeBatchInline. */ com.google.cloud.dialogflow.v2.EntityTypeBatch getEntityTypeBatchInline(); /** - * - * *
    * The collection of entity types to update or create.
    * 
@@ -136,8 +95,6 @@ public interface BatchUpdateEntityTypesRequestOrBuilder com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder getEntityTypeBatchInlineOrBuilder(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -147,13 +104,10 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -163,49 +117,37 @@ public interface BatchUpdateEntityTypesRequestOrBuilder
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.EntityTypeBatchCase - getEntityTypeBatchCase(); + public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest.EntityTypeBatchCase getEntityTypeBatchCase(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java similarity index 72% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java index e9730272a..a92384a41 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponse.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse} */ -public final class BatchUpdateEntityTypesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchUpdateEntityTypesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) BatchUpdateEntityTypesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchUpdateEntityTypesResponse.newBuilder() to construct. - private BatchUpdateEntityTypesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchUpdateEntityTypesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchUpdateEntityTypesResponse() { entityTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchUpdateEntityTypesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchUpdateEntityTypesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +54,29 @@ private BatchUpdateEntityTypesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entityTypes_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.EntityType.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + entityTypes_.add( + input.readMessage(com.google.cloud.dialogflow.v2.EntityType.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); @@ -104,27 +85,22 @@ private BatchUpdateEntityTypesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.class, - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.class, com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.Builder.class); } public static final int ENTITY_TYPES_FIELD_NUMBER = 1; private java.util.List entityTypes_; /** - * - * *
    * The collection of updated or created entity types.
    * 
@@ -136,8 +112,6 @@ public java.util.List getEntityTypesL return entityTypes_; } /** - * - * *
    * The collection of updated or created entity types.
    * 
@@ -145,13 +119,11 @@ public java.util.List getEntityTypesL * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEntityTypesOrBuilderList() { return entityTypes_; } /** - * - * *
    * The collection of updated or created entity types.
    * 
@@ -163,8 +135,6 @@ public int getEntityTypesCount() { return entityTypes_.size(); } /** - * - * *
    * The collection of updated or created entity types.
    * 
@@ -176,8 +146,6 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index) { return entityTypes_.get(index); } /** - * - * *
    * The collection of updated or created entity types.
    * 
@@ -185,12 +153,12 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index) { * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index) { return entityTypes_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < entityTypes_.size(); i++) { output.writeMessage(1, entityTypes_.get(i)); } @@ -216,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entityTypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entityTypes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entityTypes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -226,15 +196,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse other = - (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) obj; + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse other = (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) obj; - if (!getEntityTypesList().equals(other.getEntityTypesList())) return false; + if (!getEntityTypesList() + .equals(other.getEntityTypesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,127 +226,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.class, - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.class, com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.newBuilder() @@ -384,17 +344,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntityTypesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +368,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.getDefaultInstance(); } @@ -430,8 +389,7 @@ public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse buildPartial() { - com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse result = - new com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse(this); + com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse result = new com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse(this); int from_bitField0_ = bitField0_; if (entityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +408,38 @@ public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse)other); } else { super.mergeFrom(other); return this; @@ -490,9 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse other) { - if (other - == com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse.getDefaultInstance()) return this; if (entityTypesBuilder_ == null) { if (!other.entityTypes_.isEmpty()) { if (entityTypes_.isEmpty()) { @@ -511,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRe entityTypesBuilder_ = null; entityTypes_ = other.entityTypes_; bitField0_ = (bitField0_ & ~0x00000001); - entityTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntityTypesFieldBuilder() - : null; + entityTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntityTypesFieldBuilder() : null; } else { entityTypesBuilder_.addAllMessages(other.entityTypes_); } @@ -539,9 +493,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -550,29 +502,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List entityTypes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntityTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entityTypes_ = - new java.util.ArrayList(entityTypes_); + entityTypes_ = new java.util.ArrayList(entityTypes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> - entityTypesBuilder_; + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> entityTypesBuilder_; /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -587,8 +531,6 @@ public java.util.List getEntityTypesL } } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -603,8 +545,6 @@ public int getEntityTypesCount() { } } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -619,15 +559,14 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index) { } } /** - * - * *
      * The collection of updated or created entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public Builder setEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityType value) { + public Builder setEntityTypes( + int index, com.google.cloud.dialogflow.v2.EntityType value) { if (entityTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,8 +580,6 @@ public Builder setEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityTy return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -661,8 +598,6 @@ public Builder setEntityTypes( return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -683,15 +618,14 @@ public Builder addEntityTypes(com.google.cloud.dialogflow.v2.EntityType value) { return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public Builder addEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityType value) { + public Builder addEntityTypes( + int index, com.google.cloud.dialogflow.v2.EntityType value) { if (entityTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -705,8 +639,6 @@ public Builder addEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityTy return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -725,8 +657,6 @@ public Builder addEntityTypes( return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -745,8 +675,6 @@ public Builder addEntityTypes( return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -757,7 +685,8 @@ public Builder addAllEntityTypes( java.lang.Iterable values) { if (entityTypesBuilder_ == null) { ensureEntityTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityTypes_); onChanged(); } else { entityTypesBuilder_.addAllMessages(values); @@ -765,8 +694,6 @@ public Builder addAllEntityTypes( return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -784,8 +711,6 @@ public Builder clearEntityTypes() { return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -803,44 +728,39 @@ public Builder removeEntityTypes(int index) { return this; } /** - * - * *
      * The collection of updated or created entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public com.google.cloud.dialogflow.v2.EntityType.Builder getEntityTypesBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.Builder getEntityTypesBuilder( + int index) { return getEntityTypesFieldBuilder().getBuilder(index); } /** - * - * *
      * The collection of updated or created entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index) { if (entityTypesBuilder_ == null) { - return entityTypes_.get(index); - } else { + return entityTypes_.get(index); } else { return entityTypesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The collection of updated or created entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public java.util.List - getEntityTypesOrBuilderList() { + public java.util.List + getEntityTypesOrBuilderList() { if (entityTypesBuilder_ != null) { return entityTypesBuilder_.getMessageOrBuilderList(); } else { @@ -848,8 +768,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilde } } /** - * - * *
      * The collection of updated or created entity types.
      * 
@@ -857,55 +775,49 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilde * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ public com.google.cloud.dialogflow.v2.EntityType.Builder addEntityTypesBuilder() { - return getEntityTypesFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); + return getEntityTypesFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); } /** - * - * *
      * The collection of updated or created entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public com.google.cloud.dialogflow.v2.EntityType.Builder addEntityTypesBuilder(int index) { - return getEntityTypesFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.EntityType.Builder addEntityTypesBuilder( + int index) { + return getEntityTypesFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); } /** - * - * *
      * The collection of updated or created entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public java.util.List - getEntityTypesBuilderList() { + public java.util.List + getEntityTypesBuilderList() { return getEntityTypesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> getEntityTypesFieldBuilder() { if (entityTypesBuilder_ == null) { - entityTypesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder>( - entityTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entityTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder>( + entityTypes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entityTypes_ = null; } return entityTypesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -915,13 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) - private static final com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse(); } @@ -930,16 +841,16 @@ public static com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateEntityTypesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchUpdateEntityTypesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateEntityTypesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchUpdateEntityTypesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,4 +865,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java index 14edef127..b79898635 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateEntityTypesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchUpdateEntityTypesResponseOrBuilder - extends +public interface BatchUpdateEntityTypesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The collection of updated or created entity types.
    * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - java.util.List getEntityTypesList(); + java.util.List + getEntityTypesList(); /** - * - * *
    * The collection of updated or created entity types.
    * 
@@ -44,8 +25,6 @@ public interface BatchUpdateEntityTypesResponseOrBuilder */ com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index); /** - * - * *
    * The collection of updated or created entity types.
    * 
@@ -54,24 +33,21 @@ public interface BatchUpdateEntityTypesResponseOrBuilder */ int getEntityTypesCount(); /** - * - * *
    * The collection of updated or created entity types.
    * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - java.util.List + java.util.List getEntityTypesOrBuilderList(); /** - * - * *
    * The collection of updated or created entity types.
    * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder(int index); + com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java similarity index 70% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java index 871fbec29..362266646 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -/** Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsRequest} */ -public final class BatchUpdateIntentsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsRequest} + */ +public final class BatchUpdateIntentsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) BatchUpdateIntentsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchUpdateIntentsRequest.newBuilder() to construct. private BatchUpdateIntentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchUpdateIntentsRequest() { parent_ = ""; languageCode_ = ""; @@ -37,15 +23,16 @@ private BatchUpdateIntentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchUpdateIntentsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchUpdateIntentsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -64,112 +51,98 @@ private BatchUpdateIntentsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - intentBatchCase_ = 2; - intentBatch_ = s; - break; + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + intentBatchCase_ = 2; + intentBatch_ = s; + break; + } + case 26: { + com.google.cloud.dialogflow.v2.IntentBatch.Builder subBuilder = null; + if (intentBatchCase_ == 3) { + subBuilder = ((com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_).toBuilder(); } - case 26: - { - com.google.cloud.dialogflow.v2.IntentBatch.Builder subBuilder = null; - if (intentBatchCase_ == 3) { - subBuilder = - ((com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_).toBuilder(); - } - intentBatch_ = - input.readMessage( - com.google.cloud.dialogflow.v2.IntentBatch.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_); - intentBatch_ = subBuilder.buildPartial(); - } - intentBatchCase_ = 3; - break; + intentBatch_ = + input.readMessage(com.google.cloud.dialogflow.v2.IntentBatch.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_); + intentBatch_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + intentBatchCase_ = 3; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; + languageCode_ = s; + break; + } + case 42: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 42: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 48: - { - int rawValue = input.readEnum(); - intentView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 48: { + int rawValue = input.readEnum(); + + intentView_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.class, - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.class, com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.Builder.class); } private int intentBatchCase_ = 0; private java.lang.Object intentBatch_; - public enum IntentBatchCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INTENT_BATCH_URI(2), INTENT_BATCH_INLINE(3), INTENTBATCH_NOT_SET(0); private final int value; - private IntentBatchCase(int value) { this.value = value; } @@ -185,40 +158,32 @@ public static IntentBatchCase valueOf(int value) { public static IntentBatchCase forNumber(int value) { switch (value) { - case 2: - return INTENT_BATCH_URI; - case 3: - return INTENT_BATCH_INLINE; - case 0: - return INTENTBATCH_NOT_SET; - default: - return null; + case 2: return INTENT_BATCH_URI; + case 3: return INTENT_BATCH_INLINE; + case 0: return INTENTBATCH_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public IntentBatchCase getIntentBatchCase() { - return IntentBatchCase.forNumber(intentBatchCase_); + public IntentBatchCase + getIntentBatchCase() { + return IntentBatchCase.forNumber( + intentBatchCase_); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the agent to update or create intents in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -227,32 +192,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the agent to update or create intents in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -262,8 +225,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INTENT_BATCH_URI_FIELD_NUMBER = 2; /** - * - * *
    * 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
@@ -271,15 +232,12 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string intent_batch_uri = 2; - * * @return Whether the intentBatchUri field is set. */ public boolean hasIntentBatchUri() { return intentBatchCase_ == 2; } /** - * - * *
    * 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
@@ -287,7 +245,6 @@ public boolean hasIntentBatchUri() {
    * 
* * string intent_batch_uri = 2; - * * @return The intentBatchUri. */ public java.lang.String getIntentBatchUri() { @@ -298,7 +255,8 @@ public java.lang.String getIntentBatchUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (intentBatchCase_ == 2) { intentBatch_ = s; @@ -307,8 +265,6 @@ public java.lang.String getIntentBatchUri() { } } /** - * - * *
    * 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
@@ -316,17 +272,18 @@ public java.lang.String getIntentBatchUri() {
    * 
* * string intent_batch_uri = 2; - * * @return The bytes for intentBatchUri. */ - public com.google.protobuf.ByteString getIntentBatchUriBytes() { + public com.google.protobuf.ByteString + getIntentBatchUriBytes() { java.lang.Object ref = ""; if (intentBatchCase_ == 2) { ref = intentBatch_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (intentBatchCase_ == 2) { intentBatch_ = b; } @@ -338,14 +295,11 @@ public com.google.protobuf.ByteString getIntentBatchUriBytes() { public static final int INTENT_BATCH_INLINE_FIELD_NUMBER = 3; /** - * - * *
    * The collection of intents to update or create.
    * 
* * .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3; - * * @return Whether the intentBatchInline field is set. */ @java.lang.Override @@ -353,26 +307,21 @@ public boolean hasIntentBatchInline() { return intentBatchCase_ == 3; } /** - * - * *
    * The collection of intents to update or create.
    * 
* * .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3; - * * @return The intentBatchInline. */ @java.lang.Override public com.google.cloud.dialogflow.v2.IntentBatch getIntentBatchInline() { if (intentBatchCase_ == 3) { - return (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_; + return (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_; } return com.google.cloud.dialogflow.v2.IntentBatch.getDefaultInstance(); } /** - * - * *
    * The collection of intents to update or create.
    * 
@@ -382,7 +331,7 @@ public com.google.cloud.dialogflow.v2.IntentBatch getIntentBatchInline() { @java.lang.Override public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineOrBuilder() { if (intentBatchCase_ == 3) { - return (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_; + return (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_; } return com.google.cloud.dialogflow.v2.IntentBatch.getDefaultInstance(); } @@ -390,8 +339,6 @@ public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineO public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -401,7 +348,6 @@ public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineO
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -410,15 +356,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -428,15 +373,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -447,15 +393,11 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -463,15 +405,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -479,14 +417,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -496,45 +431,31 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int INTENT_VIEW_FIELD_NUMBER = 6; private int intentView_; /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ - @java.lang.Override - public int getIntentViewValue() { + @java.lang.Override public int getIntentViewValue() { return intentView_; } /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.IntentView getIntentView() { + @java.lang.Override public com.google.cloud.dialogflow.v2.IntentView getIntentView() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.IntentView result = - com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.v2.IntentView result = com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); return result == null ? com.google.cloud.dialogflow.v2.IntentView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -546,7 +467,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -562,8 +484,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(5, getUpdateMask()); } - if (intentView_ - != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { + if (intentView_ != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(6, intentView_); } unknownFields.writeTo(output); @@ -582,19 +503,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, intentBatch_); } if (intentBatchCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateMask()); } - if (intentView_ - != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, intentView_); + if (intentView_ != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, intentView_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -604,28 +525,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest other = - (com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) obj; + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest other = (com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (intentView_ != other.intentView_) return false; if (!getIntentBatchCase().equals(other.getIntentBatchCase())) return false; switch (intentBatchCase_) { case 2: - if (!getIntentBatchUri().equals(other.getIntentBatchUri())) return false; + if (!getIntentBatchUri() + .equals(other.getIntentBatchUri())) return false; break; case 3: - if (!getIntentBatchInline().equals(other.getIntentBatchInline())) return false; + if (!getIntentBatchInline() + .equals(other.getIntentBatchInline())) return false; break; case 0: default: @@ -669,119 +594,113 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.class, - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.class, com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.newBuilder() @@ -789,15 +708,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -819,9 +739,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsRequest_descriptor; } @java.lang.Override @@ -840,8 +760,7 @@ public com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest buildPartial() { - com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest result = - new com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest(this); + com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest result = new com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest(this); result.parent_ = parent_; if (intentBatchCase_ == 2) { result.intentBatch_ = intentBatch_; @@ -869,39 +788,38 @@ public com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest)other); } else { super.mergeFrom(other); return this; @@ -909,8 +827,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest other) { - if (other == com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -926,22 +843,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateIntentsReques setIntentViewValue(other.getIntentViewValue()); } switch (other.getIntentBatchCase()) { - case INTENT_BATCH_URI: - { - intentBatchCase_ = 2; - intentBatch_ = other.intentBatch_; - onChanged(); - break; - } - case INTENT_BATCH_INLINE: - { - mergeIntentBatchInline(other.getIntentBatchInline()); - break; - } - case INTENTBATCH_NOT_SET: - { - break; - } + case INTENT_BATCH_URI: { + intentBatchCase_ = 2; + intentBatch_ = other.intentBatch_; + onChanged(); + break; + } + case INTENT_BATCH_INLINE: { + mergeIntentBatchInline(other.getIntentBatchInline()); + break; + } + case INTENTBATCH_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -962,8 +876,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -972,12 +885,12 @@ public Builder mergeFrom( } return this; } - private int intentBatchCase_ = 0; private java.lang.Object intentBatch_; - - public IntentBatchCase getIntentBatchCase() { - return IntentBatchCase.forNumber(intentBatchCase_); + public IntentBatchCase + getIntentBatchCase() { + return IntentBatchCase.forNumber( + intentBatchCase_); } public Builder clearIntentBatch() { @@ -987,25 +900,22 @@ public Builder clearIntentBatch() { return this; } + private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the agent to update or create intents in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1014,24 +924,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the agent to update or create intents in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1039,78 +946,63 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the agent to update or create intents in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to update or create intents in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the agent to update or create intents in.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -1118,7 +1010,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string intent_batch_uri = 2; - * * @return Whether the intentBatchUri field is set. */ @java.lang.Override @@ -1126,8 +1017,6 @@ public boolean hasIntentBatchUri() { return intentBatchCase_ == 2; } /** - * - * *
      * 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
@@ -1135,7 +1024,6 @@ public boolean hasIntentBatchUri() {
      * 
* * string intent_batch_uri = 2; - * * @return The intentBatchUri. */ @java.lang.Override @@ -1145,7 +1033,8 @@ public java.lang.String getIntentBatchUri() { ref = intentBatch_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (intentBatchCase_ == 2) { intentBatch_ = s; @@ -1156,8 +1045,6 @@ public java.lang.String getIntentBatchUri() { } } /** - * - * *
      * 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
@@ -1165,18 +1052,19 @@ public java.lang.String getIntentBatchUri() {
      * 
* * string intent_batch_uri = 2; - * * @return The bytes for intentBatchUri. */ @java.lang.Override - public com.google.protobuf.ByteString getIntentBatchUriBytes() { + public com.google.protobuf.ByteString + getIntentBatchUriBytes() { java.lang.Object ref = ""; if (intentBatchCase_ == 2) { ref = intentBatch_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (intentBatchCase_ == 2) { intentBatch_ = b; } @@ -1186,8 +1074,6 @@ public com.google.protobuf.ByteString getIntentBatchUriBytes() { } } /** - * - * *
      * 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
@@ -1195,22 +1081,20 @@ public com.google.protobuf.ByteString getIntentBatchUriBytes() {
      * 
* * string intent_batch_uri = 2; - * * @param value The intentBatchUri to set. * @return This builder for chaining. */ - public Builder setIntentBatchUri(java.lang.String value) { + public Builder setIntentBatchUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - intentBatchCase_ = 2; + throw new NullPointerException(); + } + intentBatchCase_ = 2; intentBatch_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -1218,7 +1102,6 @@ public Builder setIntentBatchUri(java.lang.String value) {
      * 
* * string intent_batch_uri = 2; - * * @return This builder for chaining. */ public Builder clearIntentBatchUri() { @@ -1230,8 +1113,6 @@ public Builder clearIntentBatchUri() { return this; } /** - * - * *
      * 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
@@ -1239,15 +1120,15 @@ public Builder clearIntentBatchUri() {
      * 
* * string intent_batch_uri = 2; - * * @param value The bytes for intentBatchUri to set. * @return This builder for chaining. */ - public Builder setIntentBatchUriBytes(com.google.protobuf.ByteString value) { + public Builder setIntentBatchUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); intentBatchCase_ = 2; intentBatch_ = value; onChanged(); @@ -1255,19 +1136,13 @@ public Builder setIntentBatchUriBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.IntentBatch, - com.google.cloud.dialogflow.v2.IntentBatch.Builder, - com.google.cloud.dialogflow.v2.IntentBatchOrBuilder> - intentBatchInlineBuilder_; + com.google.cloud.dialogflow.v2.IntentBatch, com.google.cloud.dialogflow.v2.IntentBatch.Builder, com.google.cloud.dialogflow.v2.IntentBatchOrBuilder> intentBatchInlineBuilder_; /** - * - * *
      * The collection of intents to update or create.
      * 
* * .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3; - * * @return Whether the intentBatchInline field is set. */ @java.lang.Override @@ -1275,14 +1150,11 @@ public boolean hasIntentBatchInline() { return intentBatchCase_ == 3; } /** - * - * *
      * The collection of intents to update or create.
      * 
* * .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3; - * * @return The intentBatchInline. */ @java.lang.Override @@ -1300,8 +1172,6 @@ public com.google.cloud.dialogflow.v2.IntentBatch getIntentBatchInline() { } } /** - * - * *
      * The collection of intents to update or create.
      * 
@@ -1322,8 +1192,6 @@ public Builder setIntentBatchInline(com.google.cloud.dialogflow.v2.IntentBatch v return this; } /** - * - * *
      * The collection of intents to update or create.
      * 
@@ -1342,8 +1210,6 @@ public Builder setIntentBatchInline( return this; } /** - * - * *
      * The collection of intents to update or create.
      * 
@@ -1352,13 +1218,10 @@ public Builder setIntentBatchInline( */ public Builder mergeIntentBatchInline(com.google.cloud.dialogflow.v2.IntentBatch value) { if (intentBatchInlineBuilder_ == null) { - if (intentBatchCase_ == 3 - && intentBatch_ != com.google.cloud.dialogflow.v2.IntentBatch.getDefaultInstance()) { - intentBatch_ = - com.google.cloud.dialogflow.v2.IntentBatch.newBuilder( - (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_) - .mergeFrom(value) - .buildPartial(); + if (intentBatchCase_ == 3 && + intentBatch_ != com.google.cloud.dialogflow.v2.IntentBatch.getDefaultInstance()) { + intentBatch_ = com.google.cloud.dialogflow.v2.IntentBatch.newBuilder((com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_) + .mergeFrom(value).buildPartial(); } else { intentBatch_ = value; } @@ -1373,8 +1236,6 @@ public Builder mergeIntentBatchInline(com.google.cloud.dialogflow.v2.IntentBatch return this; } /** - * - * *
      * The collection of intents to update or create.
      * 
@@ -1398,8 +1259,6 @@ public Builder clearIntentBatchInline() { return this; } /** - * - * *
      * The collection of intents to update or create.
      * 
@@ -1410,8 +1269,6 @@ public com.google.cloud.dialogflow.v2.IntentBatch.Builder getIntentBatchInlineBu return getIntentBatchInlineFieldBuilder().getBuilder(); } /** - * - * *
      * The collection of intents to update or create.
      * 
@@ -1430,8 +1287,6 @@ public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineO } } /** - * - * *
      * The collection of intents to update or create.
      * 
@@ -1439,34 +1294,26 @@ public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineO * .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.IntentBatch, - com.google.cloud.dialogflow.v2.IntentBatch.Builder, - com.google.cloud.dialogflow.v2.IntentBatchOrBuilder> + com.google.cloud.dialogflow.v2.IntentBatch, com.google.cloud.dialogflow.v2.IntentBatch.Builder, com.google.cloud.dialogflow.v2.IntentBatchOrBuilder> getIntentBatchInlineFieldBuilder() { if (intentBatchInlineBuilder_ == null) { if (!(intentBatchCase_ == 3)) { intentBatch_ = com.google.cloud.dialogflow.v2.IntentBatch.getDefaultInstance(); } - intentBatchInlineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.IntentBatch, - com.google.cloud.dialogflow.v2.IntentBatch.Builder, - com.google.cloud.dialogflow.v2.IntentBatchOrBuilder>( + intentBatchInlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.IntentBatch, com.google.cloud.dialogflow.v2.IntentBatch.Builder, com.google.cloud.dialogflow.v2.IntentBatchOrBuilder>( (com.google.cloud.dialogflow.v2.IntentBatch) intentBatch_, getParentForChildren(), isClean()); intentBatch_ = null; } intentBatchCase_ = 3; - onChanged(); - ; + onChanged();; return intentBatchInlineBuilder_; } private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1476,13 +1323,13 @@ public com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineO
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1491,8 +1338,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1502,14 +1347,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1517,8 +1363,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1528,22 +1372,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1553,18 +1395,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1574,16 +1413,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -1591,55 +1430,39 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1655,16 +1478,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1675,20 +1496,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1700,14 +1518,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1721,61 +1536,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. The mask to control which fields get updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -1783,73 +1585,51 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private int intentView_ = 0; /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ - @java.lang.Override - public int getIntentViewValue() { + @java.lang.Override public int getIntentViewValue() { return intentView_; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for intentView to set. * @return This builder for chaining. */ public Builder setIntentViewValue(int value) { - + intentView_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ @java.lang.Override public com.google.cloud.dialogflow.v2.IntentView getIntentView() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.IntentView result = - com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.v2.IntentView result = com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); return result == null ? com.google.cloud.dialogflow.v2.IntentView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The intentView to set. * @return This builder for chaining. */ @@ -1857,33 +1637,28 @@ public Builder setIntentView(com.google.cloud.dialogflow.v2.IntentView value) { if (value == null) { throw new NullPointerException(); } - + intentView_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearIntentView() { - + intentView_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1893,12 +1668,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) private static final com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest(); } @@ -1907,16 +1682,16 @@ public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateIntentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchUpdateIntentsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateIntentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchUpdateIntentsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1931,4 +1706,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java index bd9157d8c..9743cf148 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchUpdateIntentsRequestOrBuilder - extends +public interface BatchUpdateIntentsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchUpdateIntentsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the agent to update or create intents in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the agent to update or create intents in.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * 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
@@ -64,13 +37,10 @@ public interface BatchUpdateIntentsRequestOrBuilder
    * 
* * string intent_batch_uri = 2; - * * @return Whether the intentBatchUri field is set. */ boolean hasIntentBatchUri(); /** - * - * *
    * 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
@@ -78,13 +48,10 @@ public interface BatchUpdateIntentsRequestOrBuilder
    * 
* * string intent_batch_uri = 2; - * * @return The intentBatchUri. */ java.lang.String getIntentBatchUri(); /** - * - * *
    * 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
@@ -92,38 +59,30 @@ public interface BatchUpdateIntentsRequestOrBuilder
    * 
* * string intent_batch_uri = 2; - * * @return The bytes for intentBatchUri. */ - com.google.protobuf.ByteString getIntentBatchUriBytes(); + com.google.protobuf.ByteString + getIntentBatchUriBytes(); /** - * - * *
    * The collection of intents to update or create.
    * 
* * .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3; - * * @return Whether the intentBatchInline field is set. */ boolean hasIntentBatchInline(); /** - * - * *
    * The collection of intents to update or create.
    * 
* * .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3; - * * @return The intentBatchInline. */ com.google.cloud.dialogflow.v2.IntentBatch getIntentBatchInline(); /** - * - * *
    * The collection of intents to update or create.
    * 
@@ -133,8 +92,6 @@ public interface BatchUpdateIntentsRequestOrBuilder com.google.cloud.dialogflow.v2.IntentBatchOrBuilder getIntentBatchInlineOrBuilder(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -144,13 +101,10 @@ public interface BatchUpdateIntentsRequestOrBuilder
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -160,78 +114,56 @@ public interface BatchUpdateIntentsRequestOrBuilder
    * 
* * string language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. The mask to control which fields get updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ int getIntentViewValue(); /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ com.google.cloud.dialogflow.v2.IntentView getIntentView(); - public com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.IntentBatchCase - getIntentBatchCase(); + public com.google.cloud.dialogflow.v2.BatchUpdateIntentsRequest.IntentBatchCase getIntentBatchCase(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java similarity index 72% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java index 33636cca8..b33131f6c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsResponse} */ -public final class BatchUpdateIntentsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchUpdateIntentsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) BatchUpdateIntentsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchUpdateIntentsResponse.newBuilder() to construct. private BatchUpdateIntentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchUpdateIntentsResponse() { intents_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchUpdateIntentsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchUpdateIntentsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +54,29 @@ private BatchUpdateIntentsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - intents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - intents_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.Intent.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + intents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + intents_.add( + input.readMessage(com.google.cloud.dialogflow.v2.Intent.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { intents_ = java.util.Collections.unmodifiableList(intents_); @@ -103,27 +85,22 @@ private BatchUpdateIntentsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.class, - com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.class, com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.Builder.class); } public static final int INTENTS_FIELD_NUMBER = 1; private java.util.List intents_; /** - * - * *
    * The collection of updated or created intents.
    * 
@@ -135,8 +112,6 @@ public java.util.List getIntentsList() { return intents_; } /** - * - * *
    * The collection of updated or created intents.
    * 
@@ -144,13 +119,11 @@ public java.util.List getIntentsList() { * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ @java.lang.Override - public java.util.List + public java.util.List getIntentsOrBuilderList() { return intents_; } /** - * - * *
    * The collection of updated or created intents.
    * 
@@ -162,8 +135,6 @@ public int getIntentsCount() { return intents_.size(); } /** - * - * *
    * The collection of updated or created intents.
    * 
@@ -175,8 +146,6 @@ public com.google.cloud.dialogflow.v2.Intent getIntents(int index) { return intents_.get(index); } /** - * - * *
    * The collection of updated or created intents.
    * 
@@ -184,12 +153,12 @@ public com.google.cloud.dialogflow.v2.Intent getIntents(int index) { * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder( + int index) { return intents_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < intents_.size(); i++) { output.writeMessage(1, intents_.get(i)); } @@ -215,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < intents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, intents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, intents_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -225,15 +196,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse other = - (com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) obj; + com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse other = (com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) obj; - if (!getIntentsList().equals(other.getIntentsList())) return false; + if (!getIntentsList() + .equals(other.getIntentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,127 +226,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.BatchUpdateIntentsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.class, - com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.Builder.class); + com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.class, com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.newBuilder() @@ -383,17 +344,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getIntentsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_BatchUpdateIntentsResponse_descriptor; } @java.lang.Override @@ -428,8 +389,7 @@ public com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse build() { @java.lang.Override public com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse buildPartial() { - com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse result = - new com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse(this); + com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse result = new com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse(this); int from_bitField0_ = bitField0_; if (intentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -448,39 +408,38 @@ public com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) { - return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) other); + return mergeFrom((com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse)other); } else { super.mergeFrom(other); return this; @@ -488,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse other) { - if (other == com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse.getDefaultInstance()) return this; if (intentsBuilder_ == null) { if (!other.intents_.isEmpty()) { if (intents_.isEmpty()) { @@ -508,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.BatchUpdateIntentsRespon intentsBuilder_ = null; intents_ = other.intents_; bitField0_ = (bitField0_ & ~0x00000001); - intentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIntentsFieldBuilder() - : null; + intentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntentsFieldBuilder() : null; } else { intentsBuilder_.addAllMessages(other.intents_); } @@ -536,8 +493,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -546,28 +502,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List intents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIntentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { intents_ = new java.util.ArrayList(intents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder> - intentsBuilder_; + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder> intentsBuilder_; /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -582,8 +531,6 @@ public java.util.List getIntentsList() { } } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -598,8 +545,6 @@ public int getIntentsCount() { } } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -614,15 +559,14 @@ public com.google.cloud.dialogflow.v2.Intent getIntents(int index) { } } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public Builder setIntents(int index, com.google.cloud.dialogflow.v2.Intent value) { + public Builder setIntents( + int index, com.google.cloud.dialogflow.v2.Intent value) { if (intentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -636,8 +580,6 @@ public Builder setIntents(int index, com.google.cloud.dialogflow.v2.Intent value return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -656,8 +598,6 @@ public Builder setIntents( return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -678,15 +618,14 @@ public Builder addIntents(com.google.cloud.dialogflow.v2.Intent value) { return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public Builder addIntents(int index, com.google.cloud.dialogflow.v2.Intent value) { + public Builder addIntents( + int index, com.google.cloud.dialogflow.v2.Intent value) { if (intentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,15 +639,14 @@ public Builder addIntents(int index, com.google.cloud.dialogflow.v2.Intent value return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public Builder addIntents(com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { + public Builder addIntents( + com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { if (intentsBuilder_ == null) { ensureIntentsIsMutable(); intents_.add(builderForValue.build()); @@ -719,8 +657,6 @@ public Builder addIntents(com.google.cloud.dialogflow.v2.Intent.Builder builderF return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -739,8 +675,6 @@ public Builder addIntents( return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -751,7 +685,8 @@ public Builder addAllIntents( java.lang.Iterable values) { if (intentsBuilder_ == null) { ensureIntentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intents_); onChanged(); } else { intentsBuilder_.addAllMessages(values); @@ -759,8 +694,6 @@ public Builder addAllIntents( return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -778,8 +711,6 @@ public Builder clearIntents() { return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -797,44 +728,39 @@ public Builder removeIntents(int index) { return this; } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public com.google.cloud.dialogflow.v2.Intent.Builder getIntentsBuilder(int index) { + public com.google.cloud.dialogflow.v2.Intent.Builder getIntentsBuilder( + int index) { return getIntentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder( + int index) { if (intentsBuilder_ == null) { - return intents_.get(index); - } else { + return intents_.get(index); } else { return intentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public java.util.List - getIntentsOrBuilderList() { + public java.util.List + getIntentsOrBuilderList() { if (intentsBuilder_ != null) { return intentsBuilder_.getMessageOrBuilderList(); } else { @@ -842,8 +768,6 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int in } } /** - * - * *
      * The collection of updated or created intents.
      * 
@@ -851,54 +775,49 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int in * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ public com.google.cloud.dialogflow.v2.Intent.Builder addIntentsBuilder() { - return getIntentsFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); + return getIntentsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public com.google.cloud.dialogflow.v2.Intent.Builder addIntentsBuilder(int index) { - return getIntentsFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.Intent.Builder addIntentsBuilder( + int index) { + return getIntentsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.Intent.getDefaultInstance()); } /** - * - * *
      * The collection of updated or created intents.
      * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - public java.util.List getIntentsBuilderList() { + public java.util.List + getIntentsBuilderList() { return getIntentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder> + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder> getIntentsFieldBuilder() { if (intentsBuilder_ == null) { - intentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder>( - intents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + intentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder>( + intents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); intents_ = null; } return intentsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -908,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) private static final com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse(); } @@ -922,16 +841,16 @@ public static com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateIntentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchUpdateIntentsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateIntentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchUpdateIntentsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -946,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.BatchUpdateIntentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java index 8d0787d11..48ae643e3 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/BatchUpdateIntentsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface BatchUpdateIntentsResponseOrBuilder - extends +public interface BatchUpdateIntentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.BatchUpdateIntentsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The collection of updated or created intents.
    * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - java.util.List getIntentsList(); + java.util.List + getIntentsList(); /** - * - * *
    * The collection of updated or created intents.
    * 
@@ -44,8 +25,6 @@ public interface BatchUpdateIntentsResponseOrBuilder */ com.google.cloud.dialogflow.v2.Intent getIntents(int index); /** - * - * *
    * The collection of updated or created intents.
    * 
@@ -54,24 +33,21 @@ public interface BatchUpdateIntentsResponseOrBuilder */ int getIntentsCount(); /** - * - * *
    * The collection of updated or created intents.
    * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - java.util.List + java.util.List getIntentsOrBuilderList(); /** - * - * *
    * The collection of updated or created intents.
    * 
* * repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ - com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder(int index); + com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentsOrBuilder( + int index); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequest.java index 2cb28b101..2af9db949 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Conversations.CompleteConversation][google.cloud.dialogflow.v2.Conversations.CompleteConversation].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CompleteConversationRequest} */ -public final class CompleteConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CompleteConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CompleteConversationRequest) CompleteConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CompleteConversationRequest.newBuilder() to construct. private CompleteConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CompleteConversationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CompleteConversationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CompleteConversationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private CompleteConversationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CompleteConversationRequest.class, - com.google.cloud.dialogflow.v2.CompleteConversationRequest.Builder.class); + com.google.cloud.dialogflow.v2.CompleteConversationRequest.class, com.google.cloud.dialogflow.v2.CompleteConversationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource identifier of the conversation to close.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Resource identifier of the conversation to close.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CompleteConversationRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CompleteConversationRequest other = - (com.google.cloud.dialogflow.v2.CompleteConversationRequest) obj; + com.google.cloud.dialogflow.v2.CompleteConversationRequest other = (com.google.cloud.dialogflow.v2.CompleteConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CompleteConversationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CompleteConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CompleteConversationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Conversations.CompleteConversation][google.cloud.dialogflow.v2.Conversations.CompleteConversation].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CompleteConversationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CompleteConversationRequest) com.google.cloud.dialogflow.v2.CompleteConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CompleteConversationRequest.class, - com.google.cloud.dialogflow.v2.CompleteConversationRequest.Builder.class); + com.google.cloud.dialogflow.v2.CompleteConversationRequest.class, com.google.cloud.dialogflow.v2.CompleteConversationRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CompleteConversationRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.dialogflow.v2.CompleteConversationRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CompleteConversationRequest buildPartial() { - com.google.cloud.dialogflow.v2.CompleteConversationRequest result = - new com.google.cloud.dialogflow.v2.CompleteConversationRequest(this); + com.google.cloud.dialogflow.v2.CompleteConversationRequest result = new com.google.cloud.dialogflow.v2.CompleteConversationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.dialogflow.v2.CompleteConversationRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CompleteConversationRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CompleteConversationRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CompleteConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CompleteConversationRequest other) { - if (other == com.google.cloud.dialogflow.v2.CompleteConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CompleteConversationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CompleteConversationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CompleteConversationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource identifier of the conversation to close.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -515,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource identifier of the conversation to close.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -541,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource identifier of the conversation to close.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource identifier of the conversation to close.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource identifier of the conversation to close.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -624,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CompleteConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CompleteConversationRequest) private static final com.google.cloud.dialogflow.v2.CompleteConversationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CompleteConversationRequest(); } @@ -638,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.CompleteConversationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompleteConversationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteConversationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,4 +602,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.dialogflow.v2.CompleteConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequestOrBuilder.java new file mode 100644 index 000000000..ec78ba3aa --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CompleteConversationRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation.proto + +package com.google.cloud.dialogflow.v2; + +public interface CompleteConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CompleteConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource identifier of the conversation to close.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversations/<Conversation ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource identifier of the conversation to close.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversations/<Conversation ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java similarity index 81% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java index 736d777f1..d8f870ff3 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Context.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * Dialogflow contexts are similar to natural language context. If a person says
  * to you "they are orange", you need context in order to understand what "they"
@@ -39,31 +22,31 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.Context}
  */
-public final class Context extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Context extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Context)
     ContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Context.newBuilder() to construct.
   private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Context() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Context();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Context(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -82,72 +65,65 @@ private Context(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 16: {
+
+            lifespanCount_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Struct.Builder subBuilder = null;
+            if (parameters_ != null) {
+              subBuilder = parameters_.toBuilder();
             }
-          case 16:
-            {
-              lifespanCount_ = input.readInt32();
-              break;
+            parameters_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(parameters_);
+              parameters_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Struct.Builder subBuilder = null;
-              if (parameters_ != null) {
-                subBuilder = parameters_.toBuilder();
-              }
-              parameters_ =
-                  input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(parameters_);
-                parameters_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.ContextProto
-        .internal_static_google_cloud_dialogflow_v2_Context_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_Context_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.ContextProto
-        .internal_static_google_cloud_dialogflow_v2_Context_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_Context_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.Context.class,
-            com.google.cloud.dialogflow.v2.Context.Builder.class);
+            com.google.cloud.dialogflow.v2.Context.class, com.google.cloud.dialogflow.v2.Context.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The unique identifier of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -165,7 +141,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -174,15 +149,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The unique identifier of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -200,15 +174,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -219,8 +194,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LIFESPAN_COUNT_FIELD_NUMBER = 2; private int lifespanCount_; /** - * - * *
    * Optional. The number of conversational query requests after which the
    * context expires. The default is `0`. If set to `0`, the context expires
@@ -229,7 +202,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lifespanCount. */ @java.lang.Override @@ -240,8 +212,6 @@ public int getLifespanCount() { public static final int PARAMETERS_FIELD_NUMBER = 3; private com.google.protobuf.Struct parameters_; /** - * - * *
    * Optional. The collection of parameters associated with this context.
    * Depending on your protocol or client library language, this is a
@@ -260,7 +230,6 @@ public int getLifespanCount() {
    * 
* * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -268,8 +237,6 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
    * Optional. The collection of parameters associated with this context.
    * Depending on your protocol or client library language, this is a
@@ -288,7 +255,6 @@ public boolean hasParameters() {
    * 
* * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parameters. */ @java.lang.Override @@ -296,8 +262,6 @@ public com.google.protobuf.Struct getParameters() { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } /** - * - * *
    * Optional. The collection of parameters associated with this context.
    * Depending on your protocol or client library language, this is a
@@ -323,7 +287,6 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -335,7 +298,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!getNameBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -358,10 +322,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (lifespanCount_ != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lifespanCount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(2, lifespanCount_);
     }
     if (parameters_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getParameters());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getParameters());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -371,18 +337,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.dialogflow.v2.Context)) {
       return super.equals(obj);
     }
     com.google.cloud.dialogflow.v2.Context other = (com.google.cloud.dialogflow.v2.Context) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (getLifespanCount() != other.getLifespanCount()) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (getLifespanCount()
+        != other.getLifespanCount()) return false;
     if (hasParameters() != other.hasParameters()) return false;
     if (hasParameters()) {
-      if (!getParameters().equals(other.getParameters())) return false;
+      if (!getParameters()
+          .equals(other.getParameters())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -408,104 +377,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.dialogflow.v2.Context parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.dialogflow.v2.Context parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.Context parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.dialogflow.v2.Context prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Dialogflow contexts are similar to natural language context. If a person says
    * to you "they are orange", you need context in order to understand what "they"
@@ -524,23 +486,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Context}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Context)
       com.google.cloud.dialogflow.v2.ContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.ContextProto
-          .internal_static_google_cloud_dialogflow_v2_Context_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_Context_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.ContextProto
-          .internal_static_google_cloud_dialogflow_v2_Context_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_Context_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Context.class,
-              com.google.cloud.dialogflow.v2.Context.Builder.class);
+              com.google.cloud.dialogflow.v2.Context.class, com.google.cloud.dialogflow.v2.Context.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.Context.newBuilder()
@@ -548,15 +508,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -574,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.ContextProto
-          .internal_static_google_cloud_dialogflow_v2_Context_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_Context_descriptor;
     }
 
     @java.lang.Override
@@ -595,8 +556,7 @@ public com.google.cloud.dialogflow.v2.Context build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.Context buildPartial() {
-      com.google.cloud.dialogflow.v2.Context result =
-          new com.google.cloud.dialogflow.v2.Context(this);
+      com.google.cloud.dialogflow.v2.Context result = new com.google.cloud.dialogflow.v2.Context(this);
       result.name_ = name_;
       result.lifespanCount_ = lifespanCount_;
       if (parametersBuilder_ == null) {
@@ -612,39 +572,38 @@ public com.google.cloud.dialogflow.v2.Context buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.Context) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.Context) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.Context)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,8 +653,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The unique identifier of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -713,13 +670,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -728,8 +685,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The unique identifier of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -747,14 +702,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -762,8 +718,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The unique identifier of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -781,22 +735,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The unique identifier of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -814,18 +766,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The unique identifier of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -843,25 +792,23 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private int lifespanCount_; + private int lifespanCount_ ; /** - * - * *
      * Optional. The number of conversational query requests after which the
      * context expires. The default is `0`. If set to `0`, the context expires
@@ -870,7 +817,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lifespanCount. */ @java.lang.Override @@ -878,8 +824,6 @@ public int getLifespanCount() { return lifespanCount_; } /** - * - * *
      * Optional. The number of conversational query requests after which the
      * context expires. The default is `0`. If set to `0`, the context expires
@@ -888,19 +832,16 @@ public int getLifespanCount() {
      * 
* * int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The lifespanCount to set. * @return This builder for chaining. */ public Builder setLifespanCount(int value) { - + lifespanCount_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The number of conversational query requests after which the
      * context expires. The default is `0`. If set to `0`, the context expires
@@ -909,11 +850,10 @@ public Builder setLifespanCount(int value) {
      * 
* * int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLifespanCount() { - + lifespanCount_ = 0; onChanged(); return this; @@ -921,13 +861,8 @@ public Builder clearLifespanCount() { private com.google.protobuf.Struct parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - parametersBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> parametersBuilder_; /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -945,17 +880,13 @@ public Builder clearLifespanCount() {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -973,9 +904,7 @@ public boolean hasParameters() {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The parameters. */ public com.google.protobuf.Struct getParameters() { @@ -986,8 +915,6 @@ public com.google.protobuf.Struct getParameters() { } } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -1005,8 +932,7 @@ public com.google.protobuf.Struct getParameters() {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { @@ -1022,8 +948,6 @@ public Builder setParameters(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -1041,10 +965,10 @@ public Builder setParameters(com.google.protobuf.Struct value) {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setParameters( + com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); onChanged(); @@ -1055,8 +979,6 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) return this; } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -1074,14 +996,13 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { if (parameters_ != null) { parameters_ = - com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); + com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); } else { parameters_ = value; } @@ -1093,8 +1014,6 @@ public Builder mergeParameters(com.google.protobuf.Struct value) { return this; } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -1112,8 +1031,7 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearParameters() { if (parametersBuilder_ == null) { @@ -1127,8 +1045,6 @@ public Builder clearParameters() { return this; } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -1146,17 +1062,14 @@ public Builder clearParameters() {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { - + onChanged(); return getParametersFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -1174,19 +1087,17 @@ public com.google.protobuf.Struct.Builder getParametersBuilder() {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilder(); } else { - return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + return parameters_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : parameters_; } } /** - * - * *
      * Optional. The collection of parameters associated with this context.
      * Depending on your protocol or client library language, this is a
@@ -1204,28 +1115,24 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
      *     -   Else: parameter value
      * 
* - * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getParameters(), getParentForChildren(), isClean()); + parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getParameters(), + getParentForChildren(), + isClean()); parameters_ = null; } return parametersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,12 +1142,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Context) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Context) private static final com.google.cloud.dialogflow.v2.Context DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Context(); } @@ -1249,16 +1156,16 @@ public static com.google.cloud.dialogflow.v2.Context getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Context parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Context(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Context parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Context(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1273,4 +1180,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Context getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java similarity index 87% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java index 54febb92f..06fe2b67f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface ContextOrBuilder - extends +public interface ContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Context) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The unique identifier of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -43,13 +25,10 @@ public interface ContextOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The unique identifier of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
@@ -67,14 +46,12 @@ public interface ContextOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The number of conversational query requests after which the
    * context expires. The default is `0`. If set to `0`, the context expires
@@ -83,14 +60,11 @@ public interface ContextOrBuilder
    * 
* * int32 lifespan_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lifespanCount. */ int getLifespanCount(); /** - * - * *
    * Optional. The collection of parameters associated with this context.
    * Depending on your protocol or client library language, this is a
@@ -109,13 +83,10 @@ public interface ContextOrBuilder
    * 
* * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
    * Optional. The collection of parameters associated with this context.
    * Depending on your protocol or client library language, this is a
@@ -134,13 +105,10 @@ public interface ContextOrBuilder
    * 
* * .google.protobuf.Struct parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parameters. */ com.google.protobuf.Struct getParameters(); /** - * - * *
    * Optional. The collection of parameters associated with this context.
    * Depending on your protocol or client library language, this is a
diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java
new file mode 100644
index 000000000..f289f2724
--- /dev/null
+++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ContextProto.java
@@ -0,0 +1,258 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/context.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public final class ContextProto {
+  private ContextProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_Context_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_Context_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_ListContextsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_ListContextsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_ListContextsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_ListContextsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_GetContextRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_CreateContextRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_UpdateContextRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_UpdateContextRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n(google/cloud/dialogflow/v2/context.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\033google/protob" +
+      "uf/empty.proto\032 google/protobuf/field_ma" +
+      "sk.proto\032\034google/protobuf/struct.proto\"\217" +
+      "\004\n\007Context\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\033\n\016lifespa" +
+      "n_count\030\002 \001(\005B\003\340A\001\0220\n\nparameters\030\003 \001(\0132\027" +
+      ".google.protobuf.StructB\003\340A\001:\241\003\352A\235\003\n!dia" +
+      "logflow.googleapis.com/Context\022>projects" +
+      "/{project}/agent/sessions/{session}/cont" +
+      "exts/{context}\022fprojects/{project}/agent" +
+      "/environments/{environment}/users/{user}" +
+      "/sessions/{session}/contexts/{context}\022S" +
+      "projects/{project}/locations/{location}/" +
+      "agent/sessions/{session}/contexts/{conte" +
+      "xt}\022{projects/{project}/locations/{locat" +
+      "ion}/agent/environments/{environment}/us" +
+      "ers/{user}/sessions/{session}/contexts/{" +
+      "context}\"\201\001\n\023ListContextsRequest\0229\n\006pare" +
+      "nt\030\001 \001(\tB)\340A\002\372A#\022!dialogflow.googleapis." +
+      "com/Context\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" +
+      "age_token\030\003 \001(\tB\003\340A\001\"f\n\024ListContextsResp" +
+      "onse\0225\n\010contexts\030\001 \003(\0132#.google.cloud.di" +
+      "alogflow.v2.Context\022\027\n\017next_page_token\030\002" +
+      " \001(\t\"L\n\021GetContextRequest\0227\n\004name\030\001 \001(\tB" +
+      ")\340A\002\372A#\n!dialogflow.googleapis.com/Conte" +
+      "xt\"\214\001\n\024CreateContextRequest\0229\n\006parent\030\001 " +
+      "\001(\tB)\340A\002\372A#\022!dialogflow.googleapis.com/C" +
+      "ontext\0229\n\007context\030\002 \001(\0132#.google.cloud.d" +
+      "ialogflow.v2.ContextB\003\340A\002\"\207\001\n\024UpdateCont" +
+      "extRequest\0229\n\007context\030\001 \001(\0132#.google.clo" +
+      "ud.dialogflow.v2.ContextB\003\340A\002\0224\n\013update_" +
+      "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" +
+      "\340A\001\"O\n\024DeleteContextRequest\0227\n\004name\030\001 \001(" +
+      "\tB)\340A\002\372A#\n!dialogflow.googleapis.com/Con" +
+      "text\"U\n\030DeleteAllContextsRequest\0229\n\006pare" +
+      "nt\030\001 \001(\tB)\340A\002\372A#\022!dialogflow.googleapis." +
+      "com/Context2\350\024\n\010Contexts\022\234\003\n\014ListContext" +
+      "s\022/.google.cloud.dialogflow.v2.ListConte" +
+      "xtsRequest\0320.google.cloud.dialogflow.v2." +
+      "ListContextsResponse\"\250\002\202\323\344\223\002\230\002\0221/v2/{par" +
+      "ent=projects/*/agent/sessions/*}/context" +
+      "sZJ\022H/v2/{parent=projects/*/agent/enviro" +
+      "nments/*/users/*/sessions/*}/contextsZ?\022" +
+      "=/v2/{parent=projects/*/locations/*/agen" +
+      "t/sessions/*}/contextsZV\022T/v2/{parent=pr" +
+      "ojects/*/locations/*/agent/environments/" +
+      "*/users/*/sessions/*}/contexts\332A\006parent\022" +
+      "\211\003\n\nGetContext\022-.google.cloud.dialogflow" +
+      ".v2.GetContextRequest\032#.google.cloud.dia" +
+      "logflow.v2.Context\"\246\002\202\323\344\223\002\230\002\0221/v2/{name=" +
+      "projects/*/agent/sessions/*/contexts/*}Z" +
+      "J\022H/v2/{name=projects/*/agent/environmen" +
+      "ts/*/users/*/sessions/*/contexts/*}Z?\022=/" +
+      "v2/{name=projects/*/locations/*/agent/se" +
+      "ssions/*/contexts/*}ZV\022T/v2/{name=projec" +
+      "ts/*/locations/*/agent/environments/*/us" +
+      "ers/*/sessions/*/contexts/*}\332A\004name\022\275\003\n\r" +
+      "CreateContext\0220.google.cloud.dialogflow." +
+      "v2.CreateContextRequest\032#.google.cloud.d" +
+      "ialogflow.v2.Context\"\324\002\202\323\344\223\002\274\002\"1/v2/{par" +
+      "ent=projects/*/agent/sessions/*}/context" +
+      "s:\007contextZS\"H/v2/{parent=projects/*/age" +
+      "nt/environments/*/users/*/sessions/*}/co" +
+      "ntexts:\007contextZH\"=/v2/{parent=projects/" +
+      "*/locations/*/agent/sessions/*}/contexts" +
+      ":\007contextZ_\"T/v2/{parent=projects/*/loca" +
+      "tions/*/agent/environments/*/users/*/ses" +
+      "sions/*}/contexts:\007context\332A\016parent,cont" +
+      "ext\022\342\003\n\rUpdateContext\0220.google.cloud.dia" +
+      "logflow.v2.UpdateContextRequest\032#.google" +
+      ".cloud.dialogflow.v2.Context\"\371\002\202\323\344\223\002\334\00229" +
+      "/v2/{context.name=projects/*/agent/sessi" +
+      "ons/*/contexts/*}:\007contextZ[2P/v2/{conte" +
+      "xt.name=projects/*/agent/environments/*/" +
+      "users/*/sessions/*/contexts/*}:\007contextZ" +
+      "P2E/v2/{context.name=projects/*/location" +
+      "s/*/agent/sessions/*/contexts/*}:\007contex" +
+      "tZg2\\/v2/{context.name=projects/*/locati" +
+      "ons/*/agent/environments/*/users/*/sessi" +
+      "ons/*/contexts/*}:\007context\332A\023context,upd" +
+      "ate_mask\022\202\003\n\rDeleteContext\0220.google.clou" +
+      "d.dialogflow.v2.DeleteContextRequest\032\026.g" +
+      "oogle.protobuf.Empty\"\246\002\202\323\344\223\002\230\002*1/v2/{nam" +
+      "e=projects/*/agent/sessions/*/contexts/*" +
+      "}ZJ*H/v2/{name=projects/*/agent/environm" +
+      "ents/*/users/*/sessions/*/contexts/*}Z?*" +
+      "=/v2/{name=projects/*/locations/*/agent/" +
+      "sessions/*/contexts/*}ZV*T/v2/{name=proj" +
+      "ects/*/locations/*/agent/environments/*/" +
+      "users/*/sessions/*/contexts/*}\332A\004name\022\214\003" +
+      "\n\021DeleteAllContexts\0224.google.cloud.dialo" +
+      "gflow.v2.DeleteAllContextsRequest\032\026.goog" +
+      "le.protobuf.Empty\"\250\002\202\323\344\223\002\230\002*1/v2/{parent" +
+      "=projects/*/agent/sessions/*}/contextsZJ" +
+      "*H/v2/{parent=projects/*/agent/environme" +
+      "nts/*/users/*/sessions/*}/contextsZ?*=/v" +
+      "2/{parent=projects/*/locations/*/agent/s" +
+      "essions/*}/contextsZV*T/v2/{parent=proje" +
+      "cts/*/locations/*/agent/environments/*/u" +
+      "sers/*/sessions/*}/contexts\332A\006parent\032x\312A" +
+      "\031dialogflow.googleapis.com\322AYhttps://www" +
+      ".googleapis.com/auth/cloud-platform,http" +
+      "s://www.googleapis.com/auth/dialogflowB\233" +
+      "\001\n\036com.google.cloud.dialogflow.v2B\014Conte" +
+      "xtProtoP\001ZDgoogle.golang.org/genproto/go" +
+      "ogleapis/cloud/dialogflow/v2;dialogflow\370" +
+      "\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006pr" +
+      "oto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+        });
+    internal_static_google_cloud_dialogflow_v2_Context_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_dialogflow_v2_Context_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_Context_descriptor,
+        new java.lang.String[] { "Name", "LifespanCount", "Parameters", });
+    internal_static_google_cloud_dialogflow_v2_ListContextsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_dialogflow_v2_ListContextsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_ListContextsRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_dialogflow_v2_ListContextsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_dialogflow_v2_ListContextsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_ListContextsResponse_descriptor,
+        new java.lang.String[] { "Contexts", "NextPageToken", });
+    internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_dialogflow_v2_GetContextRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_dialogflow_v2_CreateContextRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor,
+        new java.lang.String[] { "Parent", "Context", });
+    internal_static_google_cloud_dialogflow_v2_UpdateContextRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_dialogflow_v2_UpdateContextRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_UpdateContextRequest_descriptor,
+        new java.lang.String[] { "Context", "UpdateMask", });
+    internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor,
+        new java.lang.String[] { "Parent", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java
similarity index 70%
rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java
rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java
index 708efc383..9ae7a90d1 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java
+++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Conversation.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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/conversation.proto
 
 package com.google.cloud.dialogflow.v2;
 
 /**
- *
- *
  * 
  * Represents a conversation.
  * A conversation is an interaction between an agent, including live agents
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.Conversation}
  */
-public final class Conversation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Conversation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Conversation)
     ConversationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Conversation.newBuilder() to construct.
   private Conversation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Conversation() {
     name_ = "";
     lifecycleState_ = 0;
@@ -49,15 +31,16 @@ private Conversation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Conversation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Conversation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,128 +59,111 @@ private Conversation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              lifecycleState_ = rawValue;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            lifecycleState_ = rawValue;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              conversationProfile_ = s;
-              break;
+            conversationProfile_ = s;
+            break;
+          }
+          case 34: {
+            com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder subBuilder = null;
+            if (phoneNumber_ != null) {
+              subBuilder = phoneNumber_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder subBuilder = null;
-              if (phoneNumber_ != null) {
-                subBuilder = phoneNumber_.toBuilder();
-              }
-              phoneNumber_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.ConversationPhoneNumber.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(phoneNumber_);
-                phoneNumber_ = subBuilder.buildPartial();
-              }
-
-              break;
+            phoneNumber_ = input.readMessage(com.google.cloud.dialogflow.v2.ConversationPhoneNumber.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(phoneNumber_);
+              phoneNumber_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 50:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              int rawValue = input.readEnum();
 
-              conversationStage_ = rawValue;
-              break;
+            break;
+          }
+          case 50: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          case 56: {
+            int rawValue = input.readEnum();
+
+            conversationStage_ = 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.ConversationProto
-        .internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.ConversationProto
-        .internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.Conversation.class,
-            com.google.cloud.dialogflow.v2.Conversation.Builder.class);
+            com.google.cloud.dialogflow.v2.Conversation.class, com.google.cloud.dialogflow.v2.Conversation.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumeration of the completion status of the conversation.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Conversation.LifecycleState} */ - public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { + public enum LifecycleState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown.
      * 
@@ -206,8 +172,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ LIFECYCLE_STATE_UNSPECIFIED(0), /** - * - * *
      * Conversation is currently open for media analysis.
      * 
@@ -216,8 +180,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ IN_PROGRESS(1), /** - * - * *
      * Conversation has been completed.
      * 
@@ -229,8 +191,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown.
      * 
@@ -239,8 +199,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Conversation is currently open for media analysis.
      * 
@@ -249,8 +207,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_PROGRESS_VALUE = 1; /** - * - * *
      * Conversation has been completed.
      * 
@@ -259,6 +215,7 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -283,49 +240,49 @@ public static LifecycleState valueOf(int value) { */ public static LifecycleState forNumber(int value) { switch (value) { - case 0: - return LIFECYCLE_STATE_UNSPECIFIED; - case 1: - return IN_PROGRESS; - case 2: - return COMPLETED; - default: - return null; + case 0: return LIFECYCLE_STATE_UNSPECIFIED; + case 1: return IN_PROGRESS; + case 2: return COMPLETED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + LifecycleState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LifecycleState findValueByNumber(int number) { + return LifecycleState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LifecycleState findValueByNumber(int number) { - return LifecycleState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.dialogflow.v2.Conversation.getDescriptor().getEnumTypes().get(0); } private static final LifecycleState[] VALUES = values(); - public static LifecycleState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LifecycleState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -343,8 +300,6 @@ private LifecycleState(int value) { } /** - * - * *
    * Enumeration of the different conversation stages a conversation can be in.
    * Reference:
@@ -353,10 +308,9 @@ private LifecycleState(int value) {
    *
    * Protobuf enum {@code google.cloud.dialogflow.v2.Conversation.ConversationStage}
    */
-  public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ConversationStage
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unknown. Should never be used after a conversation is successfully
      * created.
@@ -366,8 +320,6 @@ public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum
      */
     CONVERSATION_STAGE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The conversation should return virtual agent responses into the
      * conversation.
@@ -377,8 +329,6 @@ public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum
      */
     VIRTUAL_AGENT_STAGE(1),
     /**
-     *
-     *
      * 
      * The conversation should not provide responses, just listen and provide
      * suggestions.
@@ -391,8 +341,6 @@ public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Unknown. Should never be used after a conversation is successfully
      * created.
@@ -402,8 +350,6 @@ public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int CONVERSATION_STAGE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The conversation should return virtual agent responses into the
      * conversation.
@@ -413,8 +359,6 @@ public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int VIRTUAL_AGENT_STAGE_VALUE = 1;
     /**
-     *
-     *
      * 
      * The conversation should not provide responses, just listen and provide
      * suggestions.
@@ -424,6 +368,7 @@ public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int HUMAN_ASSIST_STAGE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -448,14 +393,10 @@ public static ConversationStage valueOf(int value) {
      */
     public static ConversationStage forNumber(int value) {
       switch (value) {
-        case 0:
-          return CONVERSATION_STAGE_UNSPECIFIED;
-        case 1:
-          return VIRTUAL_AGENT_STAGE;
-        case 2:
-          return HUMAN_ASSIST_STAGE;
-        default:
-          return null;
+        case 0: return CONVERSATION_STAGE_UNSPECIFIED;
+        case 1: return VIRTUAL_AGENT_STAGE;
+        case 2: return HUMAN_ASSIST_STAGE;
+        default: return null;
       }
     }
 
@@ -463,28 +404,28 @@ public static ConversationStage forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        ConversationStage> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ConversationStage findValueByNumber(int number) {
+              return ConversationStage.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ConversationStage findValueByNumber(int number) {
-                return ConversationStage.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.dialogflow.v2.Conversation.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -493,7 +434,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ConversationStage valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -513,8 +455,6 @@ private ConversationStage(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The unique identifier of this conversation.
    * Format: `projects/<Project ID>/locations/<Location
@@ -522,7 +462,6 @@ private ConversationStage(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -531,15 +470,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The unique identifier of this conversation.
    * Format: `projects/<Project ID>/locations/<Location
@@ -547,15 +485,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -566,50 +505,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LIFECYCLE_STATE_FIELD_NUMBER = 2; private int lifecycleState_; /** - * - * *
    * Output only. The current state of the Conversation.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override - public int getLifecycleStateValue() { + @java.lang.Override public int getLifecycleStateValue() { return lifecycleState_; } /** - * - * *
    * Output only. The current state of the Conversation.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.Conversation.LifecycleState getLifecycleState() { + @java.lang.Override public com.google.cloud.dialogflow.v2.Conversation.LifecycleState getLifecycleState() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Conversation.LifecycleState result = - com.google.cloud.dialogflow.v2.Conversation.LifecycleState.valueOf(lifecycleState_); - return result == null - ? com.google.cloud.dialogflow.v2.Conversation.LifecycleState.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Conversation.LifecycleState result = com.google.cloud.dialogflow.v2.Conversation.LifecycleState.valueOf(lifecycleState_); + return result == null ? com.google.cloud.dialogflow.v2.Conversation.LifecycleState.UNRECOGNIZED : result; } public static final int CONVERSATION_PROFILE_FIELD_NUMBER = 3; private volatile java.lang.Object conversationProfile_; /** - * - * *
    * Required. The Conversation Profile to be used to configure this
    * Conversation. This field cannot be updated.
@@ -617,10 +539,7 @@ public com.google.cloud.dialogflow.v2.Conversation.LifecycleState getLifecycleSt
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The conversationProfile. */ @java.lang.Override @@ -629,15 +548,14 @@ public java.lang.String getConversationProfile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversationProfile_ = s; return s; } } /** - * - * *
    * Required. The Conversation Profile to be used to configure this
    * Conversation. This field cannot be updated.
@@ -645,18 +563,17 @@ public java.lang.String getConversationProfile() {
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for conversationProfile. */ @java.lang.Override - public com.google.protobuf.ByteString getConversationProfileBytes() { + public com.google.protobuf.ByteString + getConversationProfileBytes() { java.lang.Object ref = conversationProfile_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversationProfile_ = b; return b; } else { @@ -667,17 +584,12 @@ public com.google.protobuf.ByteString getConversationProfileBytes() { public static final int PHONE_NUMBER_FIELD_NUMBER = 4; private com.google.cloud.dialogflow.v2.ConversationPhoneNumber phoneNumber_; /** - * - * *
    * Output only. It will not be empty if the conversation is to be connected over
    * telephony.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the phoneNumber field is set. */ @java.lang.Override @@ -685,36 +597,25 @@ public boolean hasPhoneNumber() { return phoneNumber_ != null; } /** - * - * *
    * Output only. It will not be empty if the conversation is to be connected over
    * telephony.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The phoneNumber. */ @java.lang.Override public com.google.cloud.dialogflow.v2.ConversationPhoneNumber getPhoneNumber() { - return phoneNumber_ == null - ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance() - : phoneNumber_; + return phoneNumber_ == null ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance() : phoneNumber_; } /** - * - * *
    * Output only. It will not be empty if the conversation is to be connected over
    * telephony.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder getPhoneNumberOrBuilder() { @@ -724,15 +625,11 @@ public com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder getPhoneN public static final int START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. The time the conversation was started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -740,15 +637,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. The time the conversation was started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -756,14 +649,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The time the conversation was started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -773,15 +663,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the conversation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -789,15 +675,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the conversation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -805,14 +687,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the conversation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -822,8 +701,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int CONVERSATION_STAGE_FIELD_NUMBER = 7; private int conversationStage_; /** - * - * *
    * The stage of a conversation. It indicates whether the virtual agent or a
    * human agent is handling the conversation.
@@ -839,16 +716,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * * @return The enum numeric value on the wire for conversationStage. */ - @java.lang.Override - public int getConversationStageValue() { + @java.lang.Override public int getConversationStageValue() { return conversationStage_; } /** - * - * *
    * The stage of a conversation. It indicates whether the virtual agent or a
    * human agent is handling the conversation.
@@ -864,21 +737,15 @@ public int getConversationStageValue() {
    * 
* * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * * @return The conversationStage. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.Conversation.ConversationStage getConversationStage() { + @java.lang.Override public com.google.cloud.dialogflow.v2.Conversation.ConversationStage getConversationStage() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Conversation.ConversationStage result = - com.google.cloud.dialogflow.v2.Conversation.ConversationStage.valueOf(conversationStage_); - return result == null - ? com.google.cloud.dialogflow.v2.Conversation.ConversationStage.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Conversation.ConversationStage result = com.google.cloud.dialogflow.v2.Conversation.ConversationStage.valueOf(conversationStage_); + return result == null ? com.google.cloud.dialogflow.v2.Conversation.ConversationStage.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -890,13 +757,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (lifecycleState_ - != com.google.cloud.dialogflow.v2.Conversation.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED - .getNumber()) { + if (lifecycleState_ != com.google.cloud.dialogflow.v2.Conversation.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, lifecycleState_); } if (!getConversationProfileBytes().isEmpty()) { @@ -911,10 +777,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(6, getEndTime()); } - if (conversationStage_ - != com.google.cloud.dialogflow.v2.Conversation.ConversationStage - .CONVERSATION_STAGE_UNSPECIFIED - .getNumber()) { + if (conversationStage_ != com.google.cloud.dialogflow.v2.Conversation.ConversationStage.CONVERSATION_STAGE_UNSPECIFIED.getNumber()) { output.writeEnum(7, conversationStage_); } unknownFields.writeTo(output); @@ -929,28 +792,28 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (lifecycleState_ - != com.google.cloud.dialogflow.v2.Conversation.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, lifecycleState_); + if (lifecycleState_ != com.google.cloud.dialogflow.v2.Conversation.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, lifecycleState_); } if (!getConversationProfileBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, conversationProfile_); } if (phoneNumber_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPhoneNumber()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPhoneNumber()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEndTime()); } - if (conversationStage_ - != com.google.cloud.dialogflow.v2.Conversation.ConversationStage - .CONVERSATION_STAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, conversationStage_); + if (conversationStage_ != com.google.cloud.dialogflow.v2.Conversation.ConversationStage.CONVERSATION_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, conversationStage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -960,28 +823,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Conversation)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Conversation other = - (com.google.cloud.dialogflow.v2.Conversation) obj; + com.google.cloud.dialogflow.v2.Conversation other = (com.google.cloud.dialogflow.v2.Conversation) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (lifecycleState_ != other.lifecycleState_) return false; - if (!getConversationProfile().equals(other.getConversationProfile())) return false; + if (!getConversationProfile() + .equals(other.getConversationProfile())) return false; if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (conversationStage_ != other.conversationStage_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1020,104 +887,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.Conversation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Conversation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Conversation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Conversation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Conversation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.Conversation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a conversation.
    * A conversation is an interaction between an agent, including live agents
@@ -1127,23 +987,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Conversation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Conversation)
       com.google.cloud.dialogflow.v2.ConversationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.ConversationProto
-          .internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.ConversationProto
-          .internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Conversation.class,
-              com.google.cloud.dialogflow.v2.Conversation.Builder.class);
+              com.google.cloud.dialogflow.v2.Conversation.class, com.google.cloud.dialogflow.v2.Conversation.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.Conversation.newBuilder()
@@ -1151,15 +1009,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1193,9 +1052,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.ConversationProto
-          .internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
     }
 
     @java.lang.Override
@@ -1214,8 +1073,7 @@ public com.google.cloud.dialogflow.v2.Conversation build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.Conversation buildPartial() {
-      com.google.cloud.dialogflow.v2.Conversation result =
-          new com.google.cloud.dialogflow.v2.Conversation(this);
+      com.google.cloud.dialogflow.v2.Conversation result = new com.google.cloud.dialogflow.v2.Conversation(this);
       result.name_ = name_;
       result.lifecycleState_ = lifecycleState_;
       result.conversationProfile_ = conversationProfile_;
@@ -1243,39 +1101,38 @@ public com.google.cloud.dialogflow.v2.Conversation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.Conversation) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.Conversation) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.Conversation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1338,8 +1195,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The unique identifier of this conversation.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1347,13 +1202,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1362,8 +1217,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The unique identifier of this conversation.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1371,14 +1224,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1386,8 +1240,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The unique identifier of this conversation.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1395,22 +1247,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The unique identifier of this conversation.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1418,18 +1268,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The unique identifier of this conversation.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1437,16 +1284,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1454,103 +1301,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int lifecycleState_ = 0; /** - * - * *
      * Output only. The current state of the Conversation.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override - public int getLifecycleStateValue() { + @java.lang.Override public int getLifecycleStateValue() { return lifecycleState_; } /** - * - * *
      * Output only. The current state of the Conversation.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for lifecycleState to set. * @return This builder for chaining. */ public Builder setLifecycleStateValue(int value) { - + lifecycleState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Conversation.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Conversation.LifecycleState getLifecycleState() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Conversation.LifecycleState result = - com.google.cloud.dialogflow.v2.Conversation.LifecycleState.valueOf(lifecycleState_); - return result == null - ? com.google.cloud.dialogflow.v2.Conversation.LifecycleState.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Conversation.LifecycleState result = com.google.cloud.dialogflow.v2.Conversation.LifecycleState.valueOf(lifecycleState_); + return result == null ? com.google.cloud.dialogflow.v2.Conversation.LifecycleState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the Conversation.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The lifecycleState to set. * @return This builder for chaining. */ - public Builder setLifecycleState( - com.google.cloud.dialogflow.v2.Conversation.LifecycleState value) { + public Builder setLifecycleState(com.google.cloud.dialogflow.v2.Conversation.LifecycleState value) { if (value == null) { throw new NullPointerException(); } - + lifecycleState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Conversation.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearLifecycleState() { - + lifecycleState_ = 0; onChanged(); return this; @@ -1558,8 +1375,6 @@ public Builder clearLifecycleState() { private java.lang.Object conversationProfile_ = ""; /** - * - * *
      * Required. The Conversation Profile to be used to configure this
      * Conversation. This field cannot be updated.
@@ -1567,16 +1382,14 @@ public Builder clearLifecycleState() {
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The conversationProfile. */ public java.lang.String getConversationProfile() { java.lang.Object ref = conversationProfile_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversationProfile_ = s; return s; @@ -1585,8 +1398,6 @@ public java.lang.String getConversationProfile() { } } /** - * - * *
      * Required. The Conversation Profile to be used to configure this
      * Conversation. This field cannot be updated.
@@ -1594,17 +1405,16 @@ public java.lang.String getConversationProfile() {
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for conversationProfile. */ - public com.google.protobuf.ByteString getConversationProfileBytes() { + public com.google.protobuf.ByteString + getConversationProfileBytes() { java.lang.Object ref = conversationProfile_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversationProfile_ = b; return b; } else { @@ -1612,8 +1422,6 @@ public com.google.protobuf.ByteString getConversationProfileBytes() { } } /** - * - * *
      * Required. The Conversation Profile to be used to configure this
      * Conversation. This field cannot be updated.
@@ -1621,25 +1429,21 @@ public com.google.protobuf.ByteString getConversationProfileBytes() {
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The conversationProfile to set. * @return This builder for chaining. */ - public Builder setConversationProfile(java.lang.String value) { + public Builder setConversationProfile( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + conversationProfile_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Conversation Profile to be used to configure this
      * Conversation. This field cannot be updated.
@@ -1647,21 +1451,16 @@ public Builder setConversationProfile(java.lang.String value) {
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearConversationProfile() { - + conversationProfile_ = getDefaultInstance().getConversationProfile(); onChanged(); return this; } /** - * - * *
      * Required. The Conversation Profile to be used to configure this
      * Conversation. This field cannot be updated.
@@ -1669,19 +1468,17 @@ public Builder clearConversationProfile() {
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for conversationProfile to set. * @return This builder for chaining. */ - public Builder setConversationProfileBytes(com.google.protobuf.ByteString value) { + public Builder setConversationProfileBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationProfile_ = value; onChanged(); return this; @@ -1689,61 +1486,42 @@ public Builder setConversationProfileBytes(com.google.protobuf.ByteString value) private com.google.cloud.dialogflow.v2.ConversationPhoneNumber phoneNumber_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ConversationPhoneNumber, - com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder, - com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder> - phoneNumberBuilder_; + com.google.cloud.dialogflow.v2.ConversationPhoneNumber, com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder, com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder> phoneNumberBuilder_; /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return phoneNumberBuilder_ != null || phoneNumber_ != null; } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The phoneNumber. */ public com.google.cloud.dialogflow.v2.ConversationPhoneNumber getPhoneNumber() { if (phoneNumberBuilder_ == null) { - return phoneNumber_ == null - ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance() - : phoneNumber_; + return phoneNumber_ == null ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance() : phoneNumber_; } else { return phoneNumberBuilder_.getMessage(); } } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhoneNumber value) { if (phoneNumberBuilder_ == null) { @@ -1759,16 +1537,12 @@ public Builder setPhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhoneNu return this; } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPhoneNumber( com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder builderForValue) { @@ -1782,24 +1556,18 @@ public Builder setPhoneNumber( return this; } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhoneNumber value) { if (phoneNumberBuilder_ == null) { if (phoneNumber_ != null) { phoneNumber_ = - com.google.cloud.dialogflow.v2.ConversationPhoneNumber.newBuilder(phoneNumber_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.ConversationPhoneNumber.newBuilder(phoneNumber_).mergeFrom(value).buildPartial(); } else { phoneNumber_ = value; } @@ -1811,16 +1579,12 @@ public Builder mergePhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhone return this; } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPhoneNumber() { if (phoneNumberBuilder_ == null) { @@ -1834,68 +1598,51 @@ public Builder clearPhoneNumber() { return this; } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder getPhoneNumberBuilder() { - + onChanged(); return getPhoneNumberFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder - getPhoneNumberOrBuilder() { + public com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder getPhoneNumberOrBuilder() { if (phoneNumberBuilder_ != null) { return phoneNumberBuilder_.getMessageOrBuilder(); } else { - return phoneNumber_ == null - ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance() - : phoneNumber_; + return phoneNumber_ == null ? + com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance() : phoneNumber_; } } /** - * - * *
      * Output only. It will not be empty if the conversation is to be connected over
      * telephony.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ConversationPhoneNumber, - com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder, - com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder> + com.google.cloud.dialogflow.v2.ConversationPhoneNumber, com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder, com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder> getPhoneNumberFieldBuilder() { if (phoneNumberBuilder_ == null) { - phoneNumberBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ConversationPhoneNumber, - com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder, - com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder>( - getPhoneNumber(), getParentForChildren(), isClean()); + phoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.ConversationPhoneNumber, com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder, com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder>( + getPhoneNumber(), + getParentForChildren(), + isClean()); phoneNumber_ = null; } return phoneNumberBuilder_; @@ -1903,35 +1650,24 @@ public com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder getPhoneNu private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1942,14 +1678,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -1965,16 +1698,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1985,20 +1716,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2010,14 +1738,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -2031,59 +1756,48 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. The time the conversation was started.
      * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2091,35 +1805,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2130,14 +1833,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2153,16 +1853,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2173,20 +1871,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2198,14 +1893,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2219,59 +1911,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the conversation was finished.
      * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2279,8 +1960,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int conversationStage_ = 0; /** - * - * *
      * The stage of a conversation. It indicates whether the virtual agent or a
      * human agent is handling the conversation.
@@ -2295,18 +1974,13 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      * 
* - * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * - * + * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; * @return The enum numeric value on the wire for conversationStage. */ - @java.lang.Override - public int getConversationStageValue() { + @java.lang.Override public int getConversationStageValue() { return conversationStage_; } /** - * - * *
      * The stage of a conversation. It indicates whether the virtual agent or a
      * human agent is handling the conversation.
@@ -2321,21 +1995,17 @@ public int getConversationStageValue() {
      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      * 
* - * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * - * + * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; * @param value The enum numeric value on the wire for conversationStage to set. * @return This builder for chaining. */ public Builder setConversationStageValue(int value) { - + conversationStage_ = value; onChanged(); return this; } /** - * - * *
      * The stage of a conversation. It indicates whether the virtual agent or a
      * human agent is handling the conversation.
@@ -2350,23 +2020,16 @@ public Builder setConversationStageValue(int value) {
      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      * 
* - * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * - * + * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; * @return The conversationStage. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Conversation.ConversationStage getConversationStage() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Conversation.ConversationStage result = - com.google.cloud.dialogflow.v2.Conversation.ConversationStage.valueOf(conversationStage_); - return result == null - ? com.google.cloud.dialogflow.v2.Conversation.ConversationStage.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Conversation.ConversationStage result = com.google.cloud.dialogflow.v2.Conversation.ConversationStage.valueOf(conversationStage_); + return result == null ? com.google.cloud.dialogflow.v2.Conversation.ConversationStage.UNRECOGNIZED : result; } /** - * - * *
      * The stage of a conversation. It indicates whether the virtual agent or a
      * human agent is handling the conversation.
@@ -2381,25 +2044,20 @@ public com.google.cloud.dialogflow.v2.Conversation.ConversationStage getConversa
      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      * 
* - * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * - * + * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; * @param value The conversationStage to set. * @return This builder for chaining. */ - public Builder setConversationStage( - com.google.cloud.dialogflow.v2.Conversation.ConversationStage value) { + public Builder setConversationStage(com.google.cloud.dialogflow.v2.Conversation.ConversationStage value) { if (value == null) { throw new NullPointerException(); } - + conversationStage_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The stage of a conversation. It indicates whether the virtual agent or a
      * human agent is handling the conversation.
@@ -2414,20 +2072,18 @@ public Builder setConversationStage(
      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
      * 
* - * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * - * + * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; * @return This builder for chaining. */ public Builder clearConversationStage() { - + conversationStage_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2437,12 +2093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Conversation) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Conversation) private static final com.google.cloud.dialogflow.v2.Conversation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Conversation(); } @@ -2451,16 +2107,16 @@ public static com.google.cloud.dialogflow.v2.Conversation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Conversation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Conversation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Conversation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Conversation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2475,4 +2131,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Conversation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEvent.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEvent.java similarity index 75% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEvent.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEvent.java index cc1815cda..98c833ee9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEvent.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEvent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_event.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents a notification sent to Pub/Sub subscribers for conversation
  * lifecycle events.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.ConversationEvent}
  */
-public final class ConversationEvent extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConversationEvent extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ConversationEvent)
     ConversationEventOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConversationEvent.newBuilder() to construct.
   private ConversationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConversationEvent() {
     conversation_ = "";
     type_ = 0;
@@ -45,15 +27,16 @@ private ConversationEvent() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConversationEvent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ConversationEvent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,97 +55,87 @@ private ConversationEvent(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              conversation_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            conversation_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              type_ = rawValue;
-              break;
+            type_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (errorStatus_ != null) {
+              subBuilder = errorStatus_.toBuilder();
+            }
+            errorStatus_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(errorStatus_);
+              errorStatus_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (errorStatus_ != null) {
-                subBuilder = errorStatus_.toBuilder();
-              }
-              errorStatus_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(errorStatus_);
-                errorStatus_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 34: {
+            com.google.cloud.dialogflow.v2.Message.Builder subBuilder = null;
+            if (payloadCase_ == 4) {
+              subBuilder = ((com.google.cloud.dialogflow.v2.Message) payload_).toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.dialogflow.v2.Message.Builder subBuilder = null;
-              if (payloadCase_ == 4) {
-                subBuilder = ((com.google.cloud.dialogflow.v2.Message) payload_).toBuilder();
-              }
-              payload_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Message.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Message) payload_);
-                payload_ = subBuilder.buildPartial();
-              }
-              payloadCase_ = 4;
-              break;
+            payload_ =
+                input.readMessage(com.google.cloud.dialogflow.v2.Message.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Message) payload_);
+              payload_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            payloadCase_ = 4;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.ConversationEventProto
-        .internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.ConversationEventProto.internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.ConversationEventProto
-        .internal_static_google_cloud_dialogflow_v2_ConversationEvent_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.ConversationEventProto.internal_static_google_cloud_dialogflow_v2_ConversationEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.ConversationEvent.class,
-            com.google.cloud.dialogflow.v2.ConversationEvent.Builder.class);
+            com.google.cloud.dialogflow.v2.ConversationEvent.class, com.google.cloud.dialogflow.v2.ConversationEvent.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Enumeration of the types of events available.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.ConversationEvent.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Type not set.
      * 
@@ -171,8 +144,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * A new conversation has been opened. This is fired when a telephone call
      * is answered, or a conversation is created via the API.
@@ -182,8 +153,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     CONVERSATION_STARTED(1),
     /**
-     *
-     *
      * 
      * An existing conversation has closed. This is fired when a telephone call
      * is terminated, or a conversation is closed via the API.
@@ -193,8 +162,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     CONVERSATION_FINISHED(2),
     /**
-     *
-     *
      * 
      * An existing conversation has received notification from Dialogflow that
      * human intervention is required.
@@ -204,8 +171,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     HUMAN_INTERVENTION_NEEDED(3),
     /**
-     *
-     *
      * 
      * An existing conversation has received a new message, either from API or
      * telephony. It is configured in
@@ -216,8 +181,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     NEW_MESSAGE(5),
     /**
-     *
-     *
      * 
      * Unrecoverable error during a telephone call.
      * In general non-recoverable errors only occur if something was
@@ -235,8 +198,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Type not set.
      * 
@@ -245,8 +206,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A new conversation has been opened. This is fired when a telephone call
      * is answered, or a conversation is created via the API.
@@ -256,8 +215,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CONVERSATION_STARTED_VALUE = 1;
     /**
-     *
-     *
      * 
      * An existing conversation has closed. This is fired when a telephone call
      * is terminated, or a conversation is closed via the API.
@@ -267,8 +224,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CONVERSATION_FINISHED_VALUE = 2;
     /**
-     *
-     *
      * 
      * An existing conversation has received notification from Dialogflow that
      * human intervention is required.
@@ -278,8 +233,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HUMAN_INTERVENTION_NEEDED_VALUE = 3;
     /**
-     *
-     *
      * 
      * An existing conversation has received a new message, either from API or
      * telephony. It is configured in
@@ -290,8 +243,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NEW_MESSAGE_VALUE = 5;
     /**
-     *
-     *
      * 
      * Unrecoverable error during a telephone call.
      * In general non-recoverable errors only occur if something was
@@ -306,6 +257,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNRECOVERABLE_ERROR_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -330,55 +282,52 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0:
-          return TYPE_UNSPECIFIED;
-        case 1:
-          return CONVERSATION_STARTED;
-        case 2:
-          return CONVERSATION_FINISHED;
-        case 3:
-          return HUMAN_INTERVENTION_NEEDED;
-        case 5:
-          return NEW_MESSAGE;
-        case 4:
-          return UNRECOVERABLE_ERROR;
-        default:
-          return null;
+        case 0: return TYPE_UNSPECIFIED;
+        case 1: return CONVERSATION_STARTED;
+        case 2: return CONVERSATION_FINISHED;
+        case 3: return HUMAN_INTERVENTION_NEEDED;
+        case 5: return NEW_MESSAGE;
+        case 4: return UNRECOVERABLE_ERROR;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Type> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Type findValueByNumber(int number) {
+              return Type.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Type findValueByNumber(int number) {
-            return Type.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.dialogflow.v2.ConversationEvent.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -397,15 +346,12 @@ private Type(int value) {
 
   private int payloadCase_ = 0;
   private java.lang.Object payload_;
-
   public enum PayloadCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NEW_MESSAGE_PAYLOAD(4),
     PAYLOAD_NOT_SET(0);
     private final int value;
-
     private PayloadCase(int value) {
       this.value = value;
     }
@@ -421,29 +367,25 @@ public static PayloadCase valueOf(int value) {
 
     public static PayloadCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return NEW_MESSAGE_PAYLOAD;
-        case 0:
-          return PAYLOAD_NOT_SET;
-        default:
-          return null;
+        case 4: return NEW_MESSAGE_PAYLOAD;
+        case 0: return PAYLOAD_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PayloadCase getPayloadCase() {
-    return PayloadCase.forNumber(payloadCase_);
+  public PayloadCase
+  getPayloadCase() {
+    return PayloadCase.forNumber(
+        payloadCase_);
   }
 
   public static final int CONVERSATION_FIELD_NUMBER = 1;
   private volatile java.lang.Object conversation_;
   /**
-   *
-   *
    * 
    * The unique identifier of the conversation this notification
    * refers to.
@@ -451,7 +393,6 @@ public PayloadCase getPayloadCase() {
    * 
* * string conversation = 1; - * * @return The conversation. */ @java.lang.Override @@ -460,15 +401,14 @@ public java.lang.String getConversation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversation_ = s; return s; } } /** - * - * *
    * The unique identifier of the conversation this notification
    * refers to.
@@ -476,15 +416,16 @@ public java.lang.String getConversation() {
    * 
* * string conversation = 1; - * * @return The bytes for conversation. */ @java.lang.Override - public com.google.protobuf.ByteString getConversationBytes() { + public com.google.protobuf.ByteString + getConversationBytes() { java.lang.Object ref = conversation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversation_ = b; return b; } else { @@ -495,53 +436,39 @@ public com.google.protobuf.ByteString getConversationBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
    * The type of the event that this notification refers to.
    * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The type of the event that this notification refers to.
    * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.ConversationEvent.Type getType() { + @java.lang.Override public com.google.cloud.dialogflow.v2.ConversationEvent.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.ConversationEvent.Type result = - com.google.cloud.dialogflow.v2.ConversationEvent.Type.valueOf(type_); - return result == null - ? com.google.cloud.dialogflow.v2.ConversationEvent.Type.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.ConversationEvent.Type result = com.google.cloud.dialogflow.v2.ConversationEvent.Type.valueOf(type_); + return result == null ? com.google.cloud.dialogflow.v2.ConversationEvent.Type.UNRECOGNIZED : result; } public static final int ERROR_STATUS_FIELD_NUMBER = 3; private com.google.rpc.Status errorStatus_; /** - * - * *
    * More detailed information about an error. Only set for type
    * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
    * 
* * .google.rpc.Status error_status = 3; - * * @return Whether the errorStatus field is set. */ @java.lang.Override @@ -549,15 +476,12 @@ public boolean hasErrorStatus() { return errorStatus_ != null; } /** - * - * *
    * More detailed information about an error. Only set for type
    * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
    * 
* * .google.rpc.Status error_status = 3; - * * @return The errorStatus. */ @java.lang.Override @@ -565,8 +489,6 @@ public com.google.rpc.Status getErrorStatus() { return errorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : errorStatus_; } /** - * - * *
    * More detailed information about an error. Only set for type
    * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -581,14 +503,11 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() {
 
   public static final int NEW_MESSAGE_PAYLOAD_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * Payload of NEW_MESSAGE event.
    * 
* * .google.cloud.dialogflow.v2.Message new_message_payload = 4; - * * @return Whether the newMessagePayload field is set. */ @java.lang.Override @@ -596,26 +515,21 @@ public boolean hasNewMessagePayload() { return payloadCase_ == 4; } /** - * - * *
    * Payload of NEW_MESSAGE event.
    * 
* * .google.cloud.dialogflow.v2.Message new_message_payload = 4; - * * @return The newMessagePayload. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Message getNewMessagePayload() { if (payloadCase_ == 4) { - return (com.google.cloud.dialogflow.v2.Message) payload_; + return (com.google.cloud.dialogflow.v2.Message) payload_; } return com.google.cloud.dialogflow.v2.Message.getDefaultInstance(); } /** - * - * *
    * Payload of NEW_MESSAGE event.
    * 
@@ -625,13 +539,12 @@ public com.google.cloud.dialogflow.v2.Message getNewMessagePayload() { @java.lang.Override public com.google.cloud.dialogflow.v2.MessageOrBuilder getNewMessagePayloadOrBuilder() { if (payloadCase_ == 4) { - return (com.google.cloud.dialogflow.v2.Message) payload_; + return (com.google.cloud.dialogflow.v2.Message) payload_; } return com.google.cloud.dialogflow.v2.Message.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -643,12 +556,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getConversationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conversation_); } - if (type_ - != com.google.cloud.dialogflow.v2.ConversationEvent.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ != com.google.cloud.dialogflow.v2.ConversationEvent.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (errorStatus_ != null) { @@ -669,17 +582,17 @@ public int getSerializedSize() { if (!getConversationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conversation_); } - if (type_ - != com.google.cloud.dialogflow.v2.ConversationEvent.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.dialogflow.v2.ConversationEvent.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (errorStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getErrorStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getErrorStatus()); } if (payloadCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.dialogflow.v2.Message) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.dialogflow.v2.Message) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -689,24 +602,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.ConversationEvent)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.ConversationEvent other = - (com.google.cloud.dialogflow.v2.ConversationEvent) obj; + com.google.cloud.dialogflow.v2.ConversationEvent other = (com.google.cloud.dialogflow.v2.ConversationEvent) obj; - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; if (type_ != other.type_) return false; if (hasErrorStatus() != other.hasErrorStatus()) return false; if (hasErrorStatus()) { - if (!getErrorStatus().equals(other.getErrorStatus())) return false; + if (!getErrorStatus() + .equals(other.getErrorStatus())) return false; } if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 4: - if (!getNewMessagePayload().equals(other.getNewMessagePayload())) return false; + if (!getNewMessagePayload() + .equals(other.getNewMessagePayload())) return false; break; case 0: default: @@ -743,104 +658,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ConversationEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ConversationEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.ConversationEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a notification sent to Pub/Sub subscribers for conversation
    * lifecycle events.
@@ -848,23 +756,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.ConversationEvent}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ConversationEvent)
       com.google.cloud.dialogflow.v2.ConversationEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.ConversationEventProto
-          .internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.ConversationEventProto.internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.ConversationEventProto
-          .internal_static_google_cloud_dialogflow_v2_ConversationEvent_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.ConversationEventProto.internal_static_google_cloud_dialogflow_v2_ConversationEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.ConversationEvent.class,
-              com.google.cloud.dialogflow.v2.ConversationEvent.Builder.class);
+              com.google.cloud.dialogflow.v2.ConversationEvent.class, com.google.cloud.dialogflow.v2.ConversationEvent.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.ConversationEvent.newBuilder()
@@ -872,15 +778,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -900,9 +807,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.ConversationEventProto
-          .internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.ConversationEventProto.internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor;
     }
 
     @java.lang.Override
@@ -921,8 +828,7 @@ public com.google.cloud.dialogflow.v2.ConversationEvent build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.ConversationEvent buildPartial() {
-      com.google.cloud.dialogflow.v2.ConversationEvent result =
-          new com.google.cloud.dialogflow.v2.ConversationEvent(this);
+      com.google.cloud.dialogflow.v2.ConversationEvent result = new com.google.cloud.dialogflow.v2.ConversationEvent(this);
       result.conversation_ = conversation_;
       result.type_ = type_;
       if (errorStatusBuilder_ == null) {
@@ -946,39 +852,38 @@ public com.google.cloud.dialogflow.v2.ConversationEvent buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.ConversationEvent) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.ConversationEvent) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.ConversationEvent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -986,8 +891,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dialogflow.v2.ConversationEvent other) {
-      if (other == com.google.cloud.dialogflow.v2.ConversationEvent.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dialogflow.v2.ConversationEvent.getDefaultInstance()) return this;
       if (!other.getConversation().isEmpty()) {
         conversation_ = other.conversation_;
         onChanged();
@@ -999,15 +903,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ConversationEvent other)
         mergeErrorStatus(other.getErrorStatus());
       }
       switch (other.getPayloadCase()) {
-        case NEW_MESSAGE_PAYLOAD:
-          {
-            mergeNewMessagePayload(other.getNewMessagePayload());
-            break;
-          }
-        case PAYLOAD_NOT_SET:
-          {
-            break;
-          }
+        case NEW_MESSAGE_PAYLOAD: {
+          mergeNewMessagePayload(other.getNewMessagePayload());
+          break;
+        }
+        case PAYLOAD_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1037,12 +939,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int payloadCase_ = 0;
     private java.lang.Object payload_;
-
-    public PayloadCase getPayloadCase() {
-      return PayloadCase.forNumber(payloadCase_);
+    public PayloadCase
+        getPayloadCase() {
+      return PayloadCase.forNumber(
+          payloadCase_);
     }
 
     public Builder clearPayload() {
@@ -1052,10 +954,9 @@ public Builder clearPayload() {
       return this;
     }
 
+
     private java.lang.Object conversation_ = "";
     /**
-     *
-     *
      * 
      * The unique identifier of the conversation this notification
      * refers to.
@@ -1063,13 +964,13 @@ public Builder clearPayload() {
      * 
* * string conversation = 1; - * * @return The conversation. */ public java.lang.String getConversation() { java.lang.Object ref = conversation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversation_ = s; return s; @@ -1078,8 +979,6 @@ public java.lang.String getConversation() { } } /** - * - * *
      * The unique identifier of the conversation this notification
      * refers to.
@@ -1087,14 +986,15 @@ public java.lang.String getConversation() {
      * 
* * string conversation = 1; - * * @return The bytes for conversation. */ - public com.google.protobuf.ByteString getConversationBytes() { + public com.google.protobuf.ByteString + getConversationBytes() { java.lang.Object ref = conversation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversation_ = b; return b; } else { @@ -1102,8 +1002,6 @@ public com.google.protobuf.ByteString getConversationBytes() { } } /** - * - * *
      * The unique identifier of the conversation this notification
      * refers to.
@@ -1111,22 +1009,20 @@ public com.google.protobuf.ByteString getConversationBytes() {
      * 
* * string conversation = 1; - * * @param value The conversation to set. * @return This builder for chaining. */ - public Builder setConversation(java.lang.String value) { + public Builder setConversation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + conversation_ = value; onChanged(); return this; } /** - * - * *
      * The unique identifier of the conversation this notification
      * refers to.
@@ -1134,18 +1030,15 @@ public Builder setConversation(java.lang.String value) {
      * 
* * string conversation = 1; - * * @return This builder for chaining. */ public Builder clearConversation() { - + conversation_ = getDefaultInstance().getConversation(); onChanged(); return this; } /** - * - * *
      * The unique identifier of the conversation this notification
      * refers to.
@@ -1153,16 +1046,16 @@ public Builder clearConversation() {
      * 
* * string conversation = 1; - * * @param value The bytes for conversation to set. * @return This builder for chaining. */ - public Builder setConversationBytes(com.google.protobuf.ByteString value) { + public Builder setConversationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversation_ = value; onChanged(); return this; @@ -1170,67 +1063,51 @@ public Builder setConversationBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * The type of the event that this notification refers to.
      * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of the event that this notification refers to.
      * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The type of the event that this notification refers to.
      * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @return The type. */ @java.lang.Override public com.google.cloud.dialogflow.v2.ConversationEvent.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.ConversationEvent.Type result = - com.google.cloud.dialogflow.v2.ConversationEvent.Type.valueOf(type_); - return result == null - ? com.google.cloud.dialogflow.v2.ConversationEvent.Type.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.ConversationEvent.Type result = com.google.cloud.dialogflow.v2.ConversationEvent.Type.valueOf(type_); + return result == null ? com.google.cloud.dialogflow.v2.ConversationEvent.Type.UNRECOGNIZED : result; } /** - * - * *
      * The type of the event that this notification refers to.
      * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1238,24 +1115,21 @@ public Builder setType(com.google.cloud.dialogflow.v2.ConversationEvent.Type val if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of the event that this notification refers to.
      * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1263,33 +1137,26 @@ public Builder clearType() { private com.google.rpc.Status errorStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorStatusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorStatusBuilder_; /** - * - * *
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
      * 
* * .google.rpc.Status error_status = 3; - * * @return Whether the errorStatus field is set. */ public boolean hasErrorStatus() { return errorStatusBuilder_ != null || errorStatus_ != null; } /** - * - * *
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
      * 
* * .google.rpc.Status error_status = 3; - * * @return The errorStatus. */ public com.google.rpc.Status getErrorStatus() { @@ -1300,8 +1167,6 @@ public com.google.rpc.Status getErrorStatus() { } } /** - * - * *
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -1323,8 +1188,6 @@ public Builder setErrorStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -1332,7 +1195,8 @@ public Builder setErrorStatus(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error_status = 3;
      */
-    public Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setErrorStatus(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorStatusBuilder_ == null) {
         errorStatus_ = builderForValue.build();
         onChanged();
@@ -1343,8 +1207,6 @@ public Builder setErrorStatus(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -1356,7 +1218,7 @@ public Builder mergeErrorStatus(com.google.rpc.Status value) {
       if (errorStatusBuilder_ == null) {
         if (errorStatus_ != null) {
           errorStatus_ =
-              com.google.rpc.Status.newBuilder(errorStatus_).mergeFrom(value).buildPartial();
+            com.google.rpc.Status.newBuilder(errorStatus_).mergeFrom(value).buildPartial();
         } else {
           errorStatus_ = value;
         }
@@ -1368,8 +1230,6 @@ public Builder mergeErrorStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -1389,8 +1249,6 @@ public Builder clearErrorStatus() {
       return this;
     }
     /**
-     *
-     *
      * 
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -1399,13 +1257,11 @@ public Builder clearErrorStatus() {
      * .google.rpc.Status error_status = 3;
      */
     public com.google.rpc.Status.Builder getErrorStatusBuilder() {
-
+      
       onChanged();
       return getErrorStatusFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -1417,12 +1273,11 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() {
       if (errorStatusBuilder_ != null) {
         return errorStatusBuilder_.getMessageOrBuilder();
       } else {
-        return errorStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : errorStatus_;
+        return errorStatus_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : errorStatus_;
       }
     }
     /**
-     *
-     *
      * 
      * More detailed information about an error. Only set for type
      * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -1431,34 +1286,27 @@ public com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder() {
      * .google.rpc.Status error_status = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorStatusFieldBuilder() {
       if (errorStatusBuilder_ == null) {
-        errorStatusBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
-                getErrorStatus(), getParentForChildren(), isClean());
+        errorStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getErrorStatus(),
+                getParentForChildren(),
+                isClean());
         errorStatus_ = null;
       }
       return errorStatusBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.Message,
-            com.google.cloud.dialogflow.v2.Message.Builder,
-            com.google.cloud.dialogflow.v2.MessageOrBuilder>
-        newMessagePayloadBuilder_;
+        com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder> newMessagePayloadBuilder_;
     /**
-     *
-     *
      * 
      * Payload of NEW_MESSAGE event.
      * 
* * .google.cloud.dialogflow.v2.Message new_message_payload = 4; - * * @return Whether the newMessagePayload field is set. */ @java.lang.Override @@ -1466,14 +1314,11 @@ public boolean hasNewMessagePayload() { return payloadCase_ == 4; } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
* * .google.cloud.dialogflow.v2.Message new_message_payload = 4; - * * @return The newMessagePayload. */ @java.lang.Override @@ -1491,8 +1336,6 @@ public com.google.cloud.dialogflow.v2.Message getNewMessagePayload() { } } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
@@ -1513,8 +1356,6 @@ public Builder setNewMessagePayload(com.google.cloud.dialogflow.v2.Message value return this; } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
@@ -1533,8 +1374,6 @@ public Builder setNewMessagePayload( return this; } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
@@ -1543,13 +1382,10 @@ public Builder setNewMessagePayload( */ public Builder mergeNewMessagePayload(com.google.cloud.dialogflow.v2.Message value) { if (newMessagePayloadBuilder_ == null) { - if (payloadCase_ == 4 - && payload_ != com.google.cloud.dialogflow.v2.Message.getDefaultInstance()) { - payload_ = - com.google.cloud.dialogflow.v2.Message.newBuilder( - (com.google.cloud.dialogflow.v2.Message) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 4 && + payload_ != com.google.cloud.dialogflow.v2.Message.getDefaultInstance()) { + payload_ = com.google.cloud.dialogflow.v2.Message.newBuilder((com.google.cloud.dialogflow.v2.Message) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1564,8 +1400,6 @@ public Builder mergeNewMessagePayload(com.google.cloud.dialogflow.v2.Message val return this; } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
@@ -1589,8 +1423,6 @@ public Builder clearNewMessagePayload() { return this; } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
@@ -1601,8 +1433,6 @@ public com.google.cloud.dialogflow.v2.Message.Builder getNewMessagePayloadBuilde return getNewMessagePayloadFieldBuilder().getBuilder(); } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
@@ -1621,8 +1451,6 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getNewMessagePayloadOrBui } } /** - * - * *
      * Payload of NEW_MESSAGE event.
      * 
@@ -1630,32 +1458,26 @@ public com.google.cloud.dialogflow.v2.MessageOrBuilder getNewMessagePayloadOrBui * .google.cloud.dialogflow.v2.Message new_message_payload = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Message, - com.google.cloud.dialogflow.v2.Message.Builder, - com.google.cloud.dialogflow.v2.MessageOrBuilder> + com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder> getNewMessagePayloadFieldBuilder() { if (newMessagePayloadBuilder_ == null) { if (!(payloadCase_ == 4)) { payload_ = com.google.cloud.dialogflow.v2.Message.getDefaultInstance(); } - newMessagePayloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Message, - com.google.cloud.dialogflow.v2.Message.Builder, - com.google.cloud.dialogflow.v2.MessageOrBuilder>( + newMessagePayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Message, com.google.cloud.dialogflow.v2.Message.Builder, com.google.cloud.dialogflow.v2.MessageOrBuilder>( (com.google.cloud.dialogflow.v2.Message) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 4; - onChanged(); - ; + onChanged();; return newMessagePayloadBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1665,12 +1487,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ConversationEvent) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ConversationEvent) private static final com.google.cloud.dialogflow.v2.ConversationEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ConversationEvent(); } @@ -1679,16 +1501,16 @@ public static com.google.cloud.dialogflow.v2.ConversationEvent getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConversationEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversationEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1703,4 +1525,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.ConversationEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventOrBuilder.java similarity index 78% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventOrBuilder.java index 2020edc5b..d8a0ab8af 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_event.proto package com.google.cloud.dialogflow.v2; -public interface ConversationEventOrBuilder - extends +public interface ConversationEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ConversationEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique identifier of the conversation this notification
    * refers to.
@@ -33,13 +15,10 @@ public interface ConversationEventOrBuilder
    * 
* * string conversation = 1; - * * @return The conversation. */ java.lang.String getConversation(); /** - * - * *
    * The unique identifier of the conversation this notification
    * refers to.
@@ -47,65 +26,51 @@ public interface ConversationEventOrBuilder
    * 
* * string conversation = 1; - * * @return The bytes for conversation. */ - com.google.protobuf.ByteString getConversationBytes(); + com.google.protobuf.ByteString + getConversationBytes(); /** - * - * *
    * The type of the event that this notification refers to.
    * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The type of the event that this notification refers to.
    * 
* * .google.cloud.dialogflow.v2.ConversationEvent.Type type = 2; - * * @return The type. */ com.google.cloud.dialogflow.v2.ConversationEvent.Type getType(); /** - * - * *
    * More detailed information about an error. Only set for type
    * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
    * 
* * .google.rpc.Status error_status = 3; - * * @return Whether the errorStatus field is set. */ boolean hasErrorStatus(); /** - * - * *
    * More detailed information about an error. Only set for type
    * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
    * 
* * .google.rpc.Status error_status = 3; - * * @return The errorStatus. */ com.google.rpc.Status getErrorStatus(); /** - * - * *
    * More detailed information about an error. Only set for type
    * UNRECOVERABLE_ERROR_IN_PHONE_CALL.
@@ -116,32 +81,24 @@ public interface ConversationEventOrBuilder
   com.google.rpc.StatusOrBuilder getErrorStatusOrBuilder();
 
   /**
-   *
-   *
    * 
    * Payload of NEW_MESSAGE event.
    * 
* * .google.cloud.dialogflow.v2.Message new_message_payload = 4; - * * @return Whether the newMessagePayload field is set. */ boolean hasNewMessagePayload(); /** - * - * *
    * Payload of NEW_MESSAGE event.
    * 
* * .google.cloud.dialogflow.v2.Message new_message_payload = 4; - * * @return The newMessagePayload. */ com.google.cloud.dialogflow.v2.Message getNewMessagePayload(); /** - * - * *
    * Payload of NEW_MESSAGE event.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventProto.java new file mode 100644 index 000000000..fddb7cabc --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationEventProto.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation_event.proto + +package com.google.cloud.dialogflow.v2; + +public final class ConversationEventProto { + private ConversationEventProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ConversationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/dialogflow/v2/conversatio" + + "n_event.proto\022\032google.cloud.dialogflow.v" + + "2\032,google/cloud/dialogflow/v2/participan" + + "t.proto\032\027google/rpc/status.proto\032\034google" + + "/api/annotations.proto\"\201\003\n\021ConversationE" + + "vent\022\024\n\014conversation\030\001 \001(\t\022@\n\004type\030\002 \001(\016" + + "22.google.cloud.dialogflow.v2.Conversati" + + "onEvent.Type\022(\n\014error_status\030\003 \001(\0132\022.goo" + + "gle.rpc.Status\022B\n\023new_message_payload\030\004 " + + "\001(\0132#.google.cloud.dialogflow.v2.Message" + + "H\000\"\232\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\030\n\024CON" + + "VERSATION_STARTED\020\001\022\031\n\025CONVERSATION_FINI" + + "SHED\020\002\022\035\n\031HUMAN_INTERVENTION_NEEDED\020\003\022\017\n" + + "\013NEW_MESSAGE\020\005\022\027\n\023UNRECOVERABLE_ERROR\020\004B" + + "\t\n\007payloadB\245\001\n\036com.google.cloud.dialogfl" + + "ow.v2B\026ConversationEventProtoP\001ZDgoogle." + + "golang.org/genproto/googleapis/cloud/dia" + + "logflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.C" + + "loud.Dialogflow.V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_ConversationEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ConversationEvent_descriptor, + new java.lang.String[] { "Conversation", "Type", "ErrorStatus", "NewMessagePayload", "Payload", }); + com.google.cloud.dialogflow.v2.ParticipantProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java similarity index 74% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java index fe99ec27c..55368d12a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation.proto package com.google.cloud.dialogflow.v2; -public interface ConversationOrBuilder - extends +public interface ConversationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Conversation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The unique identifier of this conversation.
    * Format: `projects/<Project ID>/locations/<Location
@@ -33,13 +15,10 @@ public interface ConversationOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The unique identifier of this conversation.
    * Format: `projects/<Project ID>/locations/<Location
@@ -47,43 +26,31 @@ public interface ConversationOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The current state of the Conversation.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for lifecycleState. */ int getLifecycleStateValue(); /** - * - * *
    * Output only. The current state of the Conversation.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lifecycleState. */ com.google.cloud.dialogflow.v2.Conversation.LifecycleState getLifecycleState(); /** - * - * *
    * Required. The Conversation Profile to be used to configure this
    * Conversation. This field cannot be updated.
@@ -91,16 +58,11 @@ public interface ConversationOrBuilder
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The conversationProfile. */ java.lang.String getConversationProfile(); /** - * - * *
    * Required. The Conversation Profile to be used to configure this
    * Conversation. This field cannot be updated.
@@ -108,137 +70,97 @@ public interface ConversationOrBuilder
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for conversationProfile. */ - com.google.protobuf.ByteString getConversationProfileBytes(); + com.google.protobuf.ByteString + getConversationProfileBytes(); /** - * - * *
    * Output only. It will not be empty if the conversation is to be connected over
    * telephony.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the phoneNumber field is set. */ boolean hasPhoneNumber(); /** - * - * *
    * Output only. It will not be empty if the conversation is to be connected over
    * telephony.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The phoneNumber. */ com.google.cloud.dialogflow.v2.ConversationPhoneNumber getPhoneNumber(); /** - * - * *
    * Output only. It will not be empty if the conversation is to be connected over
    * telephony.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder getPhoneNumberOrBuilder(); /** - * - * *
    * Output only. The time the conversation was started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The time the conversation was started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The time the conversation was started.
    * 
* - * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The time the conversation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the conversation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the conversation was finished.
    * 
* - * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * The stage of a conversation. It indicates whether the virtual agent or a
    * human agent is handling the conversation.
@@ -254,13 +176,10 @@ public interface ConversationOrBuilder
    * 
* * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * * @return The enum numeric value on the wire for conversationStage. */ int getConversationStageValue(); /** - * - * *
    * The stage of a conversation. It indicates whether the virtual agent or a
    * human agent is handling the conversation.
@@ -276,7 +195,6 @@ public interface ConversationOrBuilder
    * 
* * .google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7; - * * @return The conversationStage. */ com.google.cloud.dialogflow.v2.Conversation.ConversationStage getConversationStage(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumber.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumber.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumber.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumber.java index 479523131..ec5ef8670 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumber.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumber.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents a phone number for telephony integration. It allows for connecting
  * a particular conversation over telephony.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.ConversationPhoneNumber}
  */
-public final class ConversationPhoneNumber extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConversationPhoneNumber extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ConversationPhoneNumber)
     ConversationPhoneNumberOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConversationPhoneNumber.newBuilder() to construct.
   private ConversationPhoneNumber(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConversationPhoneNumber() {
     phoneNumber_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConversationPhoneNumber();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ConversationPhoneNumber(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,58 +54,52 @@ private ConversationPhoneNumber(
           case 0:
             done = true;
             break;
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              phoneNumber_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phoneNumber_ = 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.ConversationProto
-        .internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.ConversationProto
-        .internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.ConversationPhoneNumber.class,
-            com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder.class);
+            com.google.cloud.dialogflow.v2.ConversationPhoneNumber.class, com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder.class);
   }
 
   public static final int PHONE_NUMBER_FIELD_NUMBER = 3;
   private volatile java.lang.Object phoneNumber_;
   /**
-   *
-   *
    * 
    * Output only. The phone number to connect to this conversation.
    * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The phoneNumber. */ @java.lang.Override @@ -131,29 +108,29 @@ public java.lang.String getPhoneNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } } /** - * - * *
    * Output only. The phone number to connect to this conversation.
    * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -162,7 +139,6 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,7 +150,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getPhoneNumberBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phoneNumber_); } @@ -198,15 +175,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.ConversationPhoneNumber)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.ConversationPhoneNumber other = - (com.google.cloud.dialogflow.v2.ConversationPhoneNumber) obj; + com.google.cloud.dialogflow.v2.ConversationPhoneNumber other = (com.google.cloud.dialogflow.v2.ConversationPhoneNumber) obj; - if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,104 +203,96 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.ConversationPhoneNumber prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.ConversationPhoneNumber prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a phone number for telephony integration. It allows for connecting
    * a particular conversation over telephony.
@@ -331,23 +300,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.ConversationPhoneNumber}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ConversationPhoneNumber)
       com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.ConversationProto
-          .internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.ConversationProto
-          .internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.ConversationPhoneNumber.class,
-              com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder.class);
+              com.google.cloud.dialogflow.v2.ConversationPhoneNumber.class, com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.ConversationPhoneNumber.newBuilder()
@@ -355,15 +322,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -373,9 +341,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.ConversationProto
-          .internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor;
     }
 
     @java.lang.Override
@@ -394,8 +362,7 @@ public com.google.cloud.dialogflow.v2.ConversationPhoneNumber build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.ConversationPhoneNumber buildPartial() {
-      com.google.cloud.dialogflow.v2.ConversationPhoneNumber result =
-          new com.google.cloud.dialogflow.v2.ConversationPhoneNumber(this);
+      com.google.cloud.dialogflow.v2.ConversationPhoneNumber result = new com.google.cloud.dialogflow.v2.ConversationPhoneNumber(this);
       result.phoneNumber_ = phoneNumber_;
       onBuilt();
       return result;
@@ -405,39 +372,38 @@ public com.google.cloud.dialogflow.v2.ConversationPhoneNumber buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.ConversationPhoneNumber) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.ConversationPhoneNumber) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.ConversationPhoneNumber)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -445,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dialogflow.v2.ConversationPhoneNumber other) {
-      if (other == com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance()) return this;
       if (!other.getPhoneNumber().isEmpty()) {
         phoneNumber_ = other.phoneNumber_;
         onChanged();
@@ -470,8 +435,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.dialogflow.v2.ConversationPhoneNumber) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.dialogflow.v2.ConversationPhoneNumber) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -483,20 +447,18 @@ public Builder mergeFrom(
 
     private java.lang.Object phoneNumber_ = "";
     /**
-     *
-     *
      * 
      * Output only. The phone number to connect to this conversation.
      * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; @@ -505,21 +467,20 @@ public java.lang.String getPhoneNumber() { } } /** - * - * *
      * Output only. The phone number to connect to this conversation.
      * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString getPhoneNumberBytes() { + public com.google.protobuf.ByteString + getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phoneNumber_ = b; return b; } else { @@ -527,68 +488,61 @@ public com.google.protobuf.ByteString getPhoneNumberBytes() { } } /** - * - * *
      * Output only. The phone number to connect to this conversation.
      * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber(java.lang.String value) { + public Builder setPhoneNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phoneNumber_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The phone number to connect to this conversation.
      * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPhoneNumber() { - + phoneNumber_ = getDefaultInstance().getPhoneNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The phone number to connect to this conversation.
      * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phoneNumber_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -598,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ConversationPhoneNumber) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ConversationPhoneNumber) private static final com.google.cloud.dialogflow.v2.ConversationPhoneNumber DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ConversationPhoneNumber(); } @@ -612,16 +566,16 @@ public static com.google.cloud.dialogflow.v2.ConversationPhoneNumber getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationPhoneNumber parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConversationPhoneNumber(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationPhoneNumber parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversationPhoneNumber(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.ConversationPhoneNumber getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumberOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumberOrBuilder.java similarity index 52% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumberOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumberOrBuilder.java index 3abfbe9fc..b598dbd0c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumberOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationPhoneNumberOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation.proto package com.google.cloud.dialogflow.v2; -public interface ConversationPhoneNumberOrBuilder - extends +public interface ConversationPhoneNumberOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ConversationPhoneNumber) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The phone number to connect to this conversation.
    * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** - * - * *
    * Output only. The phone number to connect to this conversation.
    * 
* * string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString getPhoneNumberBytes(); + com.google.protobuf.ByteString + getPhoneNumberBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java index 6f672e2fd..8f259185b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Defines the services to connect to incoming Dialogflow conversations.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ConversationProfile} */ -public final class ConversationProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConversationProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ConversationProfile) ConversationProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConversationProfile.newBuilder() to construct. private ConversationProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConversationProfile() { name_ = ""; displayName_ = ""; @@ -45,15 +27,16 @@ private ConversationProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConversationProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConversationProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,214 +55,176 @@ private ConversationProfile( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: { + com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder subBuilder = null; + if (automatedAgentConfig_ != null) { + subBuilder = automatedAgentConfig_.toBuilder(); + } + automatedAgentConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.AutomatedAgentConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(automatedAgentConfig_); + automatedAgentConfig_ = subBuilder.buildPartial(); + } - name_ = s; - break; + break; + } + case 34: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder subBuilder = null; + if (humanAgentAssistantConfig_ != null) { + subBuilder = humanAgentAssistantConfig_.toBuilder(); + } + humanAgentAssistantConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(humanAgentAssistantConfig_); + humanAgentAssistantConfig_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + break; + } + case 42: { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder subBuilder = null; + if (humanAgentHandoffConfig_ != null) { + subBuilder = humanAgentHandoffConfig_.toBuilder(); } - case 26: - { - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder subBuilder = null; - if (automatedAgentConfig_ != null) { - subBuilder = automatedAgentConfig_.toBuilder(); - } - automatedAgentConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(automatedAgentConfig_); - automatedAgentConfig_ = subBuilder.buildPartial(); - } - - break; + humanAgentHandoffConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(humanAgentHandoffConfig_); + humanAgentHandoffConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder subBuilder = null; - if (humanAgentAssistantConfig_ != null) { - subBuilder = humanAgentAssistantConfig_.toBuilder(); - } - humanAgentAssistantConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(humanAgentAssistantConfig_); - humanAgentAssistantConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.cloud.dialogflow.v2.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); } - case 42: - { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder subBuilder = null; - if (humanAgentHandoffConfig_ != null) { - subBuilder = humanAgentHandoffConfig_.toBuilder(); - } - humanAgentHandoffConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(humanAgentHandoffConfig_); - humanAgentHandoffConfig_ = subBuilder.buildPartial(); - } - - break; + notificationConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.dialogflow.v2.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.NotificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + com.google.cloud.dialogflow.v2.LoggingConfig.Builder subBuilder = null; + if (loggingConfig_ != null) { + subBuilder = loggingConfig_.toBuilder(); } - case 58: - { - com.google.cloud.dialogflow.v2.LoggingConfig.Builder subBuilder = null; - if (loggingConfig_ != null) { - subBuilder = loggingConfig_.toBuilder(); - } - loggingConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.LoggingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(loggingConfig_); - loggingConfig_ = subBuilder.buildPartial(); - } - - break; + loggingConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.LoggingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(loggingConfig_); + loggingConfig_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.dialogflow.v2.NotificationConfig.Builder subBuilder = null; - if (newMessageEventNotificationConfig_ != null) { - subBuilder = newMessageEventNotificationConfig_.toBuilder(); - } - newMessageEventNotificationConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.NotificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(newMessageEventNotificationConfig_); - newMessageEventNotificationConfig_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 66: { + com.google.cloud.dialogflow.v2.NotificationConfig.Builder subBuilder = null; + if (newMessageEventNotificationConfig_ != null) { + subBuilder = newMessageEventNotificationConfig_.toBuilder(); } - case 74: - { - com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder subBuilder = null; - if (sttConfig_ != null) { - subBuilder = sttConfig_.toBuilder(); - } - sttConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.SpeechToTextConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sttConfig_); - sttConfig_ = subBuilder.buildPartial(); - } - - break; + newMessageEventNotificationConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(newMessageEventNotificationConfig_); + newMessageEventNotificationConfig_ = subBuilder.buildPartial(); } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; + break; + } + case 74: { + com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder subBuilder = null; + if (sttConfig_ != null) { + subBuilder = sttConfig_.toBuilder(); } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + sttConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.SpeechToTextConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sttConfig_); + sttConfig_ = subBuilder.buildPartial(); } - case 98: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } + + break; + } + case 98: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_ConversationProfile_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_ConversationProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ConversationProfile.class, - com.google.cloud.dialogflow.v2.ConversationProfile.Builder.class); + com.google.cloud.dialogflow.v2.ConversationProfile.class, com.google.cloud.dialogflow.v2.ConversationProfile.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The unique identifier of this conversation profile.
    * Format: `projects/<Project ID>/locations/<Location
@@ -287,7 +232,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -296,15 +240,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The unique identifier of this conversation profile.
    * Format: `projects/<Project ID>/locations/<Location
@@ -312,15 +255,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -331,14 +275,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. Human readable name for this profile. Max length 1024 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -347,29 +288,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Human readable name for this profile. Max length 1024 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -380,15 +321,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Create time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -396,15 +333,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Create time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -412,14 +345,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Create time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -429,15 +359,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Update time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -445,15 +371,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Update time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -461,14 +383,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Update time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -478,14 +397,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int AUTOMATED_AGENT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.v2.AutomatedAgentConfig automatedAgentConfig_; /** - * - * *
    * Configuration for an automated agent to use with this profile.
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; - * * @return Whether the automatedAgentConfig field is set. */ @java.lang.Override @@ -493,25 +409,18 @@ public boolean hasAutomatedAgentConfig() { return automatedAgentConfig_ != null; } /** - * - * *
    * Configuration for an automated agent to use with this profile.
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; - * * @return The automatedAgentConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AutomatedAgentConfig getAutomatedAgentConfig() { - return automatedAgentConfig_ == null - ? com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance() - : automatedAgentConfig_; + return automatedAgentConfig_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance() : automatedAgentConfig_; } /** - * - * *
    * Configuration for an automated agent to use with this profile.
    * 
@@ -519,23 +428,18 @@ public com.google.cloud.dialogflow.v2.AutomatedAgentConfig getAutomatedAgentConf * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder - getAutomatedAgentConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder getAutomatedAgentConfigOrBuilder() { return getAutomatedAgentConfig(); } public static final int HUMAN_AGENT_ASSISTANT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig humanAgentAssistantConfig_; /** - * - * *
    * Configuration for agent assistance to use with this profile.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; * @return Whether the humanAgentAssistantConfig field is set. */ @java.lang.Override @@ -543,53 +447,39 @@ public boolean hasHumanAgentAssistantConfig() { return humanAgentAssistantConfig_ != null; } /** - * - * *
    * Configuration for agent assistance to use with this profile.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; * @return The humanAgentAssistantConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig getHumanAgentAssistantConfig() { - return humanAgentAssistantConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance() - : humanAgentAssistantConfig_; + return humanAgentAssistantConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance() : humanAgentAssistantConfig_; } /** - * - * *
    * Configuration for agent assistance to use with this profile.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder - getHumanAgentAssistantConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder getHumanAgentAssistantConfigOrBuilder() { return getHumanAgentAssistantConfig(); } public static final int HUMAN_AGENT_HANDOFF_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig humanAgentHandoffConfig_; /** - * - * *
    * Configuration for connecting to a live agent.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; * @return Whether the humanAgentHandoffConfig field is set. */ @java.lang.Override @@ -597,54 +487,41 @@ public boolean hasHumanAgentHandoffConfig() { return humanAgentHandoffConfig_ != null; } /** - * - * *
    * Configuration for connecting to a live agent.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; * @return The humanAgentHandoffConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig getHumanAgentHandoffConfig() { - return humanAgentHandoffConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance() - : humanAgentHandoffConfig_; + return humanAgentHandoffConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance() : humanAgentHandoffConfig_; } /** - * - * *
    * Configuration for connecting to a live agent.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder - getHumanAgentHandoffConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder getHumanAgentHandoffConfigOrBuilder() { return getHumanAgentHandoffConfig(); } public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.v2.NotificationConfig notificationConfig_; /** - * - * *
    * Configuration for publishing conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; - * * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -652,25 +529,18 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** - * - * *
    * Configuration for publishing conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; - * * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
    * Configuration for publishing conversation lifecycle events.
    * 
@@ -678,22 +548,18 @@ public com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig() * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); } public static final int LOGGING_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.dialogflow.v2.LoggingConfig loggingConfig_; /** - * - * *
    * Configuration for logging conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; - * * @return Whether the loggingConfig field is set. */ @java.lang.Override @@ -701,25 +567,18 @@ public boolean hasLoggingConfig() { return loggingConfig_ != null; } /** - * - * *
    * Configuration for logging conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; - * * @return The loggingConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.dialogflow.v2.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dialogflow.v2.LoggingConfig.getDefaultInstance() : loggingConfig_; } /** - * - * *
    * Configuration for logging conversation lifecycle events.
    * 
@@ -734,16 +593,12 @@ public com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder getLoggingConfigOrB public static final int NEW_MESSAGE_EVENT_NOTIFICATION_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dialogflow.v2.NotificationConfig newMessageEventNotificationConfig_; /** - * - * *
    * Configuration for publishing new message events. Event will be sent in
    * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
    * 
* - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; * @return Whether the newMessageEventNotificationConfig field is set. */ @java.lang.Override @@ -751,52 +606,39 @@ public boolean hasNewMessageEventNotificationConfig() { return newMessageEventNotificationConfig_ != null; } /** - * - * *
    * Configuration for publishing new message events. Event will be sent in
    * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
    * 
* - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; * @return The newMessageEventNotificationConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.NotificationConfig getNewMessageEventNotificationConfig() { - return newMessageEventNotificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : newMessageEventNotificationConfig_; + return newMessageEventNotificationConfig_ == null ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : newMessageEventNotificationConfig_; } /** - * - * *
    * Configuration for publishing new message events. Event will be sent in
    * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
    * 
* - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder - getNewMessageEventNotificationConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNewMessageEventNotificationConfigOrBuilder() { return getNewMessageEventNotificationConfig(); } public static final int STT_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.dialogflow.v2.SpeechToTextConfig sttConfig_; /** - * - * *
    * Settings for speech transcription.
    * 
* * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; - * * @return Whether the sttConfig field is set. */ @java.lang.Override @@ -804,25 +646,18 @@ public boolean hasSttConfig() { return sttConfig_ != null; } /** - * - * *
    * Settings for speech transcription.
    * 
* * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; - * * @return The sttConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.SpeechToTextConfig getSttConfig() { - return sttConfig_ == null - ? com.google.cloud.dialogflow.v2.SpeechToTextConfig.getDefaultInstance() - : sttConfig_; + return sttConfig_ == null ? com.google.cloud.dialogflow.v2.SpeechToTextConfig.getDefaultInstance() : sttConfig_; } /** - * - * *
    * Settings for speech transcription.
    * 
@@ -837,8 +672,6 @@ public com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder getSttConfigOr public static final int LANGUAGE_CODE_FIELD_NUMBER = 10; private volatile java.lang.Object languageCode_; /** - * - * *
    * Language which represents the conversationProfile.
    * If unspecified, the default language code en-us applies. Users need to
@@ -846,7 +679,6 @@ public com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder getSttConfigOr
    * 
* * string language_code = 10; - * * @return The languageCode. */ @java.lang.Override @@ -855,15 +687,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Language which represents the conversationProfile.
    * If unspecified, the default language code en-us applies. Users need to
@@ -871,15 +702,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 10; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -888,7 +720,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -900,7 +731,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -953,40 +785,43 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (automatedAgentConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAutomatedAgentConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAutomatedAgentConfig()); } if (humanAgentAssistantConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getHumanAgentAssistantConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHumanAgentAssistantConfig()); } if (humanAgentHandoffConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHumanAgentHandoffConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHumanAgentHandoffConfig()); } if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getNotificationConfig()); } if (loggingConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLoggingConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLoggingConfig()); } if (newMessageEventNotificationConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getNewMessageEventNotificationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getNewMessageEventNotificationConfig()); } if (sttConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSttConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSttConfig()); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, languageCode_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -996,56 +831,64 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.ConversationProfile)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.ConversationProfile other = - (com.google.cloud.dialogflow.v2.ConversationProfile) obj; + com.google.cloud.dialogflow.v2.ConversationProfile other = (com.google.cloud.dialogflow.v2.ConversationProfile) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasAutomatedAgentConfig() != other.hasAutomatedAgentConfig()) return false; if (hasAutomatedAgentConfig()) { - if (!getAutomatedAgentConfig().equals(other.getAutomatedAgentConfig())) return false; + if (!getAutomatedAgentConfig() + .equals(other.getAutomatedAgentConfig())) return false; } if (hasHumanAgentAssistantConfig() != other.hasHumanAgentAssistantConfig()) return false; if (hasHumanAgentAssistantConfig()) { - if (!getHumanAgentAssistantConfig().equals(other.getHumanAgentAssistantConfig())) - return false; + if (!getHumanAgentAssistantConfig() + .equals(other.getHumanAgentAssistantConfig())) return false; } if (hasHumanAgentHandoffConfig() != other.hasHumanAgentHandoffConfig()) return false; if (hasHumanAgentHandoffConfig()) { - if (!getHumanAgentHandoffConfig().equals(other.getHumanAgentHandoffConfig())) return false; + if (!getHumanAgentHandoffConfig() + .equals(other.getHumanAgentHandoffConfig())) return false; } if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig() + .equals(other.getNotificationConfig())) return false; } if (hasLoggingConfig() != other.hasLoggingConfig()) return false; if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; } - if (hasNewMessageEventNotificationConfig() != other.hasNewMessageEventNotificationConfig()) - return false; + if (hasNewMessageEventNotificationConfig() != other.hasNewMessageEventNotificationConfig()) return false; if (hasNewMessageEventNotificationConfig()) { if (!getNewMessageEventNotificationConfig() .equals(other.getNewMessageEventNotificationConfig())) return false; } if (hasSttConfig() != other.hasSttConfig()) return false; if (hasSttConfig()) { - if (!getSttConfig().equals(other.getSttConfig())) return false; + if (!getSttConfig() + .equals(other.getSttConfig())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1105,126 +948,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ConversationProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ConversationProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ConversationProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.ConversationProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines the services to connect to incoming Dialogflow conversations.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ConversationProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ConversationProfile) com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_ConversationProfile_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_ConversationProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ConversationProfile.class, - com.google.cloud.dialogflow.v2.ConversationProfile.Builder.class); + com.google.cloud.dialogflow.v2.ConversationProfile.class, com.google.cloud.dialogflow.v2.ConversationProfile.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.ConversationProfile.newBuilder() @@ -1232,15 +1066,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1308,9 +1143,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor; } @java.lang.Override @@ -1329,8 +1164,7 @@ public com.google.cloud.dialogflow.v2.ConversationProfile build() { @java.lang.Override public com.google.cloud.dialogflow.v2.ConversationProfile buildPartial() { - com.google.cloud.dialogflow.v2.ConversationProfile result = - new com.google.cloud.dialogflow.v2.ConversationProfile(this); + com.google.cloud.dialogflow.v2.ConversationProfile result = new com.google.cloud.dialogflow.v2.ConversationProfile(this); result.name_ = name_; result.displayName_ = displayName_; if (createTimeBuilder_ == null) { @@ -1371,8 +1205,7 @@ public com.google.cloud.dialogflow.v2.ConversationProfile buildPartial() { if (newMessageEventNotificationConfigBuilder_ == null) { result.newMessageEventNotificationConfig_ = newMessageEventNotificationConfig_; } else { - result.newMessageEventNotificationConfig_ = - newMessageEventNotificationConfigBuilder_.build(); + result.newMessageEventNotificationConfig_ = newMessageEventNotificationConfigBuilder_.build(); } if (sttConfigBuilder_ == null) { result.sttConfig_ = sttConfig_; @@ -1388,39 +1221,38 @@ public com.google.cloud.dialogflow.v2.ConversationProfile buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.ConversationProfile) { - return mergeFrom((com.google.cloud.dialogflow.v2.ConversationProfile) other); + return mergeFrom((com.google.cloud.dialogflow.v2.ConversationProfile)other); } else { super.mergeFrom(other); return this; @@ -1428,8 +1260,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.ConversationProfile other) { - if (other == com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1488,8 +1319,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.ConversationProfile) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.ConversationProfile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1501,8 +1331,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The unique identifier of this conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1510,13 +1338,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1525,8 +1353,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The unique identifier of this conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1534,14 +1360,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1549,8 +1376,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The unique identifier of this conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1558,22 +1383,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The unique identifier of this conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1581,18 +1404,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The unique identifier of this conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
@@ -1600,16 +1420,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1617,20 +1437,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Human readable name for this profile. Max length 1024 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1639,21 +1457,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Human readable name for this profile. Max length 1024 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1661,61 +1478,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Human readable name for this profile. Max length 1024 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. Human readable name for this profile. Max length 1024 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. Human readable name for this profile. Max length 1024 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1723,58 +1533,39 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1790,17 +1581,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1811,21 +1599,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1837,15 +1621,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1859,64 +1639,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Create time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1924,58 +1688,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1991,17 +1736,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2012,21 +1754,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2038,15 +1776,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2060,64 +1794,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Update time of the conversation profile.
      * 
* - * - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2125,55 +1843,41 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.dialogflow.v2.AutomatedAgentConfig automatedAgentConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AutomatedAgentConfig, - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder, - com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder> - automatedAgentConfigBuilder_; + com.google.cloud.dialogflow.v2.AutomatedAgentConfig, com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder> automatedAgentConfigBuilder_; /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; - * * @return Whether the automatedAgentConfig field is set. */ public boolean hasAutomatedAgentConfig() { return automatedAgentConfigBuilder_ != null || automatedAgentConfig_ != null; } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; - * * @return The automatedAgentConfig. */ public com.google.cloud.dialogflow.v2.AutomatedAgentConfig getAutomatedAgentConfig() { if (automatedAgentConfigBuilder_ == null) { - return automatedAgentConfig_ == null - ? com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance() - : automatedAgentConfig_; + return automatedAgentConfig_ == null ? com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance() : automatedAgentConfig_; } else { return automatedAgentConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; */ - public Builder setAutomatedAgentConfig( - com.google.cloud.dialogflow.v2.AutomatedAgentConfig value) { + public Builder setAutomatedAgentConfig(com.google.cloud.dialogflow.v2.AutomatedAgentConfig value) { if (automatedAgentConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2187,8 +1891,6 @@ public Builder setAutomatedAgentConfig( return this; } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
@@ -2207,22 +1909,17 @@ public Builder setAutomatedAgentConfig( return this; } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; */ - public Builder mergeAutomatedAgentConfig( - com.google.cloud.dialogflow.v2.AutomatedAgentConfig value) { + public Builder mergeAutomatedAgentConfig(com.google.cloud.dialogflow.v2.AutomatedAgentConfig value) { if (automatedAgentConfigBuilder_ == null) { if (automatedAgentConfig_ != null) { automatedAgentConfig_ = - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.newBuilder(automatedAgentConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.AutomatedAgentConfig.newBuilder(automatedAgentConfig_).mergeFrom(value).buildPartial(); } else { automatedAgentConfig_ = value; } @@ -2234,8 +1931,6 @@ public Builder mergeAutomatedAgentConfig( return this; } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
@@ -2254,42 +1949,33 @@ public Builder clearAutomatedAgentConfig() { return this; } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; */ - public com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder - getAutomatedAgentConfigBuilder() { - + public com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder getAutomatedAgentConfigBuilder() { + onChanged(); return getAutomatedAgentConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; */ - public com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder - getAutomatedAgentConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder getAutomatedAgentConfigOrBuilder() { if (automatedAgentConfigBuilder_ != null) { return automatedAgentConfigBuilder_.getMessageOrBuilder(); } else { - return automatedAgentConfig_ == null - ? com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance() - : automatedAgentConfig_; + return automatedAgentConfig_ == null ? + com.google.cloud.dialogflow.v2.AutomatedAgentConfig.getDefaultInstance() : automatedAgentConfig_; } } /** - * - * *
      * Configuration for an automated agent to use with this profile.
      * 
@@ -2297,17 +1983,14 @@ public Builder clearAutomatedAgentConfig() { * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AutomatedAgentConfig, - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder, - com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder> + com.google.cloud.dialogflow.v2.AutomatedAgentConfig, com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder> getAutomatedAgentConfigFieldBuilder() { if (automatedAgentConfigBuilder_ == null) { - automatedAgentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.AutomatedAgentConfig, - com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder, - com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder>( - getAutomatedAgentConfig(), getParentForChildren(), isClean()); + automatedAgentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.AutomatedAgentConfig, com.google.cloud.dialogflow.v2.AutomatedAgentConfig.Builder, com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder>( + getAutomatedAgentConfig(), + getParentForChildren(), + isClean()); automatedAgentConfig_ = null; } return automatedAgentConfigBuilder_; @@ -2315,58 +1998,41 @@ public Builder clearAutomatedAgentConfig() { private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig humanAgentAssistantConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder> - humanAgentAssistantConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder> humanAgentAssistantConfigBuilder_; /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; * @return Whether the humanAgentAssistantConfig field is set. */ public boolean hasHumanAgentAssistantConfig() { return humanAgentAssistantConfigBuilder_ != null || humanAgentAssistantConfig_ != null; } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; * @return The humanAgentAssistantConfig. */ public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig getHumanAgentAssistantConfig() { if (humanAgentAssistantConfigBuilder_ == null) { - return humanAgentAssistantConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance() - : humanAgentAssistantConfig_; + return humanAgentAssistantConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance() : humanAgentAssistantConfig_; } else { return humanAgentAssistantConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ - public Builder setHumanAgentAssistantConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig value) { + public Builder setHumanAgentAssistantConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig value) { if (humanAgentAssistantConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2380,14 +2046,11 @@ public Builder setHumanAgentAssistantConfig( return this; } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ public Builder setHumanAgentAssistantConfig( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder builderForValue) { @@ -2401,24 +2064,17 @@ public Builder setHumanAgentAssistantConfig( return this; } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ - public Builder mergeHumanAgentAssistantConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig value) { + public Builder mergeHumanAgentAssistantConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig value) { if (humanAgentAssistantConfigBuilder_ == null) { if (humanAgentAssistantConfig_ != null) { humanAgentAssistantConfig_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.newBuilder( - humanAgentAssistantConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.newBuilder(humanAgentAssistantConfig_).mergeFrom(value).buildPartial(); } else { humanAgentAssistantConfig_ = value; } @@ -2430,14 +2086,11 @@ public Builder mergeHumanAgentAssistantConfig( return this; } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ public Builder clearHumanAgentAssistantConfig() { if (humanAgentAssistantConfigBuilder_ == null) { @@ -2451,63 +2104,48 @@ public Builder clearHumanAgentAssistantConfig() { return this; } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder - getHumanAgentAssistantConfigBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder getHumanAgentAssistantConfigBuilder() { + onChanged(); return getHumanAgentAssistantConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder - getHumanAgentAssistantConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder getHumanAgentAssistantConfigOrBuilder() { if (humanAgentAssistantConfigBuilder_ != null) { return humanAgentAssistantConfigBuilder_.getMessageOrBuilder(); } else { - return humanAgentAssistantConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance() - : humanAgentAssistantConfig_; + return humanAgentAssistantConfig_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance() : humanAgentAssistantConfig_; } } /** - * - * *
      * Configuration for agent assistance to use with this profile.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder> getHumanAgentAssistantConfigFieldBuilder() { if (humanAgentAssistantConfigBuilder_ == null) { - humanAgentAssistantConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder>( - getHumanAgentAssistantConfig(), getParentForChildren(), isClean()); + humanAgentAssistantConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder>( + getHumanAgentAssistantConfig(), + getParentForChildren(), + isClean()); humanAgentAssistantConfig_ = null; } return humanAgentAssistantConfigBuilder_; @@ -2515,64 +2153,47 @@ public Builder clearHumanAgentAssistantConfig() { private com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig humanAgentHandoffConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder> - humanAgentHandoffConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder> humanAgentHandoffConfigBuilder_; /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; * @return Whether the humanAgentHandoffConfig field is set. */ public boolean hasHumanAgentHandoffConfig() { return humanAgentHandoffConfigBuilder_ != null || humanAgentHandoffConfig_ != null; } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; * @return The humanAgentHandoffConfig. */ public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig getHumanAgentHandoffConfig() { if (humanAgentHandoffConfigBuilder_ == null) { - return humanAgentHandoffConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance() - : humanAgentHandoffConfig_; + return humanAgentHandoffConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance() : humanAgentHandoffConfig_; } else { return humanAgentHandoffConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ - public Builder setHumanAgentHandoffConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig value) { + public Builder setHumanAgentHandoffConfig(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig value) { if (humanAgentHandoffConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2586,16 +2207,13 @@ public Builder setHumanAgentHandoffConfig( return this; } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ public Builder setHumanAgentHandoffConfig( com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder builderForValue) { @@ -2609,26 +2227,19 @@ public Builder setHumanAgentHandoffConfig( return this; } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ - public Builder mergeHumanAgentHandoffConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig value) { + public Builder mergeHumanAgentHandoffConfig(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig value) { if (humanAgentHandoffConfigBuilder_ == null) { if (humanAgentHandoffConfig_ != null) { humanAgentHandoffConfig_ = - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.newBuilder( - humanAgentHandoffConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.newBuilder(humanAgentHandoffConfig_).mergeFrom(value).buildPartial(); } else { humanAgentHandoffConfig_ = value; } @@ -2640,16 +2251,13 @@ public Builder mergeHumanAgentHandoffConfig( return this; } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ public Builder clearHumanAgentHandoffConfig() { if (humanAgentHandoffConfigBuilder_ == null) { @@ -2663,69 +2271,54 @@ public Builder clearHumanAgentHandoffConfig() { return this; } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder - getHumanAgentHandoffConfigBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder getHumanAgentHandoffConfigBuilder() { + onChanged(); return getHumanAgentHandoffConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder - getHumanAgentHandoffConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder getHumanAgentHandoffConfigOrBuilder() { if (humanAgentHandoffConfigBuilder_ != null) { return humanAgentHandoffConfigBuilder_.getMessageOrBuilder(); } else { - return humanAgentHandoffConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance() - : humanAgentHandoffConfig_; + return humanAgentHandoffConfig_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance() : humanAgentHandoffConfig_; } } /** - * - * *
      * Configuration for connecting to a live agent.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder> getHumanAgentHandoffConfigFieldBuilder() { if (humanAgentHandoffConfigBuilder_ == null) { - humanAgentHandoffConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder>( - getHumanAgentHandoffConfig(), getParentForChildren(), isClean()); + humanAgentHandoffConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder>( + getHumanAgentHandoffConfig(), + getParentForChildren(), + isClean()); humanAgentHandoffConfig_ = null; } return humanAgentHandoffConfigBuilder_; @@ -2733,47 +2326,34 @@ public Builder clearHumanAgentHandoffConfig() { private com.google.cloud.dialogflow.v2.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; - * * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; - * * @return The notificationConfig. */ public com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
@@ -2794,8 +2374,6 @@ public Builder setNotificationConfig(com.google.cloud.dialogflow.v2.Notification return this; } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
@@ -2814,22 +2392,17 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; */ - public Builder mergeNotificationConfig( - com.google.cloud.dialogflow.v2.NotificationConfig value) { + public Builder mergeNotificationConfig(com.google.cloud.dialogflow.v2.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.dialogflow.v2.NotificationConfig.newBuilder(notificationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); } else { notificationConfig_ = value; } @@ -2841,8 +2414,6 @@ public Builder mergeNotificationConfig( return this; } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
@@ -2861,42 +2432,33 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; */ - public com.google.cloud.dialogflow.v2.NotificationConfig.Builder - getNotificationConfigBuilder() { - + public com.google.cloud.dialogflow.v2.NotificationConfig.Builder getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; */ - public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
      * Configuration for publishing conversation lifecycle events.
      * 
@@ -2904,17 +2466,14 @@ public Builder clearNotificationConfig() { * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; @@ -2922,47 +2481,34 @@ public Builder clearNotificationConfig() { private com.google.cloud.dialogflow.v2.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.LoggingConfig, - com.google.cloud.dialogflow.v2.LoggingConfig.Builder, - com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.dialogflow.v2.LoggingConfig, com.google.cloud.dialogflow.v2.LoggingConfig.Builder, com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder> loggingConfigBuilder_; /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
* * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; - * * @return Whether the loggingConfig field is set. */ public boolean hasLoggingConfig() { return loggingConfigBuilder_ != null || loggingConfig_ != null; } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
* * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; - * * @return The loggingConfig. */ public com.google.cloud.dialogflow.v2.LoggingConfig getLoggingConfig() { if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.dialogflow.v2.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? com.google.cloud.dialogflow.v2.LoggingConfig.getDefaultInstance() : loggingConfig_; } else { return loggingConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
@@ -2983,8 +2529,6 @@ public Builder setLoggingConfig(com.google.cloud.dialogflow.v2.LoggingConfig val return this; } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
@@ -3003,8 +2547,6 @@ public Builder setLoggingConfig( return this; } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
@@ -3015,9 +2557,7 @@ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2.LoggingConfig v if (loggingConfigBuilder_ == null) { if (loggingConfig_ != null) { loggingConfig_ = - com.google.cloud.dialogflow.v2.LoggingConfig.newBuilder(loggingConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial(); } else { loggingConfig_ = value; } @@ -3029,8 +2569,6 @@ public Builder mergeLoggingConfig(com.google.cloud.dialogflow.v2.LoggingConfig v return this; } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
@@ -3049,8 +2587,6 @@ public Builder clearLoggingConfig() { return this; } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
@@ -3058,13 +2594,11 @@ public Builder clearLoggingConfig() { * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; */ public com.google.cloud.dialogflow.v2.LoggingConfig.Builder getLoggingConfigBuilder() { - + onChanged(); return getLoggingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
@@ -3075,14 +2609,11 @@ public com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder getLoggingConfigOrB if (loggingConfigBuilder_ != null) { return loggingConfigBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.dialogflow.v2.LoggingConfig.getDefaultInstance() - : loggingConfig_; + return loggingConfig_ == null ? + com.google.cloud.dialogflow.v2.LoggingConfig.getDefaultInstance() : loggingConfig_; } } /** - * - * *
      * Configuration for logging conversation lifecycle events.
      * 
@@ -3090,17 +2621,14 @@ public com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder getLoggingConfigOrB * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.LoggingConfig, - com.google.cloud.dialogflow.v2.LoggingConfig.Builder, - com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder> + com.google.cloud.dialogflow.v2.LoggingConfig, com.google.cloud.dialogflow.v2.LoggingConfig.Builder, com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder> getLoggingConfigFieldBuilder() { if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.LoggingConfig, - com.google.cloud.dialogflow.v2.LoggingConfig.Builder, - com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.LoggingConfig, com.google.cloud.dialogflow.v2.LoggingConfig.Builder, com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); loggingConfig_ = null; } return loggingConfigBuilder_; @@ -3108,66 +2636,44 @@ public com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder getLoggingConfigOrB private com.google.cloud.dialogflow.v2.NotificationConfig newMessageEventNotificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> - newMessageEventNotificationConfigBuilder_; + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> newMessageEventNotificationConfigBuilder_; /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; * @return Whether the newMessageEventNotificationConfig field is set. */ public boolean hasNewMessageEventNotificationConfig() { - return newMessageEventNotificationConfigBuilder_ != null - || newMessageEventNotificationConfig_ != null; + return newMessageEventNotificationConfigBuilder_ != null || newMessageEventNotificationConfig_ != null; } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; * @return The newMessageEventNotificationConfig. */ - public com.google.cloud.dialogflow.v2.NotificationConfig - getNewMessageEventNotificationConfig() { + public com.google.cloud.dialogflow.v2.NotificationConfig getNewMessageEventNotificationConfig() { if (newMessageEventNotificationConfigBuilder_ == null) { - return newMessageEventNotificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : newMessageEventNotificationConfig_; + return newMessageEventNotificationConfig_ == null ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : newMessageEventNotificationConfig_; } else { return newMessageEventNotificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ - public Builder setNewMessageEventNotificationConfig( - com.google.cloud.dialogflow.v2.NotificationConfig value) { + public Builder setNewMessageEventNotificationConfig(com.google.cloud.dialogflow.v2.NotificationConfig value) { if (newMessageEventNotificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3181,16 +2687,12 @@ public Builder setNewMessageEventNotificationConfig( return this; } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ public Builder setNewMessageEventNotificationConfig( com.google.cloud.dialogflow.v2.NotificationConfig.Builder builderForValue) { @@ -3204,26 +2706,18 @@ public Builder setNewMessageEventNotificationConfig( return this; } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ - public Builder mergeNewMessageEventNotificationConfig( - com.google.cloud.dialogflow.v2.NotificationConfig value) { + public Builder mergeNewMessageEventNotificationConfig(com.google.cloud.dialogflow.v2.NotificationConfig value) { if (newMessageEventNotificationConfigBuilder_ == null) { if (newMessageEventNotificationConfig_ != null) { newMessageEventNotificationConfig_ = - com.google.cloud.dialogflow.v2.NotificationConfig.newBuilder( - newMessageEventNotificationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.NotificationConfig.newBuilder(newMessageEventNotificationConfig_).mergeFrom(value).buildPartial(); } else { newMessageEventNotificationConfig_ = value; } @@ -3235,16 +2729,12 @@ public Builder mergeNewMessageEventNotificationConfig( return this; } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ public Builder clearNewMessageEventNotificationConfig() { if (newMessageEventNotificationConfigBuilder_ == null) { @@ -3258,69 +2748,51 @@ public Builder clearNewMessageEventNotificationConfig() { return this; } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ - public com.google.cloud.dialogflow.v2.NotificationConfig.Builder - getNewMessageEventNotificationConfigBuilder() { - + public com.google.cloud.dialogflow.v2.NotificationConfig.Builder getNewMessageEventNotificationConfigBuilder() { + onChanged(); return getNewMessageEventNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ - public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder - getNewMessageEventNotificationConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNewMessageEventNotificationConfigOrBuilder() { if (newMessageEventNotificationConfigBuilder_ != null) { return newMessageEventNotificationConfigBuilder_.getMessageOrBuilder(); } else { - return newMessageEventNotificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : newMessageEventNotificationConfig_; + return newMessageEventNotificationConfig_ == null ? + com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : newMessageEventNotificationConfig_; } } /** - * - * *
      * Configuration for publishing new message events. Event will be sent in
      * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
      * 
* - * - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> getNewMessageEventNotificationConfigFieldBuilder() { if (newMessageEventNotificationConfigBuilder_ == null) { - newMessageEventNotificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder>( - getNewMessageEventNotificationConfig(), getParentForChildren(), isClean()); + newMessageEventNotificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder>( + getNewMessageEventNotificationConfig(), + getParentForChildren(), + isClean()); newMessageEventNotificationConfig_ = null; } return newMessageEventNotificationConfigBuilder_; @@ -3328,47 +2800,34 @@ public Builder clearNewMessageEventNotificationConfig() { private com.google.cloud.dialogflow.v2.SpeechToTextConfig sttConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SpeechToTextConfig, - com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder, - com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder> - sttConfigBuilder_; + com.google.cloud.dialogflow.v2.SpeechToTextConfig, com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder, com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder> sttConfigBuilder_; /** - * - * *
      * Settings for speech transcription.
      * 
* * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; - * * @return Whether the sttConfig field is set. */ public boolean hasSttConfig() { return sttConfigBuilder_ != null || sttConfig_ != null; } /** - * - * *
      * Settings for speech transcription.
      * 
* * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; - * * @return The sttConfig. */ public com.google.cloud.dialogflow.v2.SpeechToTextConfig getSttConfig() { if (sttConfigBuilder_ == null) { - return sttConfig_ == null - ? com.google.cloud.dialogflow.v2.SpeechToTextConfig.getDefaultInstance() - : sttConfig_; + return sttConfig_ == null ? com.google.cloud.dialogflow.v2.SpeechToTextConfig.getDefaultInstance() : sttConfig_; } else { return sttConfigBuilder_.getMessage(); } } /** - * - * *
      * Settings for speech transcription.
      * 
@@ -3389,8 +2848,6 @@ public Builder setSttConfig(com.google.cloud.dialogflow.v2.SpeechToTextConfig va return this; } /** - * - * *
      * Settings for speech transcription.
      * 
@@ -3409,8 +2866,6 @@ public Builder setSttConfig( return this; } /** - * - * *
      * Settings for speech transcription.
      * 
@@ -3421,9 +2876,7 @@ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2.SpeechToTextConfig if (sttConfigBuilder_ == null) { if (sttConfig_ != null) { sttConfig_ = - com.google.cloud.dialogflow.v2.SpeechToTextConfig.newBuilder(sttConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.SpeechToTextConfig.newBuilder(sttConfig_).mergeFrom(value).buildPartial(); } else { sttConfig_ = value; } @@ -3435,8 +2888,6 @@ public Builder mergeSttConfig(com.google.cloud.dialogflow.v2.SpeechToTextConfig return this; } /** - * - * *
      * Settings for speech transcription.
      * 
@@ -3455,8 +2906,6 @@ public Builder clearSttConfig() { return this; } /** - * - * *
      * Settings for speech transcription.
      * 
@@ -3464,13 +2913,11 @@ public Builder clearSttConfig() { * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; */ public com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder getSttConfigBuilder() { - + onChanged(); return getSttConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Settings for speech transcription.
      * 
@@ -3481,14 +2928,11 @@ public com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder getSttConfigOr if (sttConfigBuilder_ != null) { return sttConfigBuilder_.getMessageOrBuilder(); } else { - return sttConfig_ == null - ? com.google.cloud.dialogflow.v2.SpeechToTextConfig.getDefaultInstance() - : sttConfig_; + return sttConfig_ == null ? + com.google.cloud.dialogflow.v2.SpeechToTextConfig.getDefaultInstance() : sttConfig_; } } /** - * - * *
      * Settings for speech transcription.
      * 
@@ -3496,17 +2940,14 @@ public com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder getSttConfigOr * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SpeechToTextConfig, - com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder, - com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder> + com.google.cloud.dialogflow.v2.SpeechToTextConfig, com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder, com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder> getSttConfigFieldBuilder() { if (sttConfigBuilder_ == null) { - sttConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SpeechToTextConfig, - com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder, - com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder>( - getSttConfig(), getParentForChildren(), isClean()); + sttConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.SpeechToTextConfig, com.google.cloud.dialogflow.v2.SpeechToTextConfig.Builder, com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder>( + getSttConfig(), + getParentForChildren(), + isClean()); sttConfig_ = null; } return sttConfigBuilder_; @@ -3514,8 +2955,6 @@ public com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder getSttConfigOr private java.lang.Object languageCode_ = ""; /** - * - * *
      * Language which represents the conversationProfile.
      * If unspecified, the default language code en-us applies. Users need to
@@ -3523,13 +2962,13 @@ public com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder getSttConfigOr
      * 
* * string language_code = 10; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -3538,8 +2977,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Language which represents the conversationProfile.
      * If unspecified, the default language code en-us applies. Users need to
@@ -3547,14 +2984,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 10; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3562,8 +3000,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Language which represents the conversationProfile.
      * If unspecified, the default language code en-us applies. Users need to
@@ -3571,22 +3007,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 10; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Language which represents the conversationProfile.
      * If unspecified, the default language code en-us applies. Users need to
@@ -3594,18 +3028,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 10; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Language which represents the conversationProfile.
      * If unspecified, the default language code en-us applies. Users need to
@@ -3613,23 +3044,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 10; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3639,12 +3070,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ConversationProfile) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ConversationProfile) private static final com.google.cloud.dialogflow.v2.ConversationProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ConversationProfile(); } @@ -3653,16 +3084,16 @@ public static com.google.cloud.dialogflow.v2.ConversationProfile getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConversationProfile(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversationProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3677,4 +3108,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.ConversationProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java similarity index 81% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java index 1809a53a3..b23b7ca36 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; -public interface ConversationProfileOrBuilder - extends +public interface ConversationProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ConversationProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique identifier of this conversation profile.
    * Format: `projects/<Project ID>/locations/<Location
@@ -33,13 +15,10 @@ public interface ConversationProfileOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The unique identifier of this conversation profile.
    * Format: `projects/<Project ID>/locations/<Location
@@ -47,139 +26,104 @@ public interface ConversationProfileOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Human readable name for this profile. Max length 1024 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Human readable name for this profile. Max length 1024 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. Create time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Create time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Create time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Update time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Update time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Update time of the conversation profile.
    * 
* - * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Configuration for an automated agent to use with this profile.
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; - * * @return Whether the automatedAgentConfig field is set. */ boolean hasAutomatedAgentConfig(); /** - * - * *
    * Configuration for an automated agent to use with this profile.
    * 
* * .google.cloud.dialogflow.v2.AutomatedAgentConfig automated_agent_config = 3; - * * @return The automatedAgentConfig. */ com.google.cloud.dialogflow.v2.AutomatedAgentConfig getAutomatedAgentConfig(); /** - * - * *
    * Configuration for an automated agent to use with this profile.
    * 
@@ -189,116 +133,84 @@ public interface ConversationProfileOrBuilder com.google.cloud.dialogflow.v2.AutomatedAgentConfigOrBuilder getAutomatedAgentConfigOrBuilder(); /** - * - * *
    * Configuration for agent assistance to use with this profile.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; * @return Whether the humanAgentAssistantConfig field is set. */ boolean hasHumanAgentAssistantConfig(); /** - * - * *
    * Configuration for agent assistance to use with this profile.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; * @return The humanAgentAssistantConfig. */ com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig getHumanAgentAssistantConfig(); /** - * - * *
    * Configuration for agent assistance to use with this profile.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig human_agent_assistant_config = 4; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder - getHumanAgentAssistantConfigOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder getHumanAgentAssistantConfigOrBuilder(); /** - * - * *
    * Configuration for connecting to a live agent.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; * @return Whether the humanAgentHandoffConfig field is set. */ boolean hasHumanAgentHandoffConfig(); /** - * - * *
    * Configuration for connecting to a live agent.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; * @return The humanAgentHandoffConfig. */ com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig getHumanAgentHandoffConfig(); /** - * - * *
    * Configuration for connecting to a live agent.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig human_agent_handoff_config = 5; */ - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder - getHumanAgentHandoffConfigOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder getHumanAgentHandoffConfigOrBuilder(); /** - * - * *
    * Configuration for publishing conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; - * * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** - * - * *
    * Configuration for publishing conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 6; - * * @return The notificationConfig. */ com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig(); /** - * - * *
    * Configuration for publishing conversation lifecycle events.
    * 
@@ -308,32 +220,24 @@ public interface ConversationProfileOrBuilder com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); /** - * - * *
    * Configuration for logging conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; - * * @return Whether the loggingConfig field is set. */ boolean hasLoggingConfig(); /** - * - * *
    * Configuration for logging conversation lifecycle events.
    * 
* * .google.cloud.dialogflow.v2.LoggingConfig logging_config = 7; - * * @return The loggingConfig. */ com.google.cloud.dialogflow.v2.LoggingConfig getLoggingConfig(); /** - * - * *
    * Configuration for logging conversation lifecycle events.
    * 
@@ -343,74 +247,54 @@ public interface ConversationProfileOrBuilder com.google.cloud.dialogflow.v2.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); /** - * - * *
    * Configuration for publishing new message events. Event will be sent in
    * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
    * 
* - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; * @return Whether the newMessageEventNotificationConfig field is set. */ boolean hasNewMessageEventNotificationConfig(); /** - * - * *
    * Configuration for publishing new message events. Event will be sent in
    * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
    * 
* - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; * @return The newMessageEventNotificationConfig. */ com.google.cloud.dialogflow.v2.NotificationConfig getNewMessageEventNotificationConfig(); /** - * - * *
    * Configuration for publishing new message events. Event will be sent in
    * format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
    * 
* - * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; - * + * .google.cloud.dialogflow.v2.NotificationConfig new_message_event_notification_config = 8; */ - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder - getNewMessageEventNotificationConfigOrBuilder(); + com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNewMessageEventNotificationConfigOrBuilder(); /** - * - * *
    * Settings for speech transcription.
    * 
* * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; - * * @return Whether the sttConfig field is set. */ boolean hasSttConfig(); /** - * - * *
    * Settings for speech transcription.
    * 
* * .google.cloud.dialogflow.v2.SpeechToTextConfig stt_config = 9; - * * @return The sttConfig. */ com.google.cloud.dialogflow.v2.SpeechToTextConfig getSttConfig(); /** - * - * *
    * Settings for speech transcription.
    * 
@@ -420,8 +304,6 @@ public interface ConversationProfileOrBuilder com.google.cloud.dialogflow.v2.SpeechToTextConfigOrBuilder getSttConfigOrBuilder(); /** - * - * *
    * Language which represents the conversationProfile.
    * If unspecified, the default language code en-us applies. Users need to
@@ -429,13 +311,10 @@ public interface ConversationProfileOrBuilder
    * 
* * string language_code = 10; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Language which represents the conversationProfile.
    * If unspecified, the default language code en-us applies. Users need to
@@ -443,8 +322,8 @@ public interface ConversationProfileOrBuilder
    * 
* * string language_code = 10; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java new file mode 100644 index 000000000..97d01964d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java @@ -0,0 +1,531 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation_profile.proto + +package com.google.cloud.dialogflow.v2; + +public final class ConversationProfileProto { + private ConversationProfileProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ConversationProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_UpdateConversationProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_UpdateConversationProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_NotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_LoggingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SuggestionFeature_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/dialogflow/v2/conversatio" + + "n_profile.proto\022\032google.cloud.dialogflow" + + ".v2\032\034google/api/annotations.proto\032\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032-" + + "google/cloud/dialogflow/v2/audio_config." + + "proto\032,google/cloud/dialogflow/v2/partic" + + "ipant.proto\032#google/longrunning/operatio" + + "ns.proto\032\033google/protobuf/empty.proto\032 g" + + "oogle/protobuf/field_mask.proto\032\037google/" + + "protobuf/timestamp.proto\"\307\007\n\023Conversatio" + + "nProfile\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002" + + " \001(\tB\003\340A\002\0224\n\013create_time\030\013 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\014" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n" + + "\026automated_agent_config\030\003 \001(\01320.google.c" + + "loud.dialogflow.v2.AutomatedAgentConfig\022" + + "[\n\034human_agent_assistant_config\030\004 \001(\01325." + + "google.cloud.dialogflow.v2.HumanAgentAss" + + "istantConfig\022W\n\032human_agent_handoff_conf" + + "ig\030\005 \001(\01323.google.cloud.dialogflow.v2.Hu" + + "manAgentHandoffConfig\022K\n\023notification_co" + + "nfig\030\006 \001(\0132..google.cloud.dialogflow.v2." + + "NotificationConfig\022A\n\016logging_config\030\007 \001" + + "(\0132).google.cloud.dialogflow.v2.LoggingC" + + "onfig\022]\n%new_message_event_notification_" + + "config\030\010 \001(\0132..google.cloud.dialogflow.v" + + "2.NotificationConfig\022B\n\nstt_config\030\t \001(\013" + + "2..google.cloud.dialogflow.v2.SpeechToTe" + + "xtConfig\022\025\n\rlanguage_code\030\n \001(\t:\310\001\352A\304\001\n-" + + "dialogflow.googleapis.com/ConversationPr" + + "ofile\022>projects/{project}/conversationPr" + + "ofiles/{conversation_profile}\022Sprojects/" + + "{project}/locations/{location}/conversat" + + "ionProfiles/{conversation_profile}\"\217\001\n\037L" + + "istConversationProfilesRequest\022E\n\006parent" + + "\030\001 \001(\tB5\340A\002\372A/\022-dialogflow.googleapis.co" + + "m/ConversationProfile\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"\213\001\n ListConversatio" + + "nProfilesResponse\022N\n\025conversation_profil" + + "es\030\001 \003(\0132/.google.cloud.dialogflow.v2.Co" + + "nversationProfile\022\027\n\017next_page_token\030\002 \001" + + "(\t\"d\n\035GetConversationProfileRequest\022C\n\004n" + + "ame\030\001 \001(\tB5\340A\002\372A/\n-dialogflow.googleapis" + + ".com/ConversationProfile\"\275\001\n CreateConve" + + "rsationProfileRequest\022E\n\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\022-dialogflow.googleapis.com/Convers" + + "ationProfile\022R\n\024conversation_profile\030\002 \001" + + "(\0132/.google.cloud.dialogflow.v2.Conversa" + + "tionProfileB\003\340A\002\"\254\001\n UpdateConversationP" + + "rofileRequest\022R\n\024conversation_profile\030\001 " + + "\001(\0132/.google.cloud.dialogflow.v2.Convers" + + "ationProfileB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\"g\n Delet" + + "eConversationProfileRequest\022C\n\004name\030\001 \001(" + + "\tB5\340A\002\372A/\n-dialogflow.googleapis.com/Con" + + "versationProfile\"N\n\024AutomatedAgentConfig" + + "\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.goog" + + "leapis.com/Agent\"\256\022\n\031HumanAgentAssistant" + + "Config\022K\n\023notification_config\030\002 \001(\0132..go" + + "ogle.cloud.dialogflow.v2.NotificationCon" + + "fig\022m\n\035human_agent_suggestion_config\030\003 \001" + + "(\0132F.google.cloud.dialogflow.v2.HumanAge" + + "ntAssistantConfig.SuggestionConfig\022j\n\032en" + + "d_user_suggestion_config\030\004 \001(\0132F.google." + + "cloud.dialogflow.v2.HumanAgentAssistantC" + + "onfig.SuggestionConfig\022l\n\027message_analys" + + "is_config\030\005 \001(\0132K.google.cloud.dialogflo" + + "w.v2.HumanAgentAssistantConfig.MessageAn" + + "alysisConfig\032H\n\031SuggestionTriggerSetting" + + "s\022\024\n\014no_smalltalk\030\001 \001(\010\022\025\n\ronly_end_user" + + "\030\002 \001(\010\032\326\003\n\027SuggestionFeatureConfig\022I\n\022su" + + "ggestion_feature\030\005 \001(\0132-.google.cloud.di" + + "alogflow.v2.SuggestionFeature\022%\n\035enable_" + + "event_based_suggestion\030\003 \001(\010\022t\n\033suggesti" + + "on_trigger_settings\030\n \001(\0132O.google.cloud" + + ".dialogflow.v2.HumanAgentAssistantConfig" + + ".SuggestionTriggerSettings\022a\n\014query_conf" + + "ig\030\006 \001(\0132K.google.cloud.dialogflow.v2.Hu" + + "manAgentAssistantConfig.SuggestionQueryC" + + "onfig\022p\n\031conversation_model_config\030\007 \001(\013" + + "2M.google.cloud.dialogflow.v2.HumanAgent" + + "AssistantConfig.ConversationModelConfig\032" + + "\236\001\n\020SuggestionConfig\022f\n\017feature_configs\030" + + "\002 \003(\0132M.google.cloud.dialogflow.v2.Human" + + "AgentAssistantConfig.SuggestionFeatureCo" + + "nfig\022\"\n\032group_suggestion_responses\030\003 \001(\010" + + "\032\374\007\n\025SuggestionQueryConfig\022\213\001\n\033knowledge" + + "_base_query_source\030\001 \001(\0132d.google.cloud." + + "dialogflow.v2.HumanAgentAssistantConfig." + + "SuggestionQueryConfig.KnowledgeBaseQuery" + + "SourceH\000\022\200\001\n\025document_query_source\030\002 \001(\013" + + "2_.google.cloud.dialogflow.v2.HumanAgent" + + "AssistantConfig.SuggestionQueryConfig.Do" + + "cumentQuerySourceH\000\022\204\001\n\027dialogflow_query" + + "_source\030\003 \001(\0132a.google.cloud.dialogflow." + + "v2.HumanAgentAssistantConfig.SuggestionQ" + + "ueryConfig.DialogflowQuerySourceH\000\022\023\n\013ma" + + "x_results\030\004 \001(\005\022\034\n\024confidence_threshold\030" + + "\005 \001(\002\022\202\001\n\027context_filter_settings\030\007 \001(\0132" + + "a.google.cloud.dialogflow.v2.HumanAgentA" + + "ssistantConfig.SuggestionQueryConfig.Con" + + "textFilterSettings\032d\n\030KnowledgeBaseQuery" + + "Source\022H\n\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" + + "\'dialogflow.googleapis.com/KnowledgeBase" + + "\032T\n\023DocumentQuerySource\022=\n\tdocuments\030\001 \003" + + "(\tB*\340A\002\372A$\n\"dialogflow.googleapis.com/Do" + + "cument\032O\n\025DialogflowQuerySource\0226\n\005agent" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.co" + + "m/Agent\032v\n\025ContextFilterSettings\022\035\n\025drop" + + "_handoff_messages\030\001 \001(\010\022#\n\033drop_virtual_" + + "agent_messages\030\002 \001(\010\022\031\n\021drop_ivr_message" + + "s\030\003 \001(\010B\016\n\014query_source\032Z\n\027ConversationM" + + "odelConfig\022?\n\005model\030\001 \001(\tB0\372A-\n+dialogfl" + + "ow.googleapis.com/ConversationModel\032\\\n\025M" + + "essageAnalysisConfig\022 \n\030enable_entity_ex" + + "traction\030\002 \001(\010\022!\n\031enable_sentiment_analy" + + "sis\030\003 \001(\010\"\304\003\n\027HumanAgentHandoffConfig\022b\n" + + "\022live_person_config\030\001 \001(\0132D.google.cloud" + + ".dialogflow.v2.HumanAgentHandoffConfig.L" + + "ivePersonConfigH\000\022u\n\034salesforce_live_age" + + "nt_config\030\002 \001(\0132M.google.cloud.dialogflo" + + "w.v2.HumanAgentHandoffConfig.SalesforceL" + + "iveAgentConfigH\000\032/\n\020LivePersonConfig\022\033\n\016" + + "account_number\030\001 \001(\tB\003\340A\002\032\213\001\n\031Salesforce" + + "LiveAgentConfig\022\034\n\017organization_id\030\001 \001(\t" + + "B\003\340A\002\022\032\n\rdeployment_id\030\002 \001(\tB\003\340A\002\022\026\n\tbut" + + "ton_id\030\003 \001(\tB\003\340A\002\022\034\n\017endpoint_domain\030\004 \001" + + "(\tB\003\340A\002B\017\n\ragent_service\"\277\001\n\022Notificatio" + + "nConfig\022\r\n\005topic\030\001 \001(\t\022T\n\016message_format" + + "\030\002 \001(\0162<.google.cloud.dialogflow.v2.Noti" + + "ficationConfig.MessageFormat\"D\n\rMessageF" + + "ormat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" + + "\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022\"\n\032e" + + "nable_stackdriver_logging\030\003 \001(\010\"\224\001\n\021Sugg" + + "estionFeature\022@\n\004type\030\001 \001(\01622.google.clo" + + "ud.dialogflow.v2.SuggestionFeature.Type\"" + + "=\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICLE" + + "_SUGGESTION\020\001\022\007\n\003FAQ\020\0022\325\014\n\024ConversationP" + + "rofiles\022\220\002\n\030ListConversationProfiles\022;.g" + + "oogle.cloud.dialogflow.v2.ListConversati" + + "onProfilesRequest\032<.google.cloud.dialogf" + + "low.v2.ListConversationProfilesResponse\"" + + "y\202\323\344\223\002j\022,/v2/{parent=projects/*}/convers" + + "ationProfilesZ:\0228/v2/{parent=projects/*/" + + "locations/*}/conversationProfiles\332A\006pare" + + "nt\022\375\001\n\026GetConversationProfile\0229.google.c" + + "loud.dialogflow.v2.GetConversationProfil" + + "eRequest\032/.google.cloud.dialogflow.v2.Co" + + "nversationProfile\"w\202\323\344\223\002j\022,/v2/{name=pro" + + "jects/*/conversationProfiles/*}Z:\0228/v2/{" + + "name=projects/*/locations/*/conversation" + + "Profiles/*}\332A\004name\022\310\002\n\031CreateConversatio" + + "nProfile\022<.google.cloud.dialogflow.v2.Cr" + + "eateConversationProfileRequest\032/.google." + + "cloud.dialogflow.v2.ConversationProfile\"" + + "\273\001\202\323\344\223\002\226\001\",/v2/{parent=projects/*}/conve" + + "rsationProfiles:\024conversation_profileZP\"" + + "8/v2/{parent=projects/*/locations/*}/con" + + "versationProfiles:\024conversation_profile\332" + + "A\033parent,conversation_profile\022\367\002\n\031Update" + + "ConversationProfile\022<.google.cloud.dialo" + + "gflow.v2.UpdateConversationProfileReques" + + "t\032/.google.cloud.dialogflow.v2.Conversat" + + "ionProfile\"\352\001\202\323\344\223\002\300\0012A/v2/{conversation_" + + "profile.name=projects/*/conversationProf" + + "iles/*}:\024conversation_profileZe2M/v2/{co" + + "nversation_profile.name=projects/*/locat" + + "ions/*/conversationProfiles/*}:\024conversa" + + "tion_profile\332A conversation_profile,upda" + + "te_mask\022\352\001\n\031DeleteConversationProfile\022<." + + "google.cloud.dialogflow.v2.DeleteConvers" + + "ationProfileRequest\032\026.google.protobuf.Em" + + "pty\"w\202\323\344\223\002j*,/v2/{name=projects/*/conver" + + "sationProfiles/*}Z:*8/v2/{name=projects/" + + "*/locations/*/conversationProfiles/*}\332A\004" + + "name\032x\312A\031dialogflow.googleapis.com\322AYhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/dial" + + "ogflowB\247\003\n\036com.google.cloud.dialogflow.v" + + "2B\030ConversationProfileProtoP\001ZDgoogle.go" + + "lang.org/genproto/googleapis/cloud/dialo" + + "gflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Clo" + + "ud.Dialogflow.V2\352A|\n,dialogflow.googleap" + + "is.com/CXSecuritySettings\022Lprojects/{pro" + + "ject}/locations/{location}/securitySetti" + + "ngs/{security_settings}\352A~\n+dialogflow.g" + + "oogleapis.com/ConversationModel\022Oproject" + + "s/{project}/locations/{location}/convers" + + "ationModels/{conversation_model}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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.ParticipantProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_ConversationProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ConversationProfile_descriptor, + new java.lang.String[] { "Name", "DisplayName", "CreateTime", "UpdateTime", "AutomatedAgentConfig", "HumanAgentAssistantConfig", "HumanAgentHandoffConfig", "NotificationConfig", "LoggingConfig", "NewMessageEventNotificationConfig", "SttConfig", "LanguageCode", }); + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListConversationProfilesResponse_descriptor, + new java.lang.String[] { "ConversationProfiles", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor, + new java.lang.String[] { "Parent", "ConversationProfile", }); + internal_static_google_cloud_dialogflow_v2_UpdateConversationProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2_UpdateConversationProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_UpdateConversationProfileRequest_descriptor, + new java.lang.String[] { "ConversationProfile", "UpdateMask", }); + internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AutomatedAgentConfig_descriptor, + new java.lang.String[] { "Agent", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor, + new java.lang.String[] { "NotificationConfig", "HumanAgentSuggestionConfig", "EndUserSuggestionConfig", "MessageAnalysisConfig", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor, + new java.lang.String[] { "NoSmalltalk", "OnlyEndUser", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor, + new java.lang.String[] { "SuggestionFeature", "EnableEventBasedSuggestion", "SuggestionTriggerSettings", "QueryConfig", "ConversationModelConfig", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor, + new java.lang.String[] { "FeatureConfigs", "GroupSuggestionResponses", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor, + new java.lang.String[] { "KnowledgeBaseQuerySource", "DocumentQuerySource", "DialogflowQuerySource", "MaxResults", "ConfidenceThreshold", "ContextFilterSettings", "QuerySource", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor, + new java.lang.String[] { "KnowledgeBases", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor, + new java.lang.String[] { "Documents", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor, + new java.lang.String[] { "Agent", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor, + new java.lang.String[] { "DropHandoffMessages", "DropVirtualAgentMessages", "DropIvrMessages", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor, + new java.lang.String[] { "Model", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor, + new java.lang.String[] { "EnableEntityExtraction", "EnableSentimentAnalysis", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor, + new java.lang.String[] { "LivePersonConfig", "SalesforceLiveAgentConfig", "AgentService", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor, + new java.lang.String[] { "AccountNumber", }); + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor = + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor, + new java.lang.String[] { "OrganizationId", "DeploymentId", "ButtonId", "EndpointDomain", }); + internal_static_google_cloud_dialogflow_v2_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dialogflow_v2_NotificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_NotificationConfig_descriptor, + new java.lang.String[] { "Topic", "MessageFormat", }); + internal_static_google_cloud_dialogflow_v2_LoggingConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_v2_LoggingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_LoggingConfig_descriptor, + new java.lang.String[] { "EnableStackdriverLogging", }); + internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dialogflow_v2_SuggestionFeature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor, + new java.lang.String[] { "Type", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + 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.ParticipantProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java new file mode 100644 index 000000000..2e7841ca9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java @@ -0,0 +1,250 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation.proto + +package com.google.cloud.dialogflow.v2; + +public final class ConversationProto { + private ConversationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Conversation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListConversationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListConversationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListConversationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListMessagesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListMessagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListMessagesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListMessagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/dialogflow/v2/conversatio" + + "n.proto\022\032google.cloud.dialogflow.v2\032\034goo" + + "gle/api/annotations.proto\032\027google/api/cl" + + "ient.proto\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032,google/c" + + "loud/dialogflow/v2/participant.proto\032\033go" + + "ogle/protobuf/empty.proto\032\037google/protob" + + "uf/timestamp.proto\"\300\006\n\014Conversation\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\003\022U\n\017lifecycle_state\030\002 \001(\0162" + + "7.google.cloud.dialogflow.v2.Conversatio" + + "n.LifecycleStateB\003\340A\003\022S\n\024conversation_pr" + + "ofile\030\003 \001(\tB5\340A\002\372A/\n-dialogflow.googleap" + + "is.com/ConversationProfile\022N\n\014phone_numb" + + "er\030\004 \001(\01323.google.cloud.dialogflow.v2.Co" + + "nversationPhoneNumberB\003\340A\003\0223\n\nstart_time" + + "\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "1\n\010end_time\030\006 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022V\n\022conversation_stage\030\007 \001(\0162:" + + ".google.cloud.dialogflow.v2.Conversation" + + ".ConversationStage\"Q\n\016LifecycleState\022\037\n\033" + + "LIFECYCLE_STATE_UNSPECIFIED\020\000\022\017\n\013IN_PROG" + + "RESS\020\001\022\r\n\tCOMPLETED\020\002\"h\n\021ConversationSta" + + "ge\022\"\n\036CONVERSATION_STAGE_UNSPECIFIED\020\000\022\027" + + "\n\023VIRTUAL_AGENT_STAGE\020\001\022\026\n\022HUMAN_ASSIST_" + + "STAGE\020\002:\243\001\352A\237\001\n&dialogflow.googleapis.co" + + "m/Conversation\022/projects/{project}/conve" + + "rsations/{conversation}\022Dprojects/{proje" + + "ct}/locations/{location}/conversations/{" + + "conversation}\"\276\001\n\031CreateConversationRequ" + + "est\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&dialogflow." + + "googleapis.com/Conversation\022C\n\014conversat" + + "ion\030\002 \001(\0132(.google.cloud.dialogflow.v2.C" + + "onversationB\003\340A\002\022\034\n\017conversation_id\030\003 \001(" + + "\tB\003\340A\001\"\233\001\n\030ListConversationsRequest\022>\n\006p" + + "arent\030\001 \001(\tB.\340A\002\372A(\022&dialogflow.googleap" + + "is.com/Conversation\022\026\n\tpage_size\030\002 \001(\005B\003" + + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\016\n\006filter\030\004" + + " \001(\t\"u\n\031ListConversationsResponse\022?\n\rcon" + + "versations\030\001 \003(\0132(.google.cloud.dialogfl" + + "ow.v2.Conversation\022\027\n\017next_page_token\030\002 " + + "\001(\t\"V\n\026GetConversationRequest\022<\n\004name\030\001 " + + "\001(\tB.\340A\002\372A(\n&dialogflow.googleapis.com/C" + + "onversation\"[\n\033CompleteConversationReque" + + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&dialogflow.goo" + + "gleapis.com/Conversation\"\226\001\n\023ListMessage" + + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!dialog" + + "flow.googleapis.com/Message\022\023\n\006filter\030\004 " + + "\001(\tB\003\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"f\n\024ListMessagesRespons" + + "e\0225\n\010messages\030\001 \003(\0132#.google.cloud.dialo" + + "gflow.v2.Message\022\027\n\017next_page_token\030\002 \001(" + + "\t\"4\n\027ConversationPhoneNumber\022\031\n\014phone_nu" + + "mber\030\003 \001(\tB\003\340A\0032\335\n\n\rConversations\022\214\002\n\022Cr" + + "eateConversation\0225.google.cloud.dialogfl" + + "ow.v2.CreateConversationRequest\032(.google" + + ".cloud.dialogflow.v2.Conversation\"\224\001\202\323\344\223" + + "\002x\"%/v2/{parent=projects/*}/conversation" + + "s:\014conversationZA\"1/v2/{parent=projects/" + + "*/locations/*}/conversations:\014conversati" + + "on\332A\023parent,conversation\022\355\001\n\021ListConvers" + + "ations\0224.google.cloud.dialogflow.v2.List" + + "ConversationsRequest\0325.google.cloud.dial" + + "ogflow.v2.ListConversationsResponse\"k\202\323\344" + + "\223\002\\\022%/v2/{parent=projects/*}/conversatio" + + "nsZ3\0221/v2/{parent=projects/*/locations/*" + + "}/conversations\332A\006parent\022\332\001\n\017GetConversa" + + "tion\0222.google.cloud.dialogflow.v2.GetCon" + + "versationRequest\032(.google.cloud.dialogfl" + + "ow.v2.Conversation\"i\202\323\344\223\002\\\022%/v2/{name=pr" + + "ojects/*/conversations/*}Z3\0221/v2/{name=p" + + "rojects/*/locations/*/conversations/*}\332A" + + "\004name\022\375\001\n\024CompleteConversation\0227.google." + + "cloud.dialogflow.v2.CompleteConversation" + + "Request\032(.google.cloud.dialogflow.v2.Con" + + "versation\"\201\001\202\323\344\223\002t\"./v2/{name=projects/*" + + "/conversations/*}:complete:\001*Z?\":/v2/{na" + + "me=projects/*/locations/*/conversations/" + + "*}:complete:\001*\332A\004name\022\365\001\n\014ListMessages\022/" + + ".google.cloud.dialogflow.v2.ListMessages" + + "Request\0320.google.cloud.dialogflow.v2.Lis" + + "tMessagesResponse\"\201\001\202\323\344\223\002r\0220/v2/{parent=" + + "projects/*/conversations/*}/messagesZ>\022<" + + "/v2/{parent=projects/*/locations/*/conve" + + "rsations/*}/messages\332A\006parent\032x\312A\031dialog" + + "flow.googleapis.com\322AYhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/dialogflowB\240\001\n\036com." + + "google.cloud.dialogflow.v2B\021Conversation" + + "ProtoP\001ZDgoogle.golang.org/genproto/goog" + + "leapis/cloud/dialogflow/v2;dialogflow\370\001\001" + + "\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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.ParticipantProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_Conversation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Conversation_descriptor, + new java.lang.String[] { "Name", "LifecycleState", "ConversationProfile", "PhoneNumber", "StartTime", "EndTime", "ConversationStage", }); + internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor, + new java.lang.String[] { "Parent", "Conversation", "ConversationId", }); + internal_static_google_cloud_dialogflow_v2_ListConversationsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_ListConversationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListConversationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_dialogflow_v2_ListConversationsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2_ListConversationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListConversationsResponse_descriptor, + new java.lang.String[] { "Conversations", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2_GetConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_CompleteConversationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_ListMessagesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2_ListMessagesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListMessagesRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2_ListMessagesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dialogflow_v2_ListMessagesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListMessagesResponse_descriptor, + new java.lang.String[] { "Messages", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ConversationPhoneNumber_descriptor, + new java.lang.String[] { "PhoneNumber", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + 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.ParticipantProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java similarity index 64% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java index 780fadc21..67ba9379c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateContextRequest} */ -public final class CreateContextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateContextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateContextRequest) CreateContextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateContextRequest.newBuilder() to construct. private CreateContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateContextRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateContextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateContextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,68 +53,60 @@ private CreateContextRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.Context.Builder subBuilder = null; + if (context_ != null) { + subBuilder = context_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.Context.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Context.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); - } - - break; + context_ = input.readMessage(com.google.cloud.dialogflow.v2.Context.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(context_); + context_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_CreateContextRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_CreateContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateContextRequest.class, - com.google.cloud.dialogflow.v2.CreateContextRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateContextRequest.class, com.google.cloud.dialogflow.v2.CreateContextRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The session to create a context for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -141,10 +116,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,15 +125,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The session to create a context for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -171,18 +142,17 @@ public java.lang.String getParent() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,16 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONTEXT_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.Context context_; /** - * - * *
    * Required. The context to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the context field is set. */ @java.lang.Override @@ -210,34 +175,23 @@ public boolean hasContext() { return context_ != null; } /** - * - * *
    * Required. The context to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The context. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Context getContext() { - return context_ == null - ? com.google.cloud.dialogflow.v2.Context.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.dialogflow.v2.Context.getDefaultInstance() : context_; } /** - * - * *
    * Required. The context to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.ContextOrBuilder getContextOrBuilder() { @@ -245,7 +199,6 @@ public com.google.cloud.dialogflow.v2.ContextOrBuilder getContextOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -277,7 +231,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (context_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,18 +242,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateContextRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateContextRequest other = - (com.google.cloud.dialogflow.v2.CreateContextRequest) obj; + com.google.cloud.dialogflow.v2.CreateContextRequest other = (com.google.cloud.dialogflow.v2.CreateContextRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasContext() != other.hasContext()) return false; if (hasContext()) { - if (!getContext().equals(other.getContext())) return false; + if (!getContext() + .equals(other.getContext())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -323,126 +279,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateContextRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateContextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateContextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateContextRequest) com.google.cloud.dialogflow.v2.CreateContextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_CreateContextRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_CreateContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateContextRequest.class, - com.google.cloud.dialogflow.v2.CreateContextRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateContextRequest.class, com.google.cloud.dialogflow.v2.CreateContextRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateContextRequest.newBuilder() @@ -450,15 +397,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_CreateContextRequest_descriptor; } @java.lang.Override @@ -495,8 +443,7 @@ public com.google.cloud.dialogflow.v2.CreateContextRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateContextRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateContextRequest result = - new com.google.cloud.dialogflow.v2.CreateContextRequest(this); + com.google.cloud.dialogflow.v2.CreateContextRequest result = new com.google.cloud.dialogflow.v2.CreateContextRequest(this); result.parent_ = parent_; if (contextBuilder_ == null) { result.context_ = context_; @@ -511,39 +458,38 @@ public com.google.cloud.dialogflow.v2.CreateContextRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateContextRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateContextRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateContextRequest)other); } else { super.mergeFrom(other); return this; @@ -551,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateContextRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateContextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateContextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -579,8 +524,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateContextRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateContextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,8 +536,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The session to create a context for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -603,16 +545,14 @@ public Builder mergeFrom(
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,8 +561,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The session to create a context for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -632,17 +570,16 @@ public java.lang.String getParent() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -650,8 +587,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The session to create a context for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -661,25 +596,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The session to create a context for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -689,21 +620,16 @@ public Builder setParent(java.lang.String value) {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The session to create a context for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -713,19 +639,17 @@ public Builder clearParent() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -733,58 +657,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.Context context_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Context, - com.google.cloud.dialogflow.v2.Context.Builder, - com.google.cloud.dialogflow.v2.ContextOrBuilder> - contextBuilder_; + com.google.cloud.dialogflow.v2.Context, com.google.cloud.dialogflow.v2.Context.Builder, com.google.cloud.dialogflow.v2.ContextOrBuilder> contextBuilder_; /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the context field is set. */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The context. */ public com.google.cloud.dialogflow.v2.Context getContext() { if (contextBuilder_ == null) { - return context_ == null - ? com.google.cloud.dialogflow.v2.Context.getDefaultInstance() - : context_; + return context_ == null ? com.google.cloud.dialogflow.v2.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setContext(com.google.cloud.dialogflow.v2.Context value) { if (contextBuilder_ == null) { @@ -800,17 +705,14 @@ public Builder setContext(com.google.cloud.dialogflow.v2.Context value) { return this; } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setContext(com.google.cloud.dialogflow.v2.Context.Builder builderForValue) { + public Builder setContext( + com.google.cloud.dialogflow.v2.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); @@ -821,23 +723,17 @@ public Builder setContext(com.google.cloud.dialogflow.v2.Context.Builder builder return this; } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeContext(com.google.cloud.dialogflow.v2.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = - com.google.cloud.dialogflow.v2.Context.newBuilder(context_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } @@ -849,15 +745,11 @@ public Builder mergeContext(com.google.cloud.dialogflow.v2.Context value) { return this; } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearContext() { if (contextBuilder_ == null) { @@ -871,71 +763,55 @@ public Builder clearContext() { return this; } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Context.Builder getContextBuilder() { - + onChanged(); return getContextFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { - return context_ == null - ? com.google.cloud.dialogflow.v2.Context.getDefaultInstance() - : context_; + return context_ == null ? + com.google.cloud.dialogflow.v2.Context.getDefaultInstance() : context_; } } /** - * - * *
      * Required. The context to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Context, - com.google.cloud.dialogflow.v2.Context.Builder, - com.google.cloud.dialogflow.v2.ContextOrBuilder> + com.google.cloud.dialogflow.v2.Context, com.google.cloud.dialogflow.v2.Context.Builder, com.google.cloud.dialogflow.v2.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { - contextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Context, - com.google.cloud.dialogflow.v2.Context.Builder, - com.google.cloud.dialogflow.v2.ContextOrBuilder>( - getContext(), getParentForChildren(), isClean()); + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Context, com.google.cloud.dialogflow.v2.Context.Builder, com.google.cloud.dialogflow.v2.ContextOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); context_ = null; } return contextBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -945,12 +821,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateContextRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateContextRequest) private static final com.google.cloud.dialogflow.v2.CreateContextRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateContextRequest(); } @@ -959,16 +835,16 @@ public static com.google.cloud.dialogflow.v2.CreateContextRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateContextRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateContextRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateContextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateContextRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -983,4 +859,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.CreateContextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java index 8525be046..a3ba27b2d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateContextRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface CreateContextRequestOrBuilder - extends +public interface CreateContextRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateContextRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The session to create a context for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -35,16 +17,11 @@ public interface CreateContextRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The session to create a context for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -54,52 +31,36 @@ public interface CreateContextRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The context to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the context field is set. */ boolean hasContext(); /** - * - * *
    * Required. The context to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The context. */ com.google.cloud.dialogflow.v2.Context getContext(); /** - * - * *
    * Required. The context to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Context context = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.ContextOrBuilder getContextOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequest.java similarity index 60% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequest.java index 18a1f1080..3fc6ef906 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [ConversationProfiles.CreateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateConversationProfileRequest} */ -public final class CreateConversationProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConversationProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateConversationProfileRequest) CreateConversationProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConversationProfileRequest.newBuilder() to construct. - private CreateConversationProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConversationProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConversationProfileRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConversationProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateConversationProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,78 +53,66 @@ private CreateConversationProfileRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.ConversationProfile.Builder subBuilder = null; + if (conversationProfile_ != null) { + subBuilder = conversationProfile_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.ConversationProfile.Builder subBuilder = null; - if (conversationProfile_ != null) { - subBuilder = conversationProfile_.toBuilder(); - } - conversationProfile_ = - input.readMessage( - com.google.cloud.dialogflow.v2.ConversationProfile.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(conversationProfile_); - conversationProfile_ = subBuilder.buildPartial(); - } - - break; + conversationProfile_ = input.readMessage(com.google.cloud.dialogflow.v2.ConversationProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conversationProfile_); + conversationProfile_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.class, - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.class, com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project to create a conversation profile for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -151,32 +121,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project to create a conversation profile for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,16 +155,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONVERSATION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.ConversationProfile conversationProfile_; /** - * - * *
    * Required. The conversation profile to create.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversationProfile field is set. */ @java.lang.Override @@ -204,43 +167,30 @@ public boolean hasConversationProfile() { return conversationProfile_ != null; } /** - * - * *
    * Required. The conversation profile to create.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversationProfile. */ @java.lang.Override public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile() { - return conversationProfile_ == null - ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() - : conversationProfile_; + return conversationProfile_ == null ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() : conversationProfile_; } /** - * - * *
    * Required. The conversation profile to create.
    * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder - getConversationProfileOrBuilder() { + public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder getConversationProfileOrBuilder() { return getConversationProfile(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (conversationProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversationProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversationProfile()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +234,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateConversationProfileRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest other = - (com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) obj; + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest other = (com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasConversationProfile() != other.hasConversationProfile()) return false; if (hasConversationProfile()) { - if (!getConversationProfile().equals(other.getConversationProfile())) return false; + if (!getConversationProfile() + .equals(other.getConversationProfile())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateConversationProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [ConversationProfiles.CreateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateConversationProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateConversationProfileRequest) com.google.cloud.dialogflow.v2.CreateConversationProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.class, - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.class, com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.newBuilder() @@ -446,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -470,14 +414,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_CreateConversationProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.CreateConversationProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.CreateConversationProfileRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.getDefaultInstance(); } @@ -492,8 +435,7 @@ public com.google.cloud.dialogflow.v2.CreateConversationProfileRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateConversationProfileRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest result = - new com.google.cloud.dialogflow.v2.CreateConversationProfileRequest(this); + com.google.cloud.dialogflow.v2.CreateConversationProfileRequest result = new com.google.cloud.dialogflow.v2.CreateConversationProfileRequest(this); result.parent_ = parent_; if (conversationProfileBuilder_ == null) { result.conversationProfile_ = conversationProfile_; @@ -508,50 +450,46 @@ public com.google.cloud.dialogflow.v2.CreateConversationProfileRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateConversationProfileRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.CreateConversationProfileRequest other) { - if (other - == com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateConversationProfileRequest other) { + if (other == com.google.cloud.dialogflow.v2.CreateConversationProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -578,9 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateConversationProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,23 +528,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project to create a conversation profile for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -617,24 +549,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project to create a conversation profile for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -642,70 +571,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project to create a conversation profile for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project to create a conversation profile for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project to create a conversation profile for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,61 +629,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.ConversationProfile conversationProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ConversationProfile, - com.google.cloud.dialogflow.v2.ConversationProfile.Builder, - com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> - conversationProfileBuilder_; + com.google.cloud.dialogflow.v2.ConversationProfile, com.google.cloud.dialogflow.v2.ConversationProfile.Builder, com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> conversationProfileBuilder_; /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversationProfile field is set. */ public boolean hasConversationProfile() { return conversationProfileBuilder_ != null || conversationProfile_ != null; } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversationProfile. */ public com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile() { if (conversationProfileBuilder_ == null) { - return conversationProfile_ == null - ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() - : conversationProfile_; + return conversationProfile_ == null ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() : conversationProfile_; } else { return conversationProfileBuilder_.getMessage(); } } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConversationProfile( - com.google.cloud.dialogflow.v2.ConversationProfile value) { + public Builder setConversationProfile(com.google.cloud.dialogflow.v2.ConversationProfile value) { if (conversationProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,15 +677,11 @@ public Builder setConversationProfile( return this; } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversationProfile( com.google.cloud.dialogflow.v2.ConversationProfile.Builder builderForValue) { @@ -803,24 +695,17 @@ public Builder setConversationProfile( return this; } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeConversationProfile( - com.google.cloud.dialogflow.v2.ConversationProfile value) { + public Builder mergeConversationProfile(com.google.cloud.dialogflow.v2.ConversationProfile value) { if (conversationProfileBuilder_ == null) { if (conversationProfile_ != null) { conversationProfile_ = - com.google.cloud.dialogflow.v2.ConversationProfile.newBuilder(conversationProfile_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.ConversationProfile.newBuilder(conversationProfile_).mergeFrom(value).buildPartial(); } else { conversationProfile_ = value; } @@ -832,15 +717,11 @@ public Builder mergeConversationProfile( return this; } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConversationProfile() { if (conversationProfileBuilder_ == null) { @@ -854,73 +735,55 @@ public Builder clearConversationProfile() { return this; } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.ConversationProfile.Builder - getConversationProfileBuilder() { - + public com.google.cloud.dialogflow.v2.ConversationProfile.Builder getConversationProfileBuilder() { + onChanged(); return getConversationProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder - getConversationProfileOrBuilder() { + public com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder getConversationProfileOrBuilder() { if (conversationProfileBuilder_ != null) { return conversationProfileBuilder_.getMessageOrBuilder(); } else { - return conversationProfile_ == null - ? com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() - : conversationProfile_; + return conversationProfile_ == null ? + com.google.cloud.dialogflow.v2.ConversationProfile.getDefaultInstance() : conversationProfile_; } } /** - * - * *
      * Required. The conversation profile to create.
      * 
* - * - * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ConversationProfile, - com.google.cloud.dialogflow.v2.ConversationProfile.Builder, - com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> + com.google.cloud.dialogflow.v2.ConversationProfile, com.google.cloud.dialogflow.v2.ConversationProfile.Builder, com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder> getConversationProfileFieldBuilder() { if (conversationProfileBuilder_ == null) { - conversationProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.ConversationProfile, - com.google.cloud.dialogflow.v2.ConversationProfile.Builder, - com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder>( - getConversationProfile(), getParentForChildren(), isClean()); + conversationProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.ConversationProfile, com.google.cloud.dialogflow.v2.ConversationProfile.Builder, com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder>( + getConversationProfile(), + getParentForChildren(), + isClean()); conversationProfile_ = null; } return conversationProfileBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -930,32 +793,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateConversationProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateConversationProfileRequest) - private static final com.google.cloud.dialogflow.v2.CreateConversationProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.CreateConversationProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateConversationProfileRequest(); } - public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.CreateConversationProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConversationProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConversationProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversationProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConversationProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,8 +828,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.dialogflow.v2.CreateConversationProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.CreateConversationProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequestOrBuilder.java new file mode 100644 index 000000000..d72a53998 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationProfileRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation_profile.proto + +package com.google.cloud.dialogflow.v2; + +public interface CreateConversationProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateConversationProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project to create a conversation profile for.
+   * Format: `projects/<Project ID>/locations/<Location ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project to create a conversation profile for.
+   * Format: `projects/<Project ID>/locations/<Location ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The conversation profile to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the conversationProfile field is set. + */ + boolean hasConversationProfile(); + /** + *
+   * Required. The conversation profile to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The conversationProfile. + */ + com.google.cloud.dialogflow.v2.ConversationProfile getConversationProfile(); + /** + *
+   * Required. The conversation profile to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dialogflow.v2.ConversationProfileOrBuilder getConversationProfileOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequest.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequest.java index eb0288997..4a04f3927 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateConversationRequest} */ -public final class CreateConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateConversationRequest) CreateConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConversationRequest.newBuilder() to construct. private CreateConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConversationRequest() { parent_ = ""; conversationId_ = ""; @@ -44,15 +26,16 @@ private CreateConversationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConversationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateConversationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,84 +54,72 @@ private CreateConversationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.Conversation.Builder subBuilder = null; + if (conversation_ != null) { + subBuilder = conversation_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.Conversation.Builder subBuilder = null; - if (conversation_ != null) { - subBuilder = conversation_.toBuilder(); - } - conversation_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Conversation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(conversation_); - conversation_ = subBuilder.buildPartial(); - } - - break; + conversation_ = input.readMessage(com.google.cloud.dialogflow.v2.Conversation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conversation_); + conversation_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - conversationId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + conversationId_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateConversationRequest.class, - com.google.cloud.dialogflow.v2.CreateConversationRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateConversationRequest.class, com.google.cloud.dialogflow.v2.CreateConversationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource identifier of the project creating the conversation.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,32 +128,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource identifier of the project creating the conversation.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,16 +162,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONVERSATION_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.Conversation conversation_; /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ @java.lang.Override @@ -210,34 +174,23 @@ public boolean hasConversation() { return conversation_ != null; } /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Conversation getConversation() { - return conversation_ == null - ? com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance() : conversation_; } /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.ConversationOrBuilder getConversationOrBuilder() { @@ -247,8 +200,6 @@ public com.google.cloud.dialogflow.v2.ConversationOrBuilder getConversationOrBui public static final int CONVERSATION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object conversationId_; /** - * - * *
    * Optional. Identifier of the conversation. Generally it's auto generated by Google.
    * Only set it if you cannot wait for the response to return a
@@ -262,7 +213,6 @@ public com.google.cloud.dialogflow.v2.ConversationOrBuilder getConversationOrBui
    * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The conversationId. */ @java.lang.Override @@ -271,15 +221,14 @@ public java.lang.String getConversationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversationId_ = s; return s; } } /** - * - * *
    * Optional. Identifier of the conversation. Generally it's auto generated by Google.
    * Only set it if you cannot wait for the response to return a
@@ -293,15 +242,16 @@ public java.lang.String getConversationId() {
    * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for conversationId. */ @java.lang.Override - public com.google.protobuf.ByteString getConversationIdBytes() { + public com.google.protobuf.ByteString + getConversationIdBytes() { java.lang.Object ref = conversationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversationId_ = b; return b; } else { @@ -310,7 +260,6 @@ public com.google.protobuf.ByteString getConversationIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -345,7 +295,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (conversation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConversation()); } if (!getConversationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, conversationId_); @@ -358,20 +309,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateConversationRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateConversationRequest other = - (com.google.cloud.dialogflow.v2.CreateConversationRequest) obj; + com.google.cloud.dialogflow.v2.CreateConversationRequest other = (com.google.cloud.dialogflow.v2.CreateConversationRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasConversation() != other.hasConversation()) return false; if (hasConversation()) { - if (!getConversation().equals(other.getConversation())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; } - if (!getConversationId().equals(other.getConversationId())) return false; + if (!getConversationId() + .equals(other.getConversationId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -397,127 +350,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateConversationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CreateConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateConversationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateConversationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateConversationRequest) com.google.cloud.dialogflow.v2.CreateConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateConversationRequest.class, - com.google.cloud.dialogflow.v2.CreateConversationRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateConversationRequest.class, com.google.cloud.dialogflow.v2.CreateConversationRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateConversationRequest.newBuilder() @@ -525,15 +468,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_CreateConversationRequest_descriptor; } @java.lang.Override @@ -572,8 +516,7 @@ public com.google.cloud.dialogflow.v2.CreateConversationRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateConversationRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateConversationRequest result = - new com.google.cloud.dialogflow.v2.CreateConversationRequest(this); + com.google.cloud.dialogflow.v2.CreateConversationRequest result = new com.google.cloud.dialogflow.v2.CreateConversationRequest(this); result.parent_ = parent_; if (conversationBuilder_ == null) { result.conversation_ = conversation_; @@ -589,39 +532,38 @@ public com.google.cloud.dialogflow.v2.CreateConversationRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateConversationRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateConversationRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -629,8 +571,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateConversationRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateConversationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -661,8 +602,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateConversationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateConversationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,23 +614,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource identifier of the project creating the conversation.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,24 +635,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource identifier of the project creating the conversation.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -724,70 +657,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource identifier of the project creating the conversation.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource identifier of the project creating the conversation.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource identifier of the project creating the conversation.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -795,58 +715,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.Conversation conversation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Conversation, - com.google.cloud.dialogflow.v2.Conversation.Builder, - com.google.cloud.dialogflow.v2.ConversationOrBuilder> - conversationBuilder_; + com.google.cloud.dialogflow.v2.Conversation, com.google.cloud.dialogflow.v2.Conversation.Builder, com.google.cloud.dialogflow.v2.ConversationOrBuilder> conversationBuilder_; /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ public boolean hasConversation() { return conversationBuilder_ != null || conversation_ != null; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ public com.google.cloud.dialogflow.v2.Conversation getConversation() { if (conversationBuilder_ == null) { - return conversation_ == null - ? com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance() : conversation_; } else { return conversationBuilder_.getMessage(); } } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation(com.google.cloud.dialogflow.v2.Conversation value) { if (conversationBuilder_ == null) { @@ -862,15 +763,11 @@ public Builder setConversation(com.google.cloud.dialogflow.v2.Conversation value return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConversation( com.google.cloud.dialogflow.v2.Conversation.Builder builderForValue) { @@ -884,23 +781,17 @@ public Builder setConversation( return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConversation(com.google.cloud.dialogflow.v2.Conversation value) { if (conversationBuilder_ == null) { if (conversation_ != null) { conversation_ = - com.google.cloud.dialogflow.v2.Conversation.newBuilder(conversation_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Conversation.newBuilder(conversation_).mergeFrom(value).buildPartial(); } else { conversation_ = value; } @@ -912,15 +803,11 @@ public Builder mergeConversation(com.google.cloud.dialogflow.v2.Conversation val return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConversation() { if (conversationBuilder_ == null) { @@ -934,64 +821,48 @@ public Builder clearConversation() { return this; } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Conversation.Builder getConversationBuilder() { - + onChanged(); return getConversationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { - return conversation_ == null - ? com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance() - : conversation_; + return conversation_ == null ? + com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance() : conversation_; } } /** - * - * *
      * Required. The conversation to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Conversation, - com.google.cloud.dialogflow.v2.Conversation.Builder, - com.google.cloud.dialogflow.v2.ConversationOrBuilder> + com.google.cloud.dialogflow.v2.Conversation, com.google.cloud.dialogflow.v2.Conversation.Builder, com.google.cloud.dialogflow.v2.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { - conversationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Conversation, - com.google.cloud.dialogflow.v2.Conversation.Builder, - com.google.cloud.dialogflow.v2.ConversationOrBuilder>( - getConversation(), getParentForChildren(), isClean()); + conversationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Conversation, com.google.cloud.dialogflow.v2.Conversation.Builder, com.google.cloud.dialogflow.v2.ConversationOrBuilder>( + getConversation(), + getParentForChildren(), + isClean()); conversation_ = null; } return conversationBuilder_; @@ -999,8 +870,6 @@ public com.google.cloud.dialogflow.v2.ConversationOrBuilder getConversationOrBui private java.lang.Object conversationId_ = ""; /** - * - * *
      * Optional. Identifier of the conversation. Generally it's auto generated by Google.
      * Only set it if you cannot wait for the response to return a
@@ -1014,13 +883,13 @@ public com.google.cloud.dialogflow.v2.ConversationOrBuilder getConversationOrBui
      * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The conversationId. */ public java.lang.String getConversationId() { java.lang.Object ref = conversationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversationId_ = s; return s; @@ -1029,8 +898,6 @@ public java.lang.String getConversationId() { } } /** - * - * *
      * Optional. Identifier of the conversation. Generally it's auto generated by Google.
      * Only set it if you cannot wait for the response to return a
@@ -1044,14 +911,15 @@ public java.lang.String getConversationId() {
      * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for conversationId. */ - public com.google.protobuf.ByteString getConversationIdBytes() { + public com.google.protobuf.ByteString + getConversationIdBytes() { java.lang.Object ref = conversationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversationId_ = b; return b; } else { @@ -1059,8 +927,6 @@ public com.google.protobuf.ByteString getConversationIdBytes() { } } /** - * - * *
      * Optional. Identifier of the conversation. Generally it's auto generated by Google.
      * Only set it if you cannot wait for the response to return a
@@ -1074,22 +940,20 @@ public com.google.protobuf.ByteString getConversationIdBytes() {
      * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The conversationId to set. * @return This builder for chaining. */ - public Builder setConversationId(java.lang.String value) { + public Builder setConversationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + conversationId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Identifier of the conversation. Generally it's auto generated by Google.
      * Only set it if you cannot wait for the response to return a
@@ -1103,18 +967,15 @@ public Builder setConversationId(java.lang.String value) {
      * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearConversationId() { - + conversationId_ = getDefaultInstance().getConversationId(); onChanged(); return this; } /** - * - * *
      * Optional. Identifier of the conversation. Generally it's auto generated by Google.
      * Only set it if you cannot wait for the response to return a
@@ -1128,23 +989,23 @@ public Builder clearConversationId() {
      * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for conversationId to set. * @return This builder for chaining. */ - public Builder setConversationIdBytes(com.google.protobuf.ByteString value) { + public Builder setConversationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1154,12 +1015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateConversationRequest) private static final com.google.cloud.dialogflow.v2.CreateConversationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateConversationRequest(); } @@ -1168,16 +1029,16 @@ public static com.google.cloud.dialogflow.v2.CreateConversationRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConversationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConversationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,4 +1053,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.CreateConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequestOrBuilder.java index 397294a20..a5d8e0be0 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateConversationRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation.proto package com.google.cloud.dialogflow.v2; -public interface CreateConversationRequestOrBuilder - extends +public interface CreateConversationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateConversationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource identifier of the project creating the conversation.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource identifier of the project creating the conversation.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the conversation field is set. */ boolean hasConversation(); /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The conversation. */ com.google.cloud.dialogflow.v2.Conversation getConversation(); /** - * - * *
    * Required. The conversation to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.ConversationOrBuilder getConversationOrBuilder(); /** - * - * *
    * Optional. Identifier of the conversation. Generally it's auto generated by Google.
    * Only set it if you cannot wait for the response to return a
@@ -111,13 +70,10 @@ public interface CreateConversationRequestOrBuilder
    * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The conversationId. */ java.lang.String getConversationId(); /** - * - * *
    * Optional. Identifier of the conversation. Generally it's auto generated by Google.
    * Only set it if you cannot wait for the response to return a
@@ -131,8 +87,8 @@ public interface CreateConversationRequestOrBuilder
    * 
* * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for conversationId. */ - com.google.protobuf.ByteString getConversationIdBytes(); + com.google.protobuf.ByteString + getConversationIdBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequest.java similarity index 62% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequest.java index 6c74943d7..d1138d4cd 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/document.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2.Documents.CreateDocument].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateDocumentRequest} */ -public final class CreateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateDocumentRequest) CreateDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDocumentRequest.newBuilder() to construct. private CreateDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDocumentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,78 +53,67 @@ private CreateDocumentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.Document.Builder subBuilder = null; + if (document_ != null) { + subBuilder = document_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.Document.Builder subBuilder = null; - if (document_ != null) { - subBuilder = document_.toBuilder(); - } - document_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Document.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - - break; + document_ = input.readMessage(com.google.cloud.dialogflow.v2.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(document_); + document_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateDocumentRequest.class, - com.google.cloud.dialogflow.v2.CreateDocumentRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateDocumentRequest.class, com.google.cloud.dialogflow.v2.CreateDocumentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The knowledge base to create a document for.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -150,33 +122,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The knowledge base to create a document for.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DOCUMENT_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.Document document_; /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ @java.lang.Override @@ -204,34 +169,23 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Document getDocument() { - return document_ == null - ? com.google.cloud.dialogflow.v2.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.dialogflow.v2.Document.getDefaultInstance() : document_; } /** - * - * *
    * Required. The document to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.DocumentOrBuilder getDocumentOrBuilder() { @@ -239,7 +193,6 @@ public com.google.cloud.dialogflow.v2.DocumentOrBuilder getDocumentOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -271,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDocument()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateDocumentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateDocumentRequest other = - (com.google.cloud.dialogflow.v2.CreateDocumentRequest) obj; + com.google.cloud.dialogflow.v2.CreateDocumentRequest other = (com.google.cloud.dialogflow.v2.CreateDocumentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,126 +273,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2.Documents.CreateDocument].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateDocumentRequest) com.google.cloud.dialogflow.v2.CreateDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateDocumentRequest.class, - com.google.cloud.dialogflow.v2.CreateDocumentRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateDocumentRequest.class, com.google.cloud.dialogflow.v2.CreateDocumentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateDocumentRequest.newBuilder() @@ -444,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor; } @java.lang.Override @@ -489,8 +437,7 @@ public com.google.cloud.dialogflow.v2.CreateDocumentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateDocumentRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateDocumentRequest result = - new com.google.cloud.dialogflow.v2.CreateDocumentRequest(this); + com.google.cloud.dialogflow.v2.CreateDocumentRequest result = new com.google.cloud.dialogflow.v2.CreateDocumentRequest(this); result.parent_ = parent_; if (documentBuilder_ == null) { result.document_ = document_; @@ -505,39 +452,38 @@ public com.google.cloud.dialogflow.v2.CreateDocumentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateDocumentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateDocumentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -545,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateDocumentRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateDocumentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -573,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -586,24 +530,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The knowledge base to create a document for.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -612,25 +552,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The knowledge base to create a document for.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -638,73 +575,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The knowledge base to create a document for.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The knowledge base to create a document for.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The knowledge base to create a document for.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -712,58 +636,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.Document document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Document, - com.google.cloud.dialogflow.v2.Document.Builder, - com.google.cloud.dialogflow.v2.DocumentOrBuilder> - documentBuilder_; + com.google.cloud.dialogflow.v2.Document, com.google.cloud.dialogflow.v2.Document.Builder, com.google.cloud.dialogflow.v2.DocumentOrBuilder> documentBuilder_; /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the document field is set. */ public boolean hasDocument() { return documentBuilder_ != null || document_ != null; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The document. */ public com.google.cloud.dialogflow.v2.Document getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.dialogflow.v2.Document.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.dialogflow.v2.Document.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDocument(com.google.cloud.dialogflow.v2.Document value) { if (documentBuilder_ == null) { @@ -779,17 +684,14 @@ public Builder setDocument(com.google.cloud.dialogflow.v2.Document value) { return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDocument(com.google.cloud.dialogflow.v2.Document.Builder builderForValue) { + public Builder setDocument( + com.google.cloud.dialogflow.v2.Document.Builder builderForValue) { if (documentBuilder_ == null) { document_ = builderForValue.build(); onChanged(); @@ -800,23 +702,17 @@ public Builder setDocument(com.google.cloud.dialogflow.v2.Document.Builder build return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDocument(com.google.cloud.dialogflow.v2.Document value) { if (documentBuilder_ == null) { if (document_ != null) { document_ = - com.google.cloud.dialogflow.v2.Document.newBuilder(document_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Document.newBuilder(document_).mergeFrom(value).buildPartial(); } else { document_ = value; } @@ -828,15 +724,11 @@ public Builder mergeDocument(com.google.cloud.dialogflow.v2.Document value) { return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDocument() { if (documentBuilder_ == null) { @@ -850,71 +742,55 @@ public Builder clearDocument() { return this; } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Document.Builder getDocumentBuilder() { - + onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.DocumentOrBuilder getDocumentOrBuilder() { if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.dialogflow.v2.Document.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.dialogflow.v2.Document.getDefaultInstance() : document_; } } /** - * - * *
      * Required. The document to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Document, - com.google.cloud.dialogflow.v2.Document.Builder, - com.google.cloud.dialogflow.v2.DocumentOrBuilder> + com.google.cloud.dialogflow.v2.Document, com.google.cloud.dialogflow.v2.Document.Builder, com.google.cloud.dialogflow.v2.DocumentOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Document, - com.google.cloud.dialogflow.v2.Document.Builder, - com.google.cloud.dialogflow.v2.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Document, com.google.cloud.dialogflow.v2.Document.Builder, com.google.cloud.dialogflow.v2.DocumentOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -924,12 +800,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateDocumentRequest) private static final com.google.cloud.dialogflow.v2.CreateDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateDocumentRequest(); } @@ -938,16 +814,16 @@ public static com.google.cloud.dialogflow.v2.CreateDocumentRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDocumentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDocumentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,4 +838,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.CreateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequestOrBuilder.java new file mode 100644 index 000000000..774e3a217 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateDocumentRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/document.proto + +package com.google.cloud.dialogflow.v2; + +public interface CreateDocumentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The knowledge base to create a document for.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The knowledge base to create a document for.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The document to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the document field is set. + */ + boolean hasDocument(); + /** + *
+   * Required. The document to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The document. + */ + com.google.cloud.dialogflow.v2.Document getDocument(); + /** + *
+   * Required. The document to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dialogflow.v2.DocumentOrBuilder getDocumentOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java index 18683d47a..b62983791 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateEntityTypeRequest} */ -public final class CreateEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateEntityTypeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateEntityTypeRequest) CreateEntityTypeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateEntityTypeRequest.newBuilder() to construct. private CreateEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateEntityTypeRequest() { parent_ = ""; languageCode_ = ""; @@ -44,15 +26,16 @@ private CreateEntityTypeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateEntityTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateEntityTypeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,84 +54,72 @@ private CreateEntityTypeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.EntityType.Builder subBuilder = null; + if (entityType_ != null) { + subBuilder = entityType_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.EntityType.Builder subBuilder = null; - if (entityType_ != null) { - subBuilder = entityType_.toBuilder(); - } - entityType_ = - input.readMessage( - com.google.cloud.dialogflow.v2.EntityType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityType_); - entityType_ = subBuilder.buildPartial(); - } - - break; + entityType_ = input.readMessage(com.google.cloud.dialogflow.v2.EntityType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityType_); + entityType_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.class, com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The agent to create a entity type for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,32 +128,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The agent to create a entity type for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,16 +162,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENTITY_TYPE_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.EntityType entityType_; /** - * - * *
    * Required. The entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the entityType field is set. */ @java.lang.Override @@ -210,34 +174,23 @@ public boolean hasEntityType() { return entityType_ != null; } /** - * - * *
    * Required. The entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The entityType. */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType getEntityType() { - return entityType_ == null - ? com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance() - : entityType_; + return entityType_ == null ? com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance() : entityType_; } /** - * - * *
    * Required. The entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder() { @@ -247,8 +200,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -258,7 +209,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -267,15 +217,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -285,15 +234,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -302,7 +252,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -337,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (entityType_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntityType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEntityType()); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); @@ -350,20 +301,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateEntityTypeRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest other = - (com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) obj; + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest other = (com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasEntityType() != other.hasEntityType()) return false; if (hasEntityType()) { - if (!getEntityType().equals(other.getEntityType())) return false; + if (!getEntityType() + .equals(other.getEntityType())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,127 +342,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateEntityTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateEntityTypeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateEntityTypeRequest) com.google.cloud.dialogflow.v2.CreateEntityTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.class, com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.newBuilder() @@ -517,15 +460,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor; } @java.lang.Override @@ -564,8 +508,7 @@ public com.google.cloud.dialogflow.v2.CreateEntityTypeRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateEntityTypeRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateEntityTypeRequest result = - new com.google.cloud.dialogflow.v2.CreateEntityTypeRequest(this); + com.google.cloud.dialogflow.v2.CreateEntityTypeRequest result = new com.google.cloud.dialogflow.v2.CreateEntityTypeRequest(this); result.parent_ = parent_; if (entityTypeBuilder_ == null) { result.entityType_ = entityType_; @@ -581,39 +524,38 @@ public com.google.cloud.dialogflow.v2.CreateEntityTypeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateEntityTypeRequest)other); } else { super.mergeFrom(other); return this; @@ -621,8 +563,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateEntityTypeRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateEntityTypeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,8 +594,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateEntityTypeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,23 +606,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The agent to create a entity type for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -691,24 +627,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The agent to create a entity type for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -716,70 +649,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The agent to create a entity type for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The agent to create a entity type for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The agent to create a entity type for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -787,58 +707,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.EntityType entityType_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> - entityTypeBuilder_; + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> entityTypeBuilder_; /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the entityType field is set. */ public boolean hasEntityType() { return entityTypeBuilder_ != null || entityType_ != null; } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The entityType. */ public com.google.cloud.dialogflow.v2.EntityType getEntityType() { if (entityTypeBuilder_ == null) { - return entityType_ == null - ? com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance() - : entityType_; + return entityType_ == null ? com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance() : entityType_; } else { return entityTypeBuilder_.getMessage(); } } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEntityType(com.google.cloud.dialogflow.v2.EntityType value) { if (entityTypeBuilder_ == null) { @@ -854,15 +755,11 @@ public Builder setEntityType(com.google.cloud.dialogflow.v2.EntityType value) { return this; } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEntityType( com.google.cloud.dialogflow.v2.EntityType.Builder builderForValue) { @@ -876,23 +773,17 @@ public Builder setEntityType( return this; } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEntityType(com.google.cloud.dialogflow.v2.EntityType value) { if (entityTypeBuilder_ == null) { if (entityType_ != null) { entityType_ = - com.google.cloud.dialogflow.v2.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.EntityType.newBuilder(entityType_).mergeFrom(value).buildPartial(); } else { entityType_ = value; } @@ -904,15 +795,11 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.v2.EntityType value) return this; } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEntityType() { if (entityTypeBuilder_ == null) { @@ -926,64 +813,48 @@ public Builder clearEntityType() { return this; } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityType.Builder getEntityTypeBuilder() { - + onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder() { if (entityTypeBuilder_ != null) { return entityTypeBuilder_.getMessageOrBuilder(); } else { - return entityType_ == null - ? com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance() - : entityType_; + return entityType_ == null ? + com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance() : entityType_; } } /** - * - * *
      * Required. The entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> getEntityTypeFieldBuilder() { if (entityTypeBuilder_ == null) { - entityTypeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder>( - getEntityType(), getParentForChildren(), isClean()); + entityTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder>( + getEntityType(), + getParentForChildren(), + isClean()); entityType_ = null; } return entityTypeBuilder_; @@ -991,8 +862,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1002,13 +871,13 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1017,8 +886,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1028,14 +895,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1043,8 +911,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1054,22 +920,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1079,18 +943,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1100,23 +961,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1126,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateEntityTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateEntityTypeRequest) private static final com.google.cloud.dialogflow.v2.CreateEntityTypeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateEntityTypeRequest(); } @@ -1140,16 +1001,16 @@ public static com.google.cloud.dialogflow.v2.CreateEntityTypeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEntityTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateEntityTypeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateEntityTypeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1164,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.CreateEntityTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java index c1f3bd2be..3b99f1510 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEntityTypeRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface CreateEntityTypeRequestOrBuilder - extends +public interface CreateEntityTypeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateEntityTypeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The agent to create a entity type for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The agent to create a entity type for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the entityType field is set. */ boolean hasEntityType(); /** - * - * *
    * Required. The entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The entityType. */ com.google.cloud.dialogflow.v2.EntityType getEntityType(); /** - * - * *
    * Required. The entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypeOrBuilder(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -107,13 +66,10 @@ public interface CreateEntityTypeRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -123,8 +79,8 @@ public interface CreateEntityTypeRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequest.java similarity index 64% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequest.java index 06ed6aac8..d73bb3f51 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.v2.Environments.CreateEnvironment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateEnvironmentRequest} */ -public final class CreateEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateEnvironmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateEnvironmentRequest) CreateEnvironmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateEnvironmentRequest.newBuilder() to construct. private CreateEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateEnvironmentRequest() { parent_ = ""; environmentId_ = ""; @@ -44,15 +26,16 @@ private CreateEnvironmentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateEnvironmentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,75 +54,66 @@ private CreateEnvironmentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.Environment.Builder subBuilder = null; + if (environment_ != null) { + subBuilder = environment_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.Environment.Builder subBuilder = null; - if (environment_ != null) { - subBuilder = environment_.toBuilder(); - } - environment_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Environment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(environment_); - environment_ = subBuilder.buildPartial(); - } - - break; + environment_ = input.readMessage(com.google.cloud.dialogflow.v2.Environment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(environment_); + environment_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - environmentId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + environmentId_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.class, - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.class, com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The agent to create an environment for.
    * Supported formats:
@@ -147,10 +121,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * - `projects/<Project ID>/locations/<Location ID>/agent`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,15 +130,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The agent to create an environment for.
    * Supported formats:
@@ -175,18 +145,17 @@ public java.lang.String getParent() {
    * - `projects/<Project ID>/locations/<Location ID>/agent`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,16 +166,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENVIRONMENT_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.Environment environment_; /** - * - * *
    * Required. The environment to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the environment field is set. */ @java.lang.Override @@ -214,34 +178,23 @@ public boolean hasEnvironment() { return environment_ != null; } /** - * - * *
    * Required. The environment to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The environment. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Environment getEnvironment() { - return environment_ == null - ? com.google.cloud.dialogflow.v2.Environment.getDefaultInstance() - : environment_; + return environment_ == null ? com.google.cloud.dialogflow.v2.Environment.getDefaultInstance() : environment_; } /** - * - * *
    * Required. The environment to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentOrBuilder getEnvironmentOrBuilder() { @@ -251,14 +204,11 @@ public com.google.cloud.dialogflow.v2.EnvironmentOrBuilder getEnvironmentOrBuild public static final int ENVIRONMENT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object environmentId_; /** - * - * *
    * Required. The unique id of the new environment.
    * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The environmentId. */ @java.lang.Override @@ -267,29 +217,29 @@ public java.lang.String getEnvironmentId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentId_ = s; return s; } } /** - * - * *
    * Required. The unique id of the new environment.
    * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for environmentId. */ @java.lang.Override - public com.google.protobuf.ByteString getEnvironmentIdBytes() { + public com.google.protobuf.ByteString + getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); environmentId_ = b; return b; } else { @@ -298,7 +248,6 @@ public com.google.protobuf.ByteString getEnvironmentIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -333,7 +283,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (environment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEnvironment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEnvironment()); } if (!getEnvironmentIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, environmentId_); @@ -346,20 +297,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest other = - (com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) obj; + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest other = (com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasEnvironment() != other.hasEnvironment()) return false; if (hasEnvironment()) { - if (!getEnvironment().equals(other.getEnvironment())) return false; + if (!getEnvironment() + .equals(other.getEnvironment())) return false; } - if (!getEnvironmentId().equals(other.getEnvironmentId())) return false; + if (!getEnvironmentId() + .equals(other.getEnvironmentId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,127 +338,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateEnvironmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.v2.Environments.CreateEnvironment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateEnvironmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateEnvironmentRequest) com.google.cloud.dialogflow.v2.CreateEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.class, - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.class, com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.newBuilder() @@ -513,15 +456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor; } @java.lang.Override @@ -560,8 +504,7 @@ public com.google.cloud.dialogflow.v2.CreateEnvironmentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateEnvironmentRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateEnvironmentRequest result = - new com.google.cloud.dialogflow.v2.CreateEnvironmentRequest(this); + com.google.cloud.dialogflow.v2.CreateEnvironmentRequest result = new com.google.cloud.dialogflow.v2.CreateEnvironmentRequest(this); result.parent_ = parent_; if (environmentBuilder_ == null) { result.environment_ = environment_; @@ -577,39 +520,38 @@ public com.google.cloud.dialogflow.v2.CreateEnvironmentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateEnvironmentRequest)other); } else { super.mergeFrom(other); return this; @@ -617,8 +559,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateEnvironmentRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateEnvironmentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -649,8 +590,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -662,8 +602,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The agent to create an environment for.
      * Supported formats:
@@ -671,16 +609,14 @@ public Builder mergeFrom(
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -689,8 +625,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The agent to create an environment for.
      * Supported formats:
@@ -698,17 +632,16 @@ public java.lang.String getParent() {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -716,8 +649,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The agent to create an environment for.
      * Supported formats:
@@ -725,25 +656,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The agent to create an environment for.
      * Supported formats:
@@ -751,21 +678,16 @@ public Builder setParent(java.lang.String value) {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The agent to create an environment for.
      * Supported formats:
@@ -773,19 +695,17 @@ public Builder clearParent() {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -793,58 +713,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.Environment environment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Environment, - com.google.cloud.dialogflow.v2.Environment.Builder, - com.google.cloud.dialogflow.v2.EnvironmentOrBuilder> - environmentBuilder_; + com.google.cloud.dialogflow.v2.Environment, com.google.cloud.dialogflow.v2.Environment.Builder, com.google.cloud.dialogflow.v2.EnvironmentOrBuilder> environmentBuilder_; /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the environment field is set. */ public boolean hasEnvironment() { return environmentBuilder_ != null || environment_ != null; } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The environment. */ public com.google.cloud.dialogflow.v2.Environment getEnvironment() { if (environmentBuilder_ == null) { - return environment_ == null - ? com.google.cloud.dialogflow.v2.Environment.getDefaultInstance() - : environment_; + return environment_ == null ? com.google.cloud.dialogflow.v2.Environment.getDefaultInstance() : environment_; } else { return environmentBuilder_.getMessage(); } } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEnvironment(com.google.cloud.dialogflow.v2.Environment value) { if (environmentBuilder_ == null) { @@ -860,15 +761,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.v2.Environment value) return this; } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEnvironment( com.google.cloud.dialogflow.v2.Environment.Builder builderForValue) { @@ -882,23 +779,17 @@ public Builder setEnvironment( return this; } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEnvironment(com.google.cloud.dialogflow.v2.Environment value) { if (environmentBuilder_ == null) { if (environment_ != null) { environment_ = - com.google.cloud.dialogflow.v2.Environment.newBuilder(environment_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Environment.newBuilder(environment_).mergeFrom(value).buildPartial(); } else { environment_ = value; } @@ -910,15 +801,11 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.v2.Environment value return this; } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEnvironment() { if (environmentBuilder_ == null) { @@ -932,64 +819,48 @@ public Builder clearEnvironment() { return this; } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Environment.Builder getEnvironmentBuilder() { - + onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.EnvironmentOrBuilder getEnvironmentOrBuilder() { if (environmentBuilder_ != null) { return environmentBuilder_.getMessageOrBuilder(); } else { - return environment_ == null - ? com.google.cloud.dialogflow.v2.Environment.getDefaultInstance() - : environment_; + return environment_ == null ? + com.google.cloud.dialogflow.v2.Environment.getDefaultInstance() : environment_; } } /** - * - * *
      * Required. The environment to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Environment, - com.google.cloud.dialogflow.v2.Environment.Builder, - com.google.cloud.dialogflow.v2.EnvironmentOrBuilder> + com.google.cloud.dialogflow.v2.Environment, com.google.cloud.dialogflow.v2.Environment.Builder, com.google.cloud.dialogflow.v2.EnvironmentOrBuilder> getEnvironmentFieldBuilder() { if (environmentBuilder_ == null) { - environmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Environment, - com.google.cloud.dialogflow.v2.Environment.Builder, - com.google.cloud.dialogflow.v2.EnvironmentOrBuilder>( - getEnvironment(), getParentForChildren(), isClean()); + environmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Environment, com.google.cloud.dialogflow.v2.Environment.Builder, com.google.cloud.dialogflow.v2.EnvironmentOrBuilder>( + getEnvironment(), + getParentForChildren(), + isClean()); environment_ = null; } return environmentBuilder_; @@ -997,20 +868,18 @@ public com.google.cloud.dialogflow.v2.EnvironmentOrBuilder getEnvironmentOrBuild private java.lang.Object environmentId_ = ""; /** - * - * *
      * Required. The unique id of the new environment.
      * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The environmentId. */ public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); environmentId_ = s; return s; @@ -1019,21 +888,20 @@ public java.lang.String getEnvironmentId() { } } /** - * - * *
      * Required. The unique id of the new environment.
      * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for environmentId. */ - public com.google.protobuf.ByteString getEnvironmentIdBytes() { + public com.google.protobuf.ByteString + getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); environmentId_ = b; return b; } else { @@ -1041,68 +909,61 @@ public com.google.protobuf.ByteString getEnvironmentIdBytes() { } } /** - * - * *
      * Required. The unique id of the new environment.
      * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The environmentId to set. * @return This builder for chaining. */ - public Builder setEnvironmentId(java.lang.String value) { + public Builder setEnvironmentId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + environmentId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The unique id of the new environment.
      * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEnvironmentId() { - + environmentId_ = getDefaultInstance().getEnvironmentId(); onChanged(); return this; } /** - * - * *
      * Required. The unique id of the new environment.
      * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for environmentId to set. * @return This builder for chaining. */ - public Builder setEnvironmentIdBytes(com.google.protobuf.ByteString value) { + public Builder setEnvironmentIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,12 +973,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateEnvironmentRequest) private static final com.google.cloud.dialogflow.v2.CreateEnvironmentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateEnvironmentRequest(); } @@ -1126,16 +987,16 @@ public static com.google.cloud.dialogflow.v2.CreateEnvironmentRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateEnvironmentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateEnvironmentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,4 +1011,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.CreateEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequestOrBuilder.java index e8211a3f2..352aed5cf 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateEnvironmentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; -public interface CreateEnvironmentRequestOrBuilder - extends +public interface CreateEnvironmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The agent to create an environment for.
    * Supported formats:
@@ -33,16 +15,11 @@ public interface CreateEnvironmentRequestOrBuilder
    * - `projects/<Project ID>/locations/<Location ID>/agent`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The agent to create an environment for.
    * Supported formats:
@@ -50,77 +27,56 @@ public interface CreateEnvironmentRequestOrBuilder
    * - `projects/<Project ID>/locations/<Location ID>/agent`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The environment to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the environment field is set. */ boolean hasEnvironment(); /** - * - * *
    * Required. The environment to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The environment. */ com.google.cloud.dialogflow.v2.Environment getEnvironment(); /** - * - * *
    * Required. The environment to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Environment environment = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.EnvironmentOrBuilder getEnvironmentOrBuilder(); /** - * - * *
    * Required. The unique id of the new environment.
    * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The environmentId. */ java.lang.String getEnvironmentId(); /** - * - * *
    * Required. The unique id of the new environment.
    * 
* * string environment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for environmentId. */ - com.google.protobuf.ByteString getEnvironmentIdBytes(); + com.google.protobuf.ByteString + getEnvironmentIdBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java index 2379a35e0..dfb87f49c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateIntentRequest} */ -public final class CreateIntentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateIntentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateIntentRequest) CreateIntentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateIntentRequest.newBuilder() to construct. private CreateIntentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateIntentRequest() { parent_ = ""; languageCode_ = ""; @@ -45,15 +27,16 @@ private CreateIntentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateIntentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateIntentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,91 +55,78 @@ private CreateIntentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.Intent.Builder subBuilder = null; + if (intent_ != null) { + subBuilder = intent_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.Intent.Builder subBuilder = null; - if (intent_ != null) { - subBuilder = intent_.toBuilder(); - } - intent_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Intent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(intent_); - intent_ = subBuilder.buildPartial(); - } - - break; + intent_ = input.readMessage(com.google.cloud.dialogflow.v2.Intent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(intent_); + intent_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - intentView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + intentView_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateIntentRequest.class, - com.google.cloud.dialogflow.v2.CreateIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateIntentRequest.class, com.google.cloud.dialogflow.v2.CreateIntentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The agent to create a intent for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -165,32 +135,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The agent to create a intent for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -201,15 +169,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INTENT_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.Intent intent_; /** - * - * *
    * Required. The intent to create.
    * 
* - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the intent field is set. */ @java.lang.Override @@ -217,15 +181,11 @@ public boolean hasIntent() { return intent_ != null; } /** - * - * *
    * Required. The intent to create.
    * 
* - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The intent. */ @java.lang.Override @@ -233,14 +193,11 @@ public com.google.cloud.dialogflow.v2.Intent getIntent() { return intent_ == null ? com.google.cloud.dialogflow.v2.Intent.getDefaultInstance() : intent_; } /** - * - * *
    * Required. The intent to create.
    * 
* - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() { @@ -250,8 +207,6 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -261,7 +216,6 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -270,15 +224,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -288,15 +241,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -307,45 +261,31 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int INTENT_VIEW_FIELD_NUMBER = 4; private int intentView_; /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ - @java.lang.Override - public int getIntentViewValue() { + @java.lang.Override public int getIntentViewValue() { return intentView_; } /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.IntentView getIntentView() { + @java.lang.Override public com.google.cloud.dialogflow.v2.IntentView getIntentView() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.IntentView result = - com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.v2.IntentView result = com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); return result == null ? com.google.cloud.dialogflow.v2.IntentView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,7 +297,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -367,8 +308,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getLanguageCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_); } - if (intentView_ - != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { + if (intentView_ != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, intentView_); } unknownFields.writeTo(output); @@ -384,14 +324,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (intent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIntent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIntent()); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } - if (intentView_ - != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, intentView_); + if (intentView_ != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, intentView_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -401,20 +342,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateIntentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateIntentRequest other = - (com.google.cloud.dialogflow.v2.CreateIntentRequest) obj; + com.google.cloud.dialogflow.v2.CreateIntentRequest other = (com.google.cloud.dialogflow.v2.CreateIntentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasIntent() != other.hasIntent()) return false; if (hasIntent()) { - if (!getIntent().equals(other.getIntent())) return false; + if (!getIntent() + .equals(other.getIntent())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (intentView_ != other.intentView_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -443,126 +386,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateIntentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateIntentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateIntentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateIntentRequest) com.google.cloud.dialogflow.v2.CreateIntentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateIntentRequest.class, - com.google.cloud.dialogflow.v2.CreateIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateIntentRequest.class, com.google.cloud.dialogflow.v2.CreateIntentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateIntentRequest.newBuilder() @@ -570,15 +504,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +533,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_CreateIntentRequest_descriptor; } @java.lang.Override @@ -619,8 +554,7 @@ public com.google.cloud.dialogflow.v2.CreateIntentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateIntentRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateIntentRequest result = - new com.google.cloud.dialogflow.v2.CreateIntentRequest(this); + com.google.cloud.dialogflow.v2.CreateIntentRequest result = new com.google.cloud.dialogflow.v2.CreateIntentRequest(this); result.parent_ = parent_; if (intentBuilder_ == null) { result.intent_ = intent_; @@ -637,39 +571,38 @@ public com.google.cloud.dialogflow.v2.CreateIntentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateIntentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateIntentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateIntentRequest)other); } else { super.mergeFrom(other); return this; @@ -677,8 +610,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateIntentRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateIntentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateIntentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -712,8 +644,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateIntentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateIntentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -725,23 +656,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The agent to create a intent for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -750,24 +677,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The agent to create a intent for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -775,70 +699,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The agent to create a intent for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The agent to create a intent for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The agent to create a intent for.
      * Format: `projects/<Project ID>/agent`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -846,58 +757,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.Intent intent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder> - intentBuilder_; + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder> intentBuilder_; /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the intent field is set. */ public boolean hasIntent() { return intentBuilder_ != null || intent_ != null; } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The intent. */ public com.google.cloud.dialogflow.v2.Intent getIntent() { if (intentBuilder_ == null) { - return intent_ == null - ? com.google.cloud.dialogflow.v2.Intent.getDefaultInstance() - : intent_; + return intent_ == null ? com.google.cloud.dialogflow.v2.Intent.getDefaultInstance() : intent_; } else { return intentBuilder_.getMessage(); } } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setIntent(com.google.cloud.dialogflow.v2.Intent value) { if (intentBuilder_ == null) { @@ -913,17 +805,14 @@ public Builder setIntent(com.google.cloud.dialogflow.v2.Intent value) { return this; } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setIntent(com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { + public Builder setIntent( + com.google.cloud.dialogflow.v2.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); onChanged(); @@ -934,23 +823,17 @@ public Builder setIntent(com.google.cloud.dialogflow.v2.Intent.Builder builderFo return this; } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeIntent(com.google.cloud.dialogflow.v2.Intent value) { if (intentBuilder_ == null) { if (intent_ != null) { intent_ = - com.google.cloud.dialogflow.v2.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Intent.newBuilder(intent_).mergeFrom(value).buildPartial(); } else { intent_ = value; } @@ -962,15 +845,11 @@ public Builder mergeIntent(com.google.cloud.dialogflow.v2.Intent value) { return this; } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearIntent() { if (intentBuilder_ == null) { @@ -984,64 +863,48 @@ public Builder clearIntent() { return this; } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent.Builder getIntentBuilder() { - + onChanged(); return getIntentFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() { if (intentBuilder_ != null) { return intentBuilder_.getMessageOrBuilder(); } else { - return intent_ == null - ? com.google.cloud.dialogflow.v2.Intent.getDefaultInstance() - : intent_; + return intent_ == null ? + com.google.cloud.dialogflow.v2.Intent.getDefaultInstance() : intent_; } } /** - * - * *
      * Required. The intent to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder> + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder> getIntentFieldBuilder() { if (intentBuilder_ == null) { - intentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent, - com.google.cloud.dialogflow.v2.Intent.Builder, - com.google.cloud.dialogflow.v2.IntentOrBuilder>( - getIntent(), getParentForChildren(), isClean()); + intentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Intent, com.google.cloud.dialogflow.v2.Intent.Builder, com.google.cloud.dialogflow.v2.IntentOrBuilder>( + getIntent(), + getParentForChildren(), + isClean()); intent_ = null; } return intentBuilder_; @@ -1049,8 +912,6 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1060,13 +921,13 @@ public com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1075,8 +936,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1086,14 +945,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1101,8 +961,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1112,22 +970,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1137,18 +993,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -1158,16 +1011,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -1175,73 +1028,51 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private int intentView_ = 0; /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ - @java.lang.Override - public int getIntentViewValue() { + @java.lang.Override public int getIntentViewValue() { return intentView_; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for intentView to set. * @return This builder for chaining. */ public Builder setIntentViewValue(int value) { - + intentView_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ @java.lang.Override public com.google.cloud.dialogflow.v2.IntentView getIntentView() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.IntentView result = - com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.v2.IntentView result = com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); return result == null ? com.google.cloud.dialogflow.v2.IntentView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The intentView to set. * @return This builder for chaining. */ @@ -1249,33 +1080,28 @@ public Builder setIntentView(com.google.cloud.dialogflow.v2.IntentView value) { if (value == null) { throw new NullPointerException(); } - + intentView_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearIntentView() { - + intentView_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1285,12 +1111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateIntentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateIntentRequest) private static final com.google.cloud.dialogflow.v2.CreateIntentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateIntentRequest(); } @@ -1299,16 +1125,16 @@ public static com.google.cloud.dialogflow.v2.CreateIntentRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateIntentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateIntentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIntentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateIntentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1323,4 +1149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.CreateIntentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java index f57f8e34b..35923669b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateIntentRequestOrBuilder.java @@ -1,100 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface CreateIntentRequestOrBuilder - extends +public interface CreateIntentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateIntentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The agent to create a intent for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The agent to create a intent for.
    * Format: `projects/<Project ID>/agent`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The intent to create.
    * 
* - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the intent field is set. */ boolean hasIntent(); /** - * - * *
    * Required. The intent to create.
    * 
* - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The intent. */ com.google.cloud.dialogflow.v2.Intent getIntent(); /** - * - * *
    * Required. The intent to create.
    * 
* - * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.IntentOrBuilder getIntentOrBuilder(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -104,13 +66,10 @@ public interface CreateIntentRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -120,36 +79,26 @@ public interface CreateIntentRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ int getIntentViewValue(); /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ com.google.cloud.dialogflow.v2.IntentView getIntentView(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequest.java similarity index 62% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequest.java index e5135e0bb..e897d890d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/knowledge_base.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest} */ -public final class CreateKnowledgeBaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateKnowledgeBaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) CreateKnowledgeBaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateKnowledgeBaseRequest.newBuilder() to construct. private CreateKnowledgeBaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateKnowledgeBaseRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateKnowledgeBaseRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateKnowledgeBaseRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,77 +53,66 @@ private CreateKnowledgeBaseRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.KnowledgeBase.Builder subBuilder = null; + if (knowledgeBase_ != null) { + subBuilder = knowledgeBase_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.KnowledgeBase.Builder subBuilder = null; - if (knowledgeBase_ != null) { - subBuilder = knowledgeBase_.toBuilder(); - } - knowledgeBase_ = - input.readMessage( - com.google.cloud.dialogflow.v2.KnowledgeBase.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(knowledgeBase_); - knowledgeBase_ = subBuilder.buildPartial(); - } - - break; + knowledgeBase_ = input.readMessage(com.google.cloud.dialogflow.v2.KnowledgeBase.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(knowledgeBase_); + knowledgeBase_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.class, - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project to create a knowledge base for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,32 +121,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The project to create a knowledge base for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -185,16 +155,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int KNOWLEDGE_BASE_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.KnowledgeBase knowledgeBase_; /** - * - * *
    * Required. The knowledge base to create.
    * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the knowledgeBase field is set. */ @java.lang.Override @@ -202,34 +167,23 @@ public boolean hasKnowledgeBase() { return knowledgeBase_ != null; } /** - * - * *
    * Required. The knowledge base to create.
    * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The knowledgeBase. */ @java.lang.Override public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase() { - return knowledgeBase_ == null - ? com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance() - : knowledgeBase_; + return knowledgeBase_ == null ? com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance() : knowledgeBase_; } /** - * - * *
    * Required. The knowledge base to create.
    * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder() { @@ -237,7 +191,6 @@ public com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder getKnowledgeBaseOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,7 +223,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (knowledgeBase_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKnowledgeBase()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getKnowledgeBase()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,18 +234,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest other = - (com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) obj; + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest other = (com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasKnowledgeBase() != other.hasKnowledgeBase()) return false; if (hasKnowledgeBase()) { - if (!getKnowledgeBase().equals(other.getKnowledgeBase())) return false; + if (!getKnowledgeBase() + .equals(other.getKnowledgeBase())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -315,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.class, - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.newBuilder() @@ -443,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_CreateKnowledgeBaseRequest_descriptor; } @java.lang.Override @@ -488,8 +435,7 @@ public com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest result = - new com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest(this); + com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest result = new com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest(this); result.parent_ = parent_; if (knowledgeBaseBuilder_ == null) { result.knowledgeBase_ = knowledgeBase_; @@ -504,39 +450,38 @@ public com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest)other); } else { super.mergeFrom(other); return this; @@ -544,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -572,8 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,23 +528,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project to create a knowledge base for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -610,24 +549,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project to create a knowledge base for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -635,70 +571,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project to create a knowledge base for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project to create a knowledge base for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project to create a knowledge base for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -706,58 +629,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.KnowledgeBase knowledgeBase_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.KnowledgeBase, - com.google.cloud.dialogflow.v2.KnowledgeBase.Builder, - com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder> - knowledgeBaseBuilder_; + com.google.cloud.dialogflow.v2.KnowledgeBase, com.google.cloud.dialogflow.v2.KnowledgeBase.Builder, com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder> knowledgeBaseBuilder_; /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the knowledgeBase field is set. */ public boolean hasKnowledgeBase() { return knowledgeBaseBuilder_ != null || knowledgeBase_ != null; } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The knowledgeBase. */ public com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase() { if (knowledgeBaseBuilder_ == null) { - return knowledgeBase_ == null - ? com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance() - : knowledgeBase_; + return knowledgeBase_ == null ? com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance() : knowledgeBase_; } else { return knowledgeBaseBuilder_.getMessage(); } } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setKnowledgeBase(com.google.cloud.dialogflow.v2.KnowledgeBase value) { if (knowledgeBaseBuilder_ == null) { @@ -773,15 +677,11 @@ public Builder setKnowledgeBase(com.google.cloud.dialogflow.v2.KnowledgeBase val return this; } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setKnowledgeBase( com.google.cloud.dialogflow.v2.KnowledgeBase.Builder builderForValue) { @@ -795,23 +695,17 @@ public Builder setKnowledgeBase( return this; } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeKnowledgeBase(com.google.cloud.dialogflow.v2.KnowledgeBase value) { if (knowledgeBaseBuilder_ == null) { if (knowledgeBase_ != null) { knowledgeBase_ = - com.google.cloud.dialogflow.v2.KnowledgeBase.newBuilder(knowledgeBase_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.KnowledgeBase.newBuilder(knowledgeBase_).mergeFrom(value).buildPartial(); } else { knowledgeBase_ = value; } @@ -823,15 +717,11 @@ public Builder mergeKnowledgeBase(com.google.cloud.dialogflow.v2.KnowledgeBase v return this; } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearKnowledgeBase() { if (knowledgeBaseBuilder_ == null) { @@ -845,71 +735,55 @@ public Builder clearKnowledgeBase() { return this; } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.KnowledgeBase.Builder getKnowledgeBaseBuilder() { - + onChanged(); return getKnowledgeBaseFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder() { if (knowledgeBaseBuilder_ != null) { return knowledgeBaseBuilder_.getMessageOrBuilder(); } else { - return knowledgeBase_ == null - ? com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance() - : knowledgeBase_; + return knowledgeBase_ == null ? + com.google.cloud.dialogflow.v2.KnowledgeBase.getDefaultInstance() : knowledgeBase_; } } /** - * - * *
      * Required. The knowledge base to create.
      * 
* - * - * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.KnowledgeBase, - com.google.cloud.dialogflow.v2.KnowledgeBase.Builder, - com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder> + com.google.cloud.dialogflow.v2.KnowledgeBase, com.google.cloud.dialogflow.v2.KnowledgeBase.Builder, com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder> getKnowledgeBaseFieldBuilder() { if (knowledgeBaseBuilder_ == null) { - knowledgeBaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.KnowledgeBase, - com.google.cloud.dialogflow.v2.KnowledgeBase.Builder, - com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder>( - getKnowledgeBase(), getParentForChildren(), isClean()); + knowledgeBaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.KnowledgeBase, com.google.cloud.dialogflow.v2.KnowledgeBase.Builder, com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder>( + getKnowledgeBase(), + getParentForChildren(), + isClean()); knowledgeBase_ = null; } return knowledgeBaseBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -919,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) private static final com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest(); } @@ -933,16 +807,16 @@ public static com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateKnowledgeBaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateKnowledgeBaseRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateKnowledgeBaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateKnowledgeBaseRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequestOrBuilder.java new file mode 100644 index 000000000..e278ac2ec --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateKnowledgeBaseRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/knowledge_base.proto + +package com.google.cloud.dialogflow.v2; + +public interface CreateKnowledgeBaseRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project to create a knowledge base for.
+   * Format: `projects/<Project ID>/locations/<Location ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project to create a knowledge base for.
+   * Format: `projects/<Project ID>/locations/<Location ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The knowledge base to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the knowledgeBase field is set. + */ + boolean hasKnowledgeBase(); + /** + *
+   * Required. The knowledge base to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The knowledgeBase. + */ + com.google.cloud.dialogflow.v2.KnowledgeBase getKnowledgeBase(); + /** + *
+   * Required. The knowledge base to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dialogflow.v2.KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java similarity index 63% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java index b8fe85282..55394cb1f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateParticipantRequest} */ -public final class CreateParticipantRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateParticipantRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateParticipantRequest) CreateParticipantRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateParticipantRequest.newBuilder() to construct. private CreateParticipantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateParticipantRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateParticipantRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateParticipantRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,78 +53,67 @@ private CreateParticipantRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.Participant.Builder subBuilder = null; + if (participant_ != null) { + subBuilder = participant_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.Participant.Builder subBuilder = null; - if (participant_ != null) { - subBuilder = participant_.toBuilder(); - } - participant_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Participant.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(participant_); - participant_ = subBuilder.buildPartial(); - } - - break; + participant_ = input.readMessage(com.google.cloud.dialogflow.v2.Participant.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(participant_); + participant_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateParticipantRequest.class, - com.google.cloud.dialogflow.v2.CreateParticipantRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateParticipantRequest.class, com.google.cloud.dialogflow.v2.CreateParticipantRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource identifier of the conversation adding the participant.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -150,33 +122,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource identifier of the conversation adding the participant.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversations/<Conversation ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PARTICIPANT_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.Participant participant_; /** - * - * *
    * Required. The participant to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the participant field is set. */ @java.lang.Override @@ -204,34 +169,23 @@ public boolean hasParticipant() { return participant_ != null; } /** - * - * *
    * Required. The participant to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The participant. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Participant getParticipant() { - return participant_ == null - ? com.google.cloud.dialogflow.v2.Participant.getDefaultInstance() - : participant_; + return participant_ == null ? com.google.cloud.dialogflow.v2.Participant.getDefaultInstance() : participant_; } /** - * - * *
    * Required. The participant to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.ParticipantOrBuilder getParticipantOrBuilder() { @@ -239,7 +193,6 @@ public com.google.cloud.dialogflow.v2.ParticipantOrBuilder getParticipantOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -271,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (participant_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParticipant()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParticipant()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateParticipantRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateParticipantRequest other = - (com.google.cloud.dialogflow.v2.CreateParticipantRequest) obj; + com.google.cloud.dialogflow.v2.CreateParticipantRequest other = (com.google.cloud.dialogflow.v2.CreateParticipantRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasParticipant() != other.hasParticipant()) return false; if (hasParticipant()) { - if (!getParticipant().equals(other.getParticipant())) return false; + if (!getParticipant() + .equals(other.getParticipant())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -317,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateParticipantRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CreateParticipantRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateParticipantRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateParticipantRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateParticipantRequest) com.google.cloud.dialogflow.v2.CreateParticipantRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateParticipantRequest.class, - com.google.cloud.dialogflow.v2.CreateParticipantRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateParticipantRequest.class, com.google.cloud.dialogflow.v2.CreateParticipantRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateParticipantRequest.newBuilder() @@ -445,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_CreateParticipantRequest_descriptor; } @java.lang.Override @@ -490,8 +437,7 @@ public com.google.cloud.dialogflow.v2.CreateParticipantRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateParticipantRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateParticipantRequest result = - new com.google.cloud.dialogflow.v2.CreateParticipantRequest(this); + com.google.cloud.dialogflow.v2.CreateParticipantRequest result = new com.google.cloud.dialogflow.v2.CreateParticipantRequest(this); result.parent_ = parent_; if (participantBuilder_ == null) { result.participant_ = participant_; @@ -506,39 +452,38 @@ public com.google.cloud.dialogflow.v2.CreateParticipantRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateParticipantRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateParticipantRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateParticipantRequest)other); } else { super.mergeFrom(other); return this; @@ -546,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateParticipantRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateParticipantRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateParticipantRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -574,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateParticipantRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateParticipantRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -587,24 +530,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource identifier of the conversation adding the participant.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -613,25 +552,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource identifier of the conversation adding the participant.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -639,73 +575,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource identifier of the conversation adding the participant.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource identifier of the conversation adding the participant.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource identifier of the conversation adding the participant.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversations/<Conversation ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,58 +636,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.Participant participant_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Participant, - com.google.cloud.dialogflow.v2.Participant.Builder, - com.google.cloud.dialogflow.v2.ParticipantOrBuilder> - participantBuilder_; + com.google.cloud.dialogflow.v2.Participant, com.google.cloud.dialogflow.v2.Participant.Builder, com.google.cloud.dialogflow.v2.ParticipantOrBuilder> participantBuilder_; /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the participant field is set. */ public boolean hasParticipant() { return participantBuilder_ != null || participant_ != null; } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The participant. */ public com.google.cloud.dialogflow.v2.Participant getParticipant() { if (participantBuilder_ == null) { - return participant_ == null - ? com.google.cloud.dialogflow.v2.Participant.getDefaultInstance() - : participant_; + return participant_ == null ? com.google.cloud.dialogflow.v2.Participant.getDefaultInstance() : participant_; } else { return participantBuilder_.getMessage(); } } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setParticipant(com.google.cloud.dialogflow.v2.Participant value) { if (participantBuilder_ == null) { @@ -780,15 +684,11 @@ public Builder setParticipant(com.google.cloud.dialogflow.v2.Participant value) return this; } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setParticipant( com.google.cloud.dialogflow.v2.Participant.Builder builderForValue) { @@ -802,23 +702,17 @@ public Builder setParticipant( return this; } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeParticipant(com.google.cloud.dialogflow.v2.Participant value) { if (participantBuilder_ == null) { if (participant_ != null) { participant_ = - com.google.cloud.dialogflow.v2.Participant.newBuilder(participant_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Participant.newBuilder(participant_).mergeFrom(value).buildPartial(); } else { participant_ = value; } @@ -830,15 +724,11 @@ public Builder mergeParticipant(com.google.cloud.dialogflow.v2.Participant value return this; } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearParticipant() { if (participantBuilder_ == null) { @@ -852,71 +742,55 @@ public Builder clearParticipant() { return this; } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Participant.Builder getParticipantBuilder() { - + onChanged(); return getParticipantFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.ParticipantOrBuilder getParticipantOrBuilder() { if (participantBuilder_ != null) { return participantBuilder_.getMessageOrBuilder(); } else { - return participant_ == null - ? com.google.cloud.dialogflow.v2.Participant.getDefaultInstance() - : participant_; + return participant_ == null ? + com.google.cloud.dialogflow.v2.Participant.getDefaultInstance() : participant_; } } /** - * - * *
      * Required. The participant to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Participant, - com.google.cloud.dialogflow.v2.Participant.Builder, - com.google.cloud.dialogflow.v2.ParticipantOrBuilder> + com.google.cloud.dialogflow.v2.Participant, com.google.cloud.dialogflow.v2.Participant.Builder, com.google.cloud.dialogflow.v2.ParticipantOrBuilder> getParticipantFieldBuilder() { if (participantBuilder_ == null) { - participantBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Participant, - com.google.cloud.dialogflow.v2.Participant.Builder, - com.google.cloud.dialogflow.v2.ParticipantOrBuilder>( - getParticipant(), getParentForChildren(), isClean()); + participantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Participant, com.google.cloud.dialogflow.v2.Participant.Builder, com.google.cloud.dialogflow.v2.ParticipantOrBuilder>( + getParticipant(), + getParentForChildren(), + isClean()); participant_ = null; } return participantBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -926,12 +800,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateParticipantRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateParticipantRequest) private static final com.google.cloud.dialogflow.v2.CreateParticipantRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateParticipantRequest(); } @@ -940,16 +814,16 @@ public static com.google.cloud.dialogflow.v2.CreateParticipantRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateParticipantRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateParticipantRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateParticipantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateParticipantRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,4 +838,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.CreateParticipantRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequestOrBuilder.java new file mode 100644 index 000000000..0223c09bd --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateParticipantRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/participant.proto + +package com.google.cloud.dialogflow.v2; + +public interface CreateParticipantRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateParticipantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource identifier of the conversation adding the participant.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversations/<Conversation ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Resource identifier of the conversation adding the participant.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversations/<Conversation ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The participant to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the participant field is set. + */ + boolean hasParticipant(); + /** + *
+   * Required. The participant to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The participant. + */ + com.google.cloud.dialogflow.v2.Participant getParticipant(); + /** + *
+   * Required. The participant to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Participant participant = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dialogflow.v2.ParticipantOrBuilder getParticipantOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java similarity index 64% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java index bc319fbc1..78939aec5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest} */ -public final class CreateSessionEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSessionEntityTypeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) CreateSessionEntityTypeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSessionEntityTypeRequest.newBuilder() to construct. - private CreateSessionEntityTypeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateSessionEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSessionEntityTypeRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSessionEntityTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSessionEntityTypeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +53,60 @@ private CreateSessionEntityTypeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.SessionEntityType.Builder subBuilder = null; + if (sessionEntityType_ != null) { + subBuilder = sessionEntityType_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.SessionEntityType.Builder subBuilder = null; - if (sessionEntityType_ != null) { - subBuilder = sessionEntityType_.toBuilder(); - } - sessionEntityType_ = - input.readMessage( - com.google.cloud.dialogflow.v2.SessionEntityType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sessionEntityType_); - sessionEntityType_ = subBuilder.buildPartial(); - } - - break; + sessionEntityType_ = input.readMessage(com.google.cloud.dialogflow.v2.SessionEntityType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sessionEntityType_); + sessionEntityType_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.class, com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The session to create a session entity type for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -142,10 +116,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -154,15 +125,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The session to create a session entity type for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -172,18 +142,17 @@ public java.lang.String getParent() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,16 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SESSION_ENTITY_TYPE_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.SessionEntityType sessionEntityType_; /** - * - * *
    * Required. The session entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sessionEntityType field is set. */ @java.lang.Override @@ -211,34 +175,23 @@ public boolean hasSessionEntityType() { return sessionEntityType_ != null; } /** - * - * *
    * Required. The session entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sessionEntityType. */ @java.lang.Override public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType() { - return sessionEntityType_ == null - ? com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance() - : sessionEntityType_; + return sessionEntityType_ == null ? com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance() : sessionEntityType_; } /** - * - * *
    * Required. The session entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder() { @@ -246,7 +199,6 @@ public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntit } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -278,7 +231,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sessionEntityType_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSessionEntityType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSessionEntityType()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -288,18 +242,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest other = - (com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) obj; + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest other = (com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSessionEntityType() != other.hasSessionEntityType()) return false; if (hasSessionEntityType()) { - if (!getSessionEntityType().equals(other.getSessionEntityType())) return false; + if (!getSessionEntityType() + .equals(other.getSessionEntityType())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -324,127 +279,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.class, com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.newBuilder() @@ -452,15 +397,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,14 +422,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_CreateSessionEntityTypeRequest_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.getDefaultInstance(); } @@ -498,8 +443,7 @@ public com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest result = - new com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest(this); + com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest result = new com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest(this); result.parent_ = parent_; if (sessionEntityTypeBuilder_ == null) { result.sessionEntityType_ = sessionEntityType_; @@ -514,39 +458,38 @@ public com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest)other); } else { super.mergeFrom(other); return this; @@ -554,9 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest other) { - if (other - == com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -583,9 +524,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -597,8 +536,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The session to create a session entity type for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -608,16 +545,14 @@ public Builder mergeFrom(
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -626,8 +561,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The session to create a session entity type for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -637,17 +570,16 @@ public java.lang.String getParent() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -655,8 +587,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The session to create a session entity type for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -666,25 +596,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The session to create a session entity type for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -694,21 +620,16 @@ public Builder setParent(java.lang.String value) {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The session to create a session entity type for.
      * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -718,19 +639,17 @@ public Builder clearParent() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -738,58 +657,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.SessionEntityType sessionEntityType_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SessionEntityType, - com.google.cloud.dialogflow.v2.SessionEntityType.Builder, - com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder> - sessionEntityTypeBuilder_; + com.google.cloud.dialogflow.v2.SessionEntityType, com.google.cloud.dialogflow.v2.SessionEntityType.Builder, com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder> sessionEntityTypeBuilder_; /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sessionEntityType field is set. */ public boolean hasSessionEntityType() { return sessionEntityTypeBuilder_ != null || sessionEntityType_ != null; } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sessionEntityType. */ public com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType() { if (sessionEntityTypeBuilder_ == null) { - return sessionEntityType_ == null - ? com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance() - : sessionEntityType_; + return sessionEntityType_ == null ? com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance() : sessionEntityType_; } else { return sessionEntityTypeBuilder_.getMessage(); } } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSessionEntityType(com.google.cloud.dialogflow.v2.SessionEntityType value) { if (sessionEntityTypeBuilder_ == null) { @@ -805,15 +705,11 @@ public Builder setSessionEntityType(com.google.cloud.dialogflow.v2.SessionEntity return this; } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSessionEntityType( com.google.cloud.dialogflow.v2.SessionEntityType.Builder builderForValue) { @@ -827,23 +723,17 @@ public Builder setSessionEntityType( return this; } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSessionEntityType(com.google.cloud.dialogflow.v2.SessionEntityType value) { if (sessionEntityTypeBuilder_ == null) { if (sessionEntityType_ != null) { sessionEntityType_ = - com.google.cloud.dialogflow.v2.SessionEntityType.newBuilder(sessionEntityType_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.SessionEntityType.newBuilder(sessionEntityType_).mergeFrom(value).buildPartial(); } else { sessionEntityType_ = value; } @@ -855,15 +745,11 @@ public Builder mergeSessionEntityType(com.google.cloud.dialogflow.v2.SessionEnti return this; } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSessionEntityType() { if (sessionEntityTypeBuilder_ == null) { @@ -877,72 +763,55 @@ public Builder clearSessionEntityType() { return this; } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.SessionEntityType.Builder getSessionEntityTypeBuilder() { - + onChanged(); return getSessionEntityTypeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder - getSessionEntityTypeOrBuilder() { + public com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder() { if (sessionEntityTypeBuilder_ != null) { return sessionEntityTypeBuilder_.getMessageOrBuilder(); } else { - return sessionEntityType_ == null - ? com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance() - : sessionEntityType_; + return sessionEntityType_ == null ? + com.google.cloud.dialogflow.v2.SessionEntityType.getDefaultInstance() : sessionEntityType_; } } /** - * - * *
      * Required. The session entity type to create.
      * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SessionEntityType, - com.google.cloud.dialogflow.v2.SessionEntityType.Builder, - com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder> + com.google.cloud.dialogflow.v2.SessionEntityType, com.google.cloud.dialogflow.v2.SessionEntityType.Builder, com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder> getSessionEntityTypeFieldBuilder() { if (sessionEntityTypeBuilder_ == null) { - sessionEntityTypeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SessionEntityType, - com.google.cloud.dialogflow.v2.SessionEntityType.Builder, - com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder>( - getSessionEntityType(), getParentForChildren(), isClean()); + sessionEntityTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.SessionEntityType, com.google.cloud.dialogflow.v2.SessionEntityType.Builder, com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder>( + getSessionEntityType(), + getParentForChildren(), + isClean()); sessionEntityType_ = null; } return sessionEntityTypeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,13 +821,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) - private static final com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest(); } @@ -967,16 +835,16 @@ public static com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSessionEntityTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSessionEntityTypeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSessionEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSessionEntityTypeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,4 +859,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java index bf17b33cb..db2023250 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateSessionEntityTypeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface CreateSessionEntityTypeRequestOrBuilder - extends +public interface CreateSessionEntityTypeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The session to create a session entity type for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -35,16 +17,11 @@ public interface CreateSessionEntityTypeRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The session to create a session entity type for.
    * Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
@@ -54,52 +31,36 @@ public interface CreateSessionEntityTypeRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The session entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sessionEntityType field is set. */ boolean hasSessionEntityType(); /** - * - * *
    * Required. The session entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sessionEntityType. */ com.google.cloud.dialogflow.v2.SessionEntityType getSessionEntityType(); /** - * - * *
    * Required. The session entity type to create.
    * 
* - * - * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequest.java similarity index 62% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequest.java index 092ae6f52..97dfebb36 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/version.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Versions.CreateVersion][google.cloud.dialogflow.v2.Versions.CreateVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateVersionRequest} */ -public final class CreateVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.CreateVersionRequest) CreateVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateVersionRequest.newBuilder() to construct. private CreateVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateVersionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,68 +53,60 @@ private CreateVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.Version.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.Version.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.dialogflow.v2.Version.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + version_ = input.readMessage(com.google.cloud.dialogflow.v2.Version.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateVersionRequest.class, - com.google.cloud.dialogflow.v2.CreateVersionRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateVersionRequest.class, com.google.cloud.dialogflow.v2.CreateVersionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The agent to create a version for.
    * Supported formats:
@@ -139,10 +114,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * - `projects/<Project ID>/locations/<Location ID>/agent`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -151,15 +123,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The agent to create a version for.
    * Supported formats:
@@ -167,18 +138,17 @@ public java.lang.String getParent() {
    * - `projects/<Project ID>/locations/<Location ID>/agent`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -189,16 +159,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int VERSION_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.Version version_; /** - * - * *
    * Required. The version to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the version field is set. */ @java.lang.Override @@ -206,34 +171,23 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * Required. The version to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The version. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Version getVersion() { - return version_ == null - ? com.google.cloud.dialogflow.v2.Version.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.dialogflow.v2.Version.getDefaultInstance() : version_; } /** - * - * *
    * Required. The version to create.
    * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.VersionOrBuilder getVersionOrBuilder() { @@ -241,7 +195,6 @@ public com.google.cloud.dialogflow.v2.VersionOrBuilder getVersionOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -273,7 +227,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVersion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,18 +238,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.CreateVersionRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.CreateVersionRequest other = - (com.google.cloud.dialogflow.v2.CreateVersionRequest) obj; + com.google.cloud.dialogflow.v2.CreateVersionRequest other = (com.google.cloud.dialogflow.v2.CreateVersionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -319,126 +275,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.CreateVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.CreateVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Versions.CreateVersion][google.cloud.dialogflow.v2.Versions.CreateVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.CreateVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.CreateVersionRequest) com.google.cloud.dialogflow.v2.CreateVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.CreateVersionRequest.class, - com.google.cloud.dialogflow.v2.CreateVersionRequest.Builder.class); + com.google.cloud.dialogflow.v2.CreateVersionRequest.class, com.google.cloud.dialogflow.v2.CreateVersionRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.CreateVersionRequest.newBuilder() @@ -446,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +418,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_CreateVersionRequest_descriptor; } @java.lang.Override @@ -491,8 +439,7 @@ public com.google.cloud.dialogflow.v2.CreateVersionRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.CreateVersionRequest buildPartial() { - com.google.cloud.dialogflow.v2.CreateVersionRequest result = - new com.google.cloud.dialogflow.v2.CreateVersionRequest(this); + com.google.cloud.dialogflow.v2.CreateVersionRequest result = new com.google.cloud.dialogflow.v2.CreateVersionRequest(this); result.parent_ = parent_; if (versionBuilder_ == null) { result.version_ = version_; @@ -507,39 +454,38 @@ public com.google.cloud.dialogflow.v2.CreateVersionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.CreateVersionRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.CreateVersionRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.CreateVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -547,8 +493,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.CreateVersionRequest other) { - if (other == com.google.cloud.dialogflow.v2.CreateVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.CreateVersionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -575,8 +520,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.CreateVersionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.CreateVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -588,8 +532,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The agent to create a version for.
      * Supported formats:
@@ -597,16 +539,14 @@ public Builder mergeFrom(
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,8 +555,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The agent to create a version for.
      * Supported formats:
@@ -624,17 +562,16 @@ public java.lang.String getParent() {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -642,8 +579,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The agent to create a version for.
      * Supported formats:
@@ -651,25 +586,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The agent to create a version for.
      * Supported formats:
@@ -677,21 +608,16 @@ public Builder setParent(java.lang.String value) {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The agent to create a version for.
      * Supported formats:
@@ -699,19 +625,17 @@ public Builder clearParent() {
      * - `projects/<Project ID>/locations/<Location ID>/agent`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -719,58 +643,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.Version version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Version, - com.google.cloud.dialogflow.v2.Version.Builder, - com.google.cloud.dialogflow.v2.VersionOrBuilder> - versionBuilder_; + com.google.cloud.dialogflow.v2.Version, com.google.cloud.dialogflow.v2.Version.Builder, com.google.cloud.dialogflow.v2.VersionOrBuilder> versionBuilder_; /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The version. */ public com.google.cloud.dialogflow.v2.Version getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.dialogflow.v2.Version.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.dialogflow.v2.Version.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVersion(com.google.cloud.dialogflow.v2.Version value) { if (versionBuilder_ == null) { @@ -786,17 +691,14 @@ public Builder setVersion(com.google.cloud.dialogflow.v2.Version value) { return this; } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setVersion(com.google.cloud.dialogflow.v2.Version.Builder builderForValue) { + public Builder setVersion( + com.google.cloud.dialogflow.v2.Version.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -807,23 +709,17 @@ public Builder setVersion(com.google.cloud.dialogflow.v2.Version.Builder builder return this; } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeVersion(com.google.cloud.dialogflow.v2.Version value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.dialogflow.v2.Version.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Version.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -835,15 +731,11 @@ public Builder mergeVersion(com.google.cloud.dialogflow.v2.Version value) { return this; } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -857,71 +749,55 @@ public Builder clearVersion() { return this; } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Version.Builder getVersionBuilder() { - + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.VersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.dialogflow.v2.Version.getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.dialogflow.v2.Version.getDefaultInstance() : version_; } } /** - * - * *
      * Required. The version to create.
      * 
* - * - * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Version, - com.google.cloud.dialogflow.v2.Version.Builder, - com.google.cloud.dialogflow.v2.VersionOrBuilder> + com.google.cloud.dialogflow.v2.Version, com.google.cloud.dialogflow.v2.Version.Builder, com.google.cloud.dialogflow.v2.VersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Version, - com.google.cloud.dialogflow.v2.Version.Builder, - com.google.cloud.dialogflow.v2.VersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Version, com.google.cloud.dialogflow.v2.Version.Builder, com.google.cloud.dialogflow.v2.VersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -931,12 +807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CreateVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.CreateVersionRequest) private static final com.google.cloud.dialogflow.v2.CreateVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.CreateVersionRequest(); } @@ -945,16 +821,16 @@ public static com.google.cloud.dialogflow.v2.CreateVersionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -969,4 +845,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.CreateVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequestOrBuilder.java new file mode 100644 index 000000000..837c7ad92 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CreateVersionRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/version.proto + +package com.google.cloud.dialogflow.v2; + +public interface CreateVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.CreateVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The agent to create a version for.
+   * Supported formats:
+   * - `projects/<Project ID>/agent`
+   * - `projects/<Project ID>/locations/<Location ID>/agent`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The agent to create a version for.
+   * Supported formats:
+   * - `projects/<Project ID>/agent`
+   * - `projects/<Project ID>/locations/<Location ID>/agent`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The version to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + *
+   * Required. The version to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The version. + */ + com.google.cloud.dialogflow.v2.Version getVersion(); + /** + *
+   * Required. The version to create.
+   * 
+ * + * .google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.dialogflow.v2.VersionOrBuilder getVersionOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java index acbf44f18..7c3e86f68 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteAgentRequest} */ -public final class DeleteAgentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAgentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteAgentRequest) DeleteAgentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAgentRequest.newBuilder() to construct. private DeleteAgentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAgentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAgentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAgentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteAgentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteAgentRequest.class, - com.google.cloud.dialogflow.v2.DeleteAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteAgentRequest.class, com.google.cloud.dialogflow.v2.DeleteAgentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project that the agent to delete is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 to delete is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteAgentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteAgentRequest other = - (com.google.cloud.dialogflow.v2.DeleteAgentRequest) obj; + com.google.cloud.dialogflow.v2.DeleteAgentRequest other = (com.google.cloud.dialogflow.v2.DeleteAgentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteAgentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteAgentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteAgentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteAgentRequest) com.google.cloud.dialogflow.v2.DeleteAgentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteAgentRequest.class, - com.google.cloud.dialogflow.v2.DeleteAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteAgentRequest.class, com.google.cloud.dialogflow.v2.DeleteAgentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteAgentRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_DeleteAgentRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.dialogflow.v2.DeleteAgentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteAgentRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteAgentRequest result = - new com.google.cloud.dialogflow.v2.DeleteAgentRequest(this); + com.google.cloud.dialogflow.v2.DeleteAgentRequest result = new com.google.cloud.dialogflow.v2.DeleteAgentRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.dialogflow.v2.DeleteAgentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteAgentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteAgentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteAgentRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteAgentRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteAgentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteAgentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -473,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteAgentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteAgentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project that the agent to delete is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -511,24 +468,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project that the agent to delete is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -536,77 +490,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project that the agent to delete is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to delete is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to delete is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -616,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteAgentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteAgentRequest) private static final com.google.cloud.dialogflow.v2.DeleteAgentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteAgentRequest(); } @@ -630,16 +571,16 @@ public static com.google.cloud.dialogflow.v2.DeleteAgentRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAgentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAgentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAgentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteAgentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java new file mode 100644 index 000000000..f5a13a33d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAgentRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/agent.proto + +package com.google.cloud.dialogflow.v2; + +public interface DeleteAgentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project that the agent to delete is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project that the agent to delete is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java index 14fc9fa85..09348c341 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteAllContextsRequest} */ -public final class DeleteAllContextsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAllContextsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteAllContextsRequest) DeleteAllContextsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAllContextsRequest.newBuilder() to construct. private DeleteAllContextsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAllContextsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAllContextsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAllContextsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private DeleteAllContextsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.class, - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.class, com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the session to delete all contexts from. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the session to delete all contexts from. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -155,18 +129,17 @@ public java.lang.String getParent() {
    * If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -175,7 +148,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -211,15 +184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteAllContextsRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest other = - (com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) obj; + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest other = (com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,127 +212,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteAllContextsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteAllContextsRequest) com.google.cloud.dialogflow.v2.DeleteAllContextsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.class, - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.class, com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.newBuilder() @@ -367,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteAllContextsRequest_descriptor; } @java.lang.Override @@ -406,8 +370,7 @@ public com.google.cloud.dialogflow.v2.DeleteAllContextsRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteAllContextsRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteAllContextsRequest result = - new com.google.cloud.dialogflow.v2.DeleteAllContextsRequest(this); + com.google.cloud.dialogflow.v2.DeleteAllContextsRequest result = new com.google.cloud.dialogflow.v2.DeleteAllContextsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -417,39 +380,38 @@ public com.google.cloud.dialogflow.v2.DeleteAllContextsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteAllContextsRequest)other); } else { super.mergeFrom(other); return this; @@ -457,8 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteAllContextsRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteAllContextsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -482,8 +443,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteAllContextsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the session to delete all contexts from. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -506,16 +464,14 @@ public Builder mergeFrom(
      * If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -524,8 +480,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the session to delete all contexts from. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -535,17 +489,16 @@ public java.lang.String getParent() {
      * If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -553,8 +506,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the session to delete all contexts from. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -564,25 +515,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the session to delete all contexts from. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -592,21 +539,16 @@ public Builder setParent(java.lang.String value) {
      * If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the session to delete all contexts from. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -616,26 +558,24 @@ public Builder clearParent() {
      * If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -645,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteAllContextsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteAllContextsRequest) private static final com.google.cloud.dialogflow.v2.DeleteAllContextsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteAllContextsRequest(); } @@ -659,16 +599,16 @@ public static com.google.cloud.dialogflow.v2.DeleteAllContextsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAllContextsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAllContextsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAllContextsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAllContextsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteAllContextsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java index 3889d7f79..fd28aa6a6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteAllContextsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface DeleteAllContextsRequestOrBuilder - extends +public interface DeleteAllContextsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteAllContextsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the session to delete all contexts from. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -35,16 +17,11 @@ public interface DeleteAllContextsRequestOrBuilder
    * If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the session to delete all contexts from. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
@@ -54,11 +31,9 @@ public interface DeleteAllContextsRequestOrBuilder
    * If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java index 54d92df38..90d0272a7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteContextRequest} */ -public final class DeleteContextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteContextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteContextRequest) DeleteContextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteContextRequest.newBuilder() to construct. private DeleteContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteContextRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteContextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteContextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private DeleteContextRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteContextRequest.class, - com.google.cloud.dialogflow.v2.DeleteContextRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteContextRequest.class, com.google.cloud.dialogflow.v2.DeleteContextRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the context to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the context to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -155,18 +129,17 @@ public java.lang.String getName() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,7 +148,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -211,15 +184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteContextRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteContextRequest other = - (com.google.cloud.dialogflow.v2.DeleteContextRequest) obj; + com.google.cloud.dialogflow.v2.DeleteContextRequest other = (com.google.cloud.dialogflow.v2.DeleteContextRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,126 +212,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteContextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteContextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteContextRequest) com.google.cloud.dialogflow.v2.DeleteContextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteContextRequest.class, - com.google.cloud.dialogflow.v2.DeleteContextRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteContextRequest.class, com.google.cloud.dialogflow.v2.DeleteContextRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteContextRequest.newBuilder() @@ -366,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_DeleteContextRequest_descriptor; } @java.lang.Override @@ -405,8 +370,7 @@ public com.google.cloud.dialogflow.v2.DeleteContextRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteContextRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteContextRequest result = - new com.google.cloud.dialogflow.v2.DeleteContextRequest(this); + com.google.cloud.dialogflow.v2.DeleteContextRequest result = new com.google.cloud.dialogflow.v2.DeleteContextRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,39 +380,38 @@ public com.google.cloud.dialogflow.v2.DeleteContextRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteContextRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteContextRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteContextRequest)other); } else { super.mergeFrom(other); return this; @@ -456,8 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteContextRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteContextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteContextRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -481,8 +443,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteContextRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteContextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the context to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -505,16 +464,14 @@ public Builder mergeFrom(
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,8 +480,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the context to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -534,17 +489,16 @@ public java.lang.String getName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -552,8 +506,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the context to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -563,25 +515,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the context to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -591,21 +539,16 @@ public Builder setName(java.lang.String value) {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the context to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -615,26 +558,24 @@ public Builder clearName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -644,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteContextRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteContextRequest) private static final com.google.cloud.dialogflow.v2.DeleteContextRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteContextRequest(); } @@ -658,16 +599,16 @@ public static com.google.cloud.dialogflow.v2.DeleteContextRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteContextRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteContextRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteContextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteContextRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteContextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java index ce0d5bea1..e83e235cb 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteContextRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface DeleteContextRequestOrBuilder - extends +public interface DeleteContextRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteContextRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the context to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -35,16 +17,11 @@ public interface DeleteContextRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the context to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -54,11 +31,9 @@ public interface DeleteContextRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequest.java similarity index 64% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequest.java index 2db89abed..283b55951 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [ConversationProfiles.DeleteConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile].
  * This operation fails if the conversation profile is still referenced from
@@ -29,32 +12,31 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.DeleteConversationProfileRequest}
  */
-public final class DeleteConversationProfileRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteConversationProfileRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteConversationProfileRequest)
     DeleteConversationProfileRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteConversationProfileRequest.newBuilder() to construct.
-  private DeleteConversationProfileRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private DeleteConversationProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteConversationProfileRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteConversationProfileRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeleteConversationProfileRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,62 +55,54 @@ private DeleteConversationProfileRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            name_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.ConversationProfileProto
-        .internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.ConversationProfileProto
-        .internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.class,
-            com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.Builder.class);
+            com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.class, com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The name of the conversation profile to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the conversation profile to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -172,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -208,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest other = - (com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) obj; + com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest other = (com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,104 +208,96 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [ConversationProfiles.DeleteConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile].
    * This operation fails if the conversation profile is still referenced from
@@ -342,23 +306,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.DeleteConversationProfileRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteConversationProfileRequest)
       com.google.cloud.dialogflow.v2.DeleteConversationProfileRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.ConversationProfileProto
-          .internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.ConversationProfileProto
-          .internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.class,
-              com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.Builder.class);
+              com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.class, com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.newBuilder()
@@ -366,15 +328,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -384,14 +347,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.ConversationProfileProto
-          .internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_DeleteConversationProfileRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest getDefaultInstanceForType() {
       return com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.getDefaultInstance();
     }
 
@@ -406,8 +368,7 @@ public com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest buildPartial() {
-      com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest result =
-          new com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest(this);
+      com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest result = new com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -417,50 +378,46 @@ public com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest other) {
-      if (other
-          == com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest other) {
+      if (other == com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -484,9 +441,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -498,24 +453,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the conversation profile to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -524,25 +475,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the conversation profile to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -550,80 +498,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the conversation profile to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the conversation profile to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the conversation profile to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,32 +568,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteConversationProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteConversationProfileRequest) - private static final com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest(); } - public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConversationProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConversationProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversationProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConversationProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -670,8 +603,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.DeleteConversationProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequestOrBuilder.java new file mode 100644 index 000000000..35791f54a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteConversationProfileRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation_profile.proto + +package com.google.cloud.dialogflow.v2; + +public interface DeleteConversationProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteConversationProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the conversation profile to delete.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversationProfiles/<Conversation Profile ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the conversation profile to delete.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversationProfiles/<Conversation Profile ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequest.java index 9fd7c3091..50e81a7dd 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/document.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2.Documents.DeleteDocument].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteDocumentRequest} */ -public final class DeleteDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteDocumentRequest) DeleteDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDocumentRequest.newBuilder() to construct. private DeleteDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDocumentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private DeleteDocumentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteDocumentRequest.class, - com.google.cloud.dialogflow.v2.DeleteDocumentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteDocumentRequest.class, com.google.cloud.dialogflow.v2.DeleteDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the document to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the document to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteDocumentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteDocumentRequest other = - (com.google.cloud.dialogflow.v2.DeleteDocumentRequest) obj; + com.google.cloud.dialogflow.v2.DeleteDocumentRequest other = (com.google.cloud.dialogflow.v2.DeleteDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2.Documents.DeleteDocument].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteDocumentRequest) com.google.cloud.dialogflow.v2.DeleteDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteDocumentRequest.class, - com.google.cloud.dialogflow.v2.DeleteDocumentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteDocumentRequest.class, com.google.cloud.dialogflow.v2.DeleteDocumentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteDocumentRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.dialogflow.v2.DeleteDocumentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteDocumentRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteDocumentRequest result = - new com.google.cloud.dialogflow.v2.DeleteDocumentRequest(this); + com.google.cloud.dialogflow.v2.DeleteDocumentRequest result = new com.google.cloud.dialogflow.v2.DeleteDocumentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.dialogflow.v2.DeleteDocumentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteDocumentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteDocumentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteDocumentRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteDocumentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -540,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the document to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the document to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteDocumentRequest) private static final com.google.cloud.dialogflow.v2.DeleteDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteDocumentRequest(); } @@ -637,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.DeleteDocumentRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDocumentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDocumentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequestOrBuilder.java new file mode 100644 index 000000000..d07e47e0a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteDocumentRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/document.proto + +package com.google.cloud.dialogflow.v2; + +public interface DeleteDocumentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the document to delete.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the document to delete.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java index 0238ab7ab..0b8a5a868 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteEntityTypeRequest} */ -public final class DeleteEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteEntityTypeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteEntityTypeRequest) DeleteEntityTypeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteEntityTypeRequest.newBuilder() to construct. private DeleteEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteEntityTypeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteEntityTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteEntityTypeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteEntityTypeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.class, com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the entity type to delete.
    * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the entity type to delete.
    * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest other = - (com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) obj; + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest other = (com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteEntityTypeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteEntityTypeRequest) com.google.cloud.dialogflow.v2.DeleteEntityTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.class, com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest result = - new com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest(this); + com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest result = new com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the entity type to delete.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the entity type to delete.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -537,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the entity type to delete.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to delete.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to delete.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteEntityTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteEntityTypeRequest) private static final com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest(); } @@ -631,16 +571,16 @@ public static com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEntityTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteEntityTypeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteEntityTypeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteEntityTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java new file mode 100644 index 000000000..7a9d36c3b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEntityTypeRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/entity_type.proto + +package com.google.cloud.dialogflow.v2; + +public interface DeleteEntityTypeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteEntityTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the entity type to delete.
+   * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the entity type to delete.
+   * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequest.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequest.java index fc5001321..5898b502e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.v2.Environments.DeleteEnvironment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteEnvironmentRequest} */ -public final class DeleteEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteEnvironmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteEnvironmentRequest) DeleteEnvironmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteEnvironmentRequest.newBuilder() to construct. private DeleteEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteEnvironmentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteEnvironmentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private DeleteEnvironmentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.class, - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.class, com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the environment to delete.
    * / Format:
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the environment to delete.
    * / Format:
@@ -155,18 +129,17 @@ public java.lang.String getName() {
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,7 +148,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -211,15 +184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest other = - (com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) obj; + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest other = (com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,127 +212,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.v2.Environments.DeleteEnvironment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteEnvironmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteEnvironmentRequest) com.google.cloud.dialogflow.v2.DeleteEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.class, - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.class, com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.newBuilder() @@ -367,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor; } @java.lang.Override @@ -406,8 +370,7 @@ public com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest result = - new com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest(this); + com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest result = new com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -417,39 +380,38 @@ public com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest)other); } else { super.mergeFrom(other); return this; @@ -457,8 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -482,8 +443,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the environment to delete.
      * / Format:
@@ -506,16 +464,14 @@ public Builder mergeFrom(
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -524,8 +480,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the environment to delete.
      * / Format:
@@ -535,17 +489,16 @@ public java.lang.String getName() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -553,8 +506,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the environment to delete.
      * / Format:
@@ -564,25 +515,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the environment to delete.
      * / Format:
@@ -592,21 +539,16 @@ public Builder setName(java.lang.String value) {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the environment to delete.
      * / Format:
@@ -616,26 +558,24 @@ public Builder clearName() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -645,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteEnvironmentRequest) private static final com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest(); } @@ -659,16 +599,16 @@ public static com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteEnvironmentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteEnvironmentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequestOrBuilder.java index d786174b7..8b8bc725d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteEnvironmentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; -public interface DeleteEnvironmentRequestOrBuilder - extends +public interface DeleteEnvironmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the environment to delete.
    * / Format:
@@ -35,16 +17,11 @@ public interface DeleteEnvironmentRequestOrBuilder
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the environment to delete.
    * / Format:
@@ -54,11 +31,9 @@ public interface DeleteEnvironmentRequestOrBuilder
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java index beda706ce..8d159d42a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteIntentRequest} */ -public final class DeleteIntentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteIntentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteIntentRequest) DeleteIntentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteIntentRequest.newBuilder() to construct. private DeleteIntentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteIntentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteIntentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteIntentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private DeleteIntentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteIntentRequest.class, - com.google.cloud.dialogflow.v2.DeleteIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteIntentRequest.class, com.google.cloud.dialogflow.v2.DeleteIntentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the intent to delete. If this intent has direct or
    * indirect followup intents, we also delete them.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the intent to delete. If this intent has direct or
    * indirect followup intents, we also delete them.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteIntentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteIntentRequest other = - (com.google.cloud.dialogflow.v2.DeleteIntentRequest) obj; + com.google.cloud.dialogflow.v2.DeleteIntentRequest other = (com.google.cloud.dialogflow.v2.DeleteIntentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteIntentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteIntentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteIntentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteIntentRequest) com.google.cloud.dialogflow.v2.DeleteIntentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteIntentRequest.class, - com.google.cloud.dialogflow.v2.DeleteIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteIntentRequest.class, com.google.cloud.dialogflow.v2.DeleteIntentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteIntentRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_DeleteIntentRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.dialogflow.v2.DeleteIntentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteIntentRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteIntentRequest result = - new com.google.cloud.dialogflow.v2.DeleteIntentRequest(this); + com.google.cloud.dialogflow.v2.DeleteIntentRequest result = new com.google.cloud.dialogflow.v2.DeleteIntentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.dialogflow.v2.DeleteIntentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteIntentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteIntentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteIntentRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteIntentRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteIntentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteIntentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteIntentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteIntentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the intent to delete. If this intent has direct or
      * indirect followup intents, we also delete them.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the intent to delete. If this intent has direct or
      * indirect followup intents, we also delete them.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -540,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the intent to delete. If this intent has direct or
      * indirect followup intents, we also delete them.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the intent to delete. If this intent has direct or
      * indirect followup intents, we also delete them.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the intent to delete. If this intent has direct or
      * indirect followup intents, we also delete them.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteIntentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteIntentRequest) private static final com.google.cloud.dialogflow.v2.DeleteIntentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteIntentRequest(); } @@ -637,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.DeleteIntentRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteIntentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteIntentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIntentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteIntentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteIntentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java new file mode 100644 index 000000000..60f56caef --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteIntentRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/intent.proto + +package com.google.cloud.dialogflow.v2; + +public interface DeleteIntentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteIntentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the intent to delete. If this intent has direct or
+   * indirect followup intents, we also delete them.
+   * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the intent to delete. If this intent has direct or
+   * indirect followup intents, we also delete them.
+   * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequest.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequest.java index d052f9502..df3eb8318 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/knowledge_base.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest} */ -public final class DeleteKnowledgeBaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteKnowledgeBaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) DeleteKnowledgeBaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteKnowledgeBaseRequest.newBuilder() to construct. private DeleteKnowledgeBaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteKnowledgeBaseRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteKnowledgeBaseRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteKnowledgeBaseRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,67 +53,59 @@ private DeleteKnowledgeBaseRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + case 16: { + + force_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.class, - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the knowledge base to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -139,33 +114,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the knowledge base to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -176,15 +149,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** - * - * *
    * Optional. Force deletes the knowledge base. When set to true, any documents
    * in the knowledge base are also deleted.
    * 
* * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -193,7 +163,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -225,7 +195,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -235,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest other = - (com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) obj; + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest other = (com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -259,134 +231,125 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.class, - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.newBuilder() @@ -394,15 +357,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_DeleteKnowledgeBaseRequest_descriptor; } @java.lang.Override @@ -435,8 +399,7 @@ public com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest result = - new com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest(this); + com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest result = new com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest(this); result.name_ = name_; result.force_ = force_; onBuilt(); @@ -447,39 +410,38 @@ public com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest)other); } else { super.mergeFrom(other); return this; @@ -487,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -515,8 +476,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,24 +488,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the knowledge base to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -554,25 +510,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the knowledge base to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -580,89 +533,73 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the knowledge base to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the knowledge base to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the knowledge base to delete.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. Force deletes the knowledge base. When set to true, any documents
      * in the knowledge base are also deleted.
      * 
* * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -670,45 +607,39 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. Force deletes the knowledge base. When set to true, any documents
      * in the knowledge base are also deleted.
      * 
* * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Force deletes the knowledge base. When set to true, any documents
      * in the knowledge base are also deleted.
      * 
* * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) private static final com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest(); } @@ -732,16 +663,16 @@ public static com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteKnowledgeBaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteKnowledgeBaseRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteKnowledgeBaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteKnowledgeBaseRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,4 +687,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequestOrBuilder.java index 0d3d914b3..d91c7304b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteKnowledgeBaseRequestOrBuilder.java @@ -1,71 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/knowledge_base.proto package com.google.cloud.dialogflow.v2; -public interface DeleteKnowledgeBaseRequestOrBuilder - extends +public interface DeleteKnowledgeBaseRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteKnowledgeBaseRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the knowledge base to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the knowledge base to delete.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Force deletes the knowledge base. When set to true, any documents
    * in the knowledge base are also deleted.
    * 
* * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java index f67499557..3048d47b8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest} */ -public final class DeleteSessionEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSessionEntityTypeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) DeleteSessionEntityTypeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSessionEntityTypeRequest.newBuilder() to construct. - private DeleteSessionEntityTypeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteSessionEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSessionEntityTypeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSessionEntityTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSessionEntityTypeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,52 +53,47 @@ private DeleteSessionEntityTypeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.class, com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the entity type to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -127,10 +104,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -139,15 +113,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the entity type to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -158,18 +131,17 @@ public java.lang.String getName() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +161,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -214,15 +186,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest other = - (com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) obj; + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest other = (com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -242,127 +214,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.class, com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.newBuilder() @@ -370,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,14 +351,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_DeleteSessionEntityTypeRequest_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.getDefaultInstance(); } @@ -410,8 +372,7 @@ public com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest result = - new com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest(this); + com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest result = new com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -421,39 +382,38 @@ public com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest)other); } else { super.mergeFrom(other); return this; @@ -461,9 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest other) { - if (other - == com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,9 +445,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -501,8 +457,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the entity type to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -513,16 +467,14 @@ public Builder mergeFrom(
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -531,8 +483,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the entity type to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -543,17 +493,16 @@ public java.lang.String getName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -561,8 +510,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the entity type to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -573,25 +520,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -602,21 +545,16 @@ public Builder setName(java.lang.String value) {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type to delete. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -627,26 +565,24 @@ public Builder clearName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -656,13 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) - private static final com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest(); } @@ -671,16 +606,16 @@ public static com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSessionEntityTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSessionEntityTypeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSessionEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSessionEntityTypeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,4 +630,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java index bbc24cb55..cc422d6ad 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteSessionEntityTypeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface DeleteSessionEntityTypeRequestOrBuilder - extends +public interface DeleteSessionEntityTypeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the entity type to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -36,16 +18,11 @@ public interface DeleteSessionEntityTypeRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the entity type to delete. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -56,11 +33,9 @@ public interface DeleteSessionEntityTypeRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequest.java index 31c6f2e76..fb3f58f65 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/version.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Versions.DeleteVersion][google.cloud.dialogflow.v2.Versions.DeleteVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteVersionRequest} */ -public final class DeleteVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DeleteVersionRequest) DeleteVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteVersionRequest.newBuilder() to construct. private DeleteVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private DeleteVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteVersionRequest.class, - com.google.cloud.dialogflow.v2.DeleteVersionRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteVersionRequest.class, com.google.cloud.dialogflow.v2.DeleteVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the version to delete.
    * Supported formats:
@@ -124,10 +102,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   ID>`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the version to delete.
    * Supported formats:
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    *   ID>`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DeleteVersionRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DeleteVersionRequest other = - (com.google.cloud.dialogflow.v2.DeleteVersionRequest) obj; + com.google.cloud.dialogflow.v2.DeleteVersionRequest other = (com.google.cloud.dialogflow.v2.DeleteVersionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,126 +210,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DeleteVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DeleteVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Versions.DeleteVersion][google.cloud.dialogflow.v2.Versions.DeleteVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DeleteVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DeleteVersionRequest) com.google.cloud.dialogflow.v2.DeleteVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DeleteVersionRequest.class, - com.google.cloud.dialogflow.v2.DeleteVersionRequest.Builder.class); + com.google.cloud.dialogflow.v2.DeleteVersionRequest.class, com.google.cloud.dialogflow.v2.DeleteVersionRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DeleteVersionRequest.newBuilder() @@ -364,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_DeleteVersionRequest_descriptor; } @java.lang.Override @@ -403,8 +368,7 @@ public com.google.cloud.dialogflow.v2.DeleteVersionRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DeleteVersionRequest buildPartial() { - com.google.cloud.dialogflow.v2.DeleteVersionRequest result = - new com.google.cloud.dialogflow.v2.DeleteVersionRequest(this); + com.google.cloud.dialogflow.v2.DeleteVersionRequest result = new com.google.cloud.dialogflow.v2.DeleteVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +378,38 @@ public com.google.cloud.dialogflow.v2.DeleteVersionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DeleteVersionRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DeleteVersionRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DeleteVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -454,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DeleteVersionRequest other) { - if (other == com.google.cloud.dialogflow.v2.DeleteVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DeleteVersionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DeleteVersionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DeleteVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the version to delete.
      * Supported formats:
@@ -502,16 +461,14 @@ public Builder mergeFrom(
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,8 +477,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the version to delete.
      * Supported formats:
@@ -530,17 +485,16 @@ public java.lang.String getName() {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -548,8 +502,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the version to delete.
      * Supported formats:
@@ -558,25 +510,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the version to delete.
      * Supported formats:
@@ -585,21 +533,16 @@ public Builder setName(java.lang.String value) {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the version to delete.
      * Supported formats:
@@ -608,26 +551,24 @@ public Builder clearName() {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -637,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DeleteVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteVersionRequest) private static final com.google.cloud.dialogflow.v2.DeleteVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DeleteVersionRequest(); } @@ -651,16 +592,16 @@ public static com.google.cloud.dialogflow.v2.DeleteVersionRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,4 +616,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DeleteVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequestOrBuilder.java new file mode 100644 index 000000000..3292421dc --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DeleteVersionRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/version.proto + +package com.google.cloud.dialogflow.v2; + +public interface DeleteVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DeleteVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the version to delete.
+   * Supported formats:
+   * - `projects/<Project ID>/agent/versions/<Version ID>`
+   * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
+   *   ID>`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the version to delete.
+   * Supported formats:
+   * - `projects/<Project ID>/agent/versions/<Version ID>`
+   * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
+   *   ID>`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java similarity index 74% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java index 6de636618..506163d7f 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request to detect user's intent.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DetectIntentRequest} */ -public final class DetectIntentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectIntentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DetectIntentRequest) DetectIntentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectIntentRequest.newBuilder() to construct. private DetectIntentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectIntentRequest() { session_ = ""; inputAudio_ = com.google.protobuf.ByteString.EMPTY; @@ -44,15 +26,16 @@ private DetectIntentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectIntentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectIntentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,120 +54,104 @@ private DetectIntentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - session_ = s; - break; + session_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.QueryParameters.Builder subBuilder = null; + if (queryParams_ != null) { + subBuilder = queryParams_.toBuilder(); + } + queryParams_ = input.readMessage(com.google.cloud.dialogflow.v2.QueryParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryParams_); + queryParams_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.dialogflow.v2.QueryParameters.Builder subBuilder = null; - if (queryParams_ != null) { - subBuilder = queryParams_.toBuilder(); - } - queryParams_ = - input.readMessage( - com.google.cloud.dialogflow.v2.QueryParameters.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryParams_); - queryParams_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.cloud.dialogflow.v2.QueryInput.Builder subBuilder = null; + if (queryInput_ != null) { + subBuilder = queryInput_.toBuilder(); } - case 26: - { - com.google.cloud.dialogflow.v2.QueryInput.Builder subBuilder = null; - if (queryInput_ != null) { - subBuilder = queryInput_.toBuilder(); - } - queryInput_ = - input.readMessage( - com.google.cloud.dialogflow.v2.QueryInput.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryInput_); - queryInput_ = subBuilder.buildPartial(); - } - - break; + queryInput_ = input.readMessage(com.google.cloud.dialogflow.v2.QueryInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryInput_); + queryInput_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null; + if (outputAudioConfig_ != null) { + subBuilder = outputAudioConfig_.toBuilder(); } - case 34: - { - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null; - if (outputAudioConfig_ != null) { - subBuilder = outputAudioConfig_.toBuilder(); - } - outputAudioConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputAudioConfig_); - outputAudioConfig_ = subBuilder.buildPartial(); - } - - break; + outputAudioConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputAudioConfig_); + outputAudioConfig_ = subBuilder.buildPartial(); } - case 42: - { - inputAudio_ = input.readBytes(); - break; + + break; + } + case 42: { + + inputAudio_ = input.readBytes(); + break; + } + case 58: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (outputAudioConfigMask_ != null) { + subBuilder = outputAudioConfigMask_.toBuilder(); } - case 58: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (outputAudioConfigMask_ != null) { - subBuilder = outputAudioConfigMask_.toBuilder(); - } - outputAudioConfigMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputAudioConfigMask_); - outputAudioConfigMask_ = subBuilder.buildPartial(); - } - - break; + outputAudioConfigMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputAudioConfigMask_); + outputAudioConfigMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DetectIntentRequest.class, - com.google.cloud.dialogflow.v2.DetectIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DetectIntentRequest.class, com.google.cloud.dialogflow.v2.DetectIntentRequest.Builder.class); } public static final int SESSION_FIELD_NUMBER = 1; private volatile java.lang.Object session_; /** - * - * *
    * Required. The name of the session this query is sent to. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -203,10 +170,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
    * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The session. */ @java.lang.Override @@ -215,15 +179,14 @@ public java.lang.String getSession() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } } /** - * - * *
    * Required. The name of the session this query is sent to. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -242,18 +205,17 @@ public java.lang.String getSession() {
    * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
    * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for session. */ @java.lang.Override - public com.google.protobuf.ByteString getSessionBytes() { + public com.google.protobuf.ByteString + getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); session_ = b; return b; } else { @@ -264,14 +226,11 @@ public com.google.protobuf.ByteString getSessionBytes() { public static final int QUERY_PARAMS_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.QueryParameters queryParams_; /** - * - * *
    * The parameters of this query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; - * * @return Whether the queryParams field is set. */ @java.lang.Override @@ -279,25 +238,18 @@ public boolean hasQueryParams() { return queryParams_ != null; } /** - * - * *
    * The parameters of this query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; - * * @return The queryParams. */ @java.lang.Override public com.google.cloud.dialogflow.v2.QueryParameters getQueryParams() { - return queryParams_ == null - ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() - : queryParams_; + return queryParams_ == null ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() : queryParams_; } /** - * - * *
    * The parameters of this query.
    * 
@@ -312,8 +264,6 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB public static final int QUERY_INPUT_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.v2.QueryInput queryInput_; /** - * - * *
    * Required. The input specification. It can be set to:
    * 1.  an audio config
@@ -322,10 +272,7 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB
    * 3.  an event that specifies which intent to trigger.
    * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the queryInput field is set. */ @java.lang.Override @@ -333,8 +280,6 @@ public boolean hasQueryInput() { return queryInput_ != null; } /** - * - * *
    * Required. The input specification. It can be set to:
    * 1.  an audio config
@@ -343,21 +288,14 @@ public boolean hasQueryInput() {
    * 3.  an event that specifies which intent to trigger.
    * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The queryInput. */ @java.lang.Override public com.google.cloud.dialogflow.v2.QueryInput getQueryInput() { - return queryInput_ == null - ? com.google.cloud.dialogflow.v2.QueryInput.getDefaultInstance() - : queryInput_; + return queryInput_ == null ? com.google.cloud.dialogflow.v2.QueryInput.getDefaultInstance() : queryInput_; } /** - * - * *
    * Required. The input specification. It can be set to:
    * 1.  an audio config
@@ -366,9 +304,7 @@ public com.google.cloud.dialogflow.v2.QueryInput getQueryInput() {
    * 3.  an event that specifies which intent to trigger.
    * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder() { @@ -378,8 +314,6 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.dialogflow.v2.OutputAudioConfig outputAudioConfig_; /** - * - * *
    * Instructs the speech synthesizer how to generate the output
    * audio. If this field is not set and agent-level speech synthesizer is not
@@ -387,7 +321,6 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; - * * @return Whether the outputAudioConfig field is set. */ @java.lang.Override @@ -395,8 +328,6 @@ public boolean hasOutputAudioConfig() { return outputAudioConfig_ != null; } /** - * - * *
    * Instructs the speech synthesizer how to generate the output
    * audio. If this field is not set and agent-level speech synthesizer is not
@@ -404,18 +335,13 @@ public boolean hasOutputAudioConfig() {
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; - * * @return The outputAudioConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() { - return outputAudioConfig_ == null - ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() - : outputAudioConfig_; + return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; } /** - * - * *
    * Instructs the speech synthesizer how to generate the output
    * audio. If this field is not set and agent-level speech synthesizer is not
@@ -432,8 +358,6 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioC
   public static final int OUTPUT_AUDIO_CONFIG_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask outputAudioConfigMask_;
   /**
-   *
-   *
    * 
    * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
    * request-level config should override speech synthesizer settings defined at
@@ -443,7 +367,6 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioC
    * 
* * .google.protobuf.FieldMask output_audio_config_mask = 7; - * * @return Whether the outputAudioConfigMask field is set. */ @java.lang.Override @@ -451,8 +374,6 @@ public boolean hasOutputAudioConfigMask() { return outputAudioConfigMask_ != null; } /** - * - * *
    * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
    * request-level config should override speech synthesizer settings defined at
@@ -462,18 +383,13 @@ public boolean hasOutputAudioConfigMask() {
    * 
* * .google.protobuf.FieldMask output_audio_config_mask = 7; - * * @return The outputAudioConfigMask. */ @java.lang.Override public com.google.protobuf.FieldMask getOutputAudioConfigMask() { - return outputAudioConfigMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : outputAudioConfigMask_; + return outputAudioConfigMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : outputAudioConfigMask_; } /** - * - * *
    * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
    * request-level config should override speech synthesizer settings defined at
@@ -492,8 +408,6 @@ public com.google.protobuf.FieldMaskOrBuilder getOutputAudioConfigMaskOrBuilder(
   public static final int INPUT_AUDIO_FIELD_NUMBER = 5;
   private com.google.protobuf.ByteString inputAudio_;
   /**
-   *
-   *
    * 
    * The natural language speech audio to be processed. This field
    * should be populated iff `query_input` is set to an input audio config.
@@ -501,7 +415,6 @@ public com.google.protobuf.FieldMaskOrBuilder getOutputAudioConfigMaskOrBuilder(
    * 
* * bytes input_audio = 5; - * * @return The inputAudio. */ @java.lang.Override @@ -510,7 +423,6 @@ public com.google.protobuf.ByteString getInputAudio() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -522,7 +434,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getSessionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } @@ -554,20 +467,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, session_); } if (queryParams_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueryParams()); } if (queryInput_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQueryInput()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getQueryInput()); } if (outputAudioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputAudioConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputAudioConfig()); } if (!inputAudio_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, inputAudio_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, inputAudio_); } if (outputAudioConfigMask_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputAudioConfigMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOutputAudioConfigMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -577,32 +494,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DetectIntentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DetectIntentRequest other = - (com.google.cloud.dialogflow.v2.DetectIntentRequest) obj; + com.google.cloud.dialogflow.v2.DetectIntentRequest other = (com.google.cloud.dialogflow.v2.DetectIntentRequest) obj; - if (!getSession().equals(other.getSession())) return false; + if (!getSession() + .equals(other.getSession())) return false; if (hasQueryParams() != other.hasQueryParams()) return false; if (hasQueryParams()) { - if (!getQueryParams().equals(other.getQueryParams())) return false; + if (!getQueryParams() + .equals(other.getQueryParams())) return false; } if (hasQueryInput() != other.hasQueryInput()) return false; if (hasQueryInput()) { - if (!getQueryInput().equals(other.getQueryInput())) return false; + if (!getQueryInput() + .equals(other.getQueryInput())) return false; } if (hasOutputAudioConfig() != other.hasOutputAudioConfig()) return false; if (hasOutputAudioConfig()) { - if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false; + if (!getOutputAudioConfig() + .equals(other.getOutputAudioConfig())) return false; } if (hasOutputAudioConfigMask() != other.hasOutputAudioConfigMask()) return false; if (hasOutputAudioConfigMask()) { - if (!getOutputAudioConfigMask().equals(other.getOutputAudioConfigMask())) return false; + if (!getOutputAudioConfigMask() + .equals(other.getOutputAudioConfigMask())) return false; } - if (!getInputAudio().equals(other.getInputAudio())) return false; + if (!getInputAudio() + .equals(other.getInputAudio())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -640,126 +562,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DetectIntentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DetectIntentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request to detect user's intent.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DetectIntentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DetectIntentRequest) com.google.cloud.dialogflow.v2.DetectIntentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DetectIntentRequest.class, - com.google.cloud.dialogflow.v2.DetectIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.DetectIntentRequest.class, com.google.cloud.dialogflow.v2.DetectIntentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DetectIntentRequest.newBuilder() @@ -767,15 +680,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -811,9 +725,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentRequest_descriptor; } @java.lang.Override @@ -832,8 +746,7 @@ public com.google.cloud.dialogflow.v2.DetectIntentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DetectIntentRequest buildPartial() { - com.google.cloud.dialogflow.v2.DetectIntentRequest result = - new com.google.cloud.dialogflow.v2.DetectIntentRequest(this); + com.google.cloud.dialogflow.v2.DetectIntentRequest result = new com.google.cloud.dialogflow.v2.DetectIntentRequest(this); result.session_ = session_; if (queryParamsBuilder_ == null) { result.queryParams_ = queryParams_; @@ -864,39 +777,38 @@ public com.google.cloud.dialogflow.v2.DetectIntentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DetectIntentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.DetectIntentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DetectIntentRequest)other); } else { super.mergeFrom(other); return this; @@ -904,8 +816,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DetectIntentRequest other) { - if (other == com.google.cloud.dialogflow.v2.DetectIntentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DetectIntentRequest.getDefaultInstance()) return this; if (!other.getSession().isEmpty()) { session_ = other.session_; onChanged(); @@ -944,8 +855,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DetectIntentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DetectIntentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -957,8 +867,6 @@ public Builder mergeFrom( private java.lang.Object session_ = ""; /** - * - * *
      * Required. The name of the session this query is sent to. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -977,16 +885,14 @@ public Builder mergeFrom(
      * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
      * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The session. */ public java.lang.String getSession() { java.lang.Object ref = session_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; @@ -995,8 +901,6 @@ public java.lang.String getSession() { } } /** - * - * *
      * Required. The name of the session this query is sent to. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -1015,17 +919,16 @@ public java.lang.String getSession() {
      * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
      * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for session. */ - public com.google.protobuf.ByteString getSessionBytes() { + public com.google.protobuf.ByteString + getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); session_ = b; return b; } else { @@ -1033,8 +936,6 @@ public com.google.protobuf.ByteString getSessionBytes() { } } /** - * - * *
      * Required. The name of the session this query is sent to. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -1053,25 +954,21 @@ public com.google.protobuf.ByteString getSessionBytes() {
      * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
      * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The session to set. * @return This builder for chaining. */ - public Builder setSession(java.lang.String value) { + public Builder setSession( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + session_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the session this query is sent to. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -1090,21 +987,16 @@ public Builder setSession(java.lang.String value) {
      * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
      * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSession() { - + session_ = getDefaultInstance().getSession(); onChanged(); return this; } /** - * - * *
      * Required. The name of the session this query is sent to. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -1123,19 +1015,17 @@ public Builder clearSession() {
      * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
      * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for session to set. * @return This builder for chaining. */ - public Builder setSessionBytes(com.google.protobuf.ByteString value) { + public Builder setSessionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; onChanged(); return this; @@ -1143,47 +1033,34 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.QueryParameters queryParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryParameters, - com.google.cloud.dialogflow.v2.QueryParameters.Builder, - com.google.cloud.dialogflow.v2.QueryParametersOrBuilder> - queryParamsBuilder_; + com.google.cloud.dialogflow.v2.QueryParameters, com.google.cloud.dialogflow.v2.QueryParameters.Builder, com.google.cloud.dialogflow.v2.QueryParametersOrBuilder> queryParamsBuilder_; /** - * - * *
      * The parameters of this query.
      * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; - * * @return Whether the queryParams field is set. */ public boolean hasQueryParams() { return queryParamsBuilder_ != null || queryParams_ != null; } /** - * - * *
      * The parameters of this query.
      * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; - * * @return The queryParams. */ public com.google.cloud.dialogflow.v2.QueryParameters getQueryParams() { if (queryParamsBuilder_ == null) { - return queryParams_ == null - ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() - : queryParams_; + return queryParams_ == null ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() : queryParams_; } else { return queryParamsBuilder_.getMessage(); } } /** - * - * *
      * The parameters of this query.
      * 
@@ -1204,8 +1081,6 @@ public Builder setQueryParams(com.google.cloud.dialogflow.v2.QueryParameters val return this; } /** - * - * *
      * The parameters of this query.
      * 
@@ -1224,8 +1099,6 @@ public Builder setQueryParams( return this; } /** - * - * *
      * The parameters of this query.
      * 
@@ -1236,9 +1109,7 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.v2.QueryParameters v if (queryParamsBuilder_ == null) { if (queryParams_ != null) { queryParams_ = - com.google.cloud.dialogflow.v2.QueryParameters.newBuilder(queryParams_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.QueryParameters.newBuilder(queryParams_).mergeFrom(value).buildPartial(); } else { queryParams_ = value; } @@ -1250,8 +1121,6 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.v2.QueryParameters v return this; } /** - * - * *
      * The parameters of this query.
      * 
@@ -1270,8 +1139,6 @@ public Builder clearQueryParams() { return this; } /** - * - * *
      * The parameters of this query.
      * 
@@ -1279,13 +1146,11 @@ public Builder clearQueryParams() { * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; */ public com.google.cloud.dialogflow.v2.QueryParameters.Builder getQueryParamsBuilder() { - + onChanged(); return getQueryParamsFieldBuilder().getBuilder(); } /** - * - * *
      * The parameters of this query.
      * 
@@ -1296,14 +1161,11 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB if (queryParamsBuilder_ != null) { return queryParamsBuilder_.getMessageOrBuilder(); } else { - return queryParams_ == null - ? com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() - : queryParams_; + return queryParams_ == null ? + com.google.cloud.dialogflow.v2.QueryParameters.getDefaultInstance() : queryParams_; } } /** - * - * *
      * The parameters of this query.
      * 
@@ -1311,17 +1173,14 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryParameters, - com.google.cloud.dialogflow.v2.QueryParameters.Builder, - com.google.cloud.dialogflow.v2.QueryParametersOrBuilder> + com.google.cloud.dialogflow.v2.QueryParameters, com.google.cloud.dialogflow.v2.QueryParameters.Builder, com.google.cloud.dialogflow.v2.QueryParametersOrBuilder> getQueryParamsFieldBuilder() { if (queryParamsBuilder_ == null) { - queryParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryParameters, - com.google.cloud.dialogflow.v2.QueryParameters.Builder, - com.google.cloud.dialogflow.v2.QueryParametersOrBuilder>( - getQueryParams(), getParentForChildren(), isClean()); + queryParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.QueryParameters, com.google.cloud.dialogflow.v2.QueryParameters.Builder, com.google.cloud.dialogflow.v2.QueryParametersOrBuilder>( + getQueryParams(), + getParentForChildren(), + isClean()); queryParams_ = null; } return queryParamsBuilder_; @@ -1329,13 +1188,8 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB private com.google.cloud.dialogflow.v2.QueryInput queryInput_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryInput, - com.google.cloud.dialogflow.v2.QueryInput.Builder, - com.google.cloud.dialogflow.v2.QueryInputOrBuilder> - queryInputBuilder_; + com.google.cloud.dialogflow.v2.QueryInput, com.google.cloud.dialogflow.v2.QueryInput.Builder, com.google.cloud.dialogflow.v2.QueryInputOrBuilder> queryInputBuilder_; /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1344,18 +1198,13 @@ public com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrB
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the queryInput field is set. */ public boolean hasQueryInput() { return queryInputBuilder_ != null || queryInput_ != null; } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1364,24 +1213,17 @@ public boolean hasQueryInput() {
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The queryInput. */ public com.google.cloud.dialogflow.v2.QueryInput getQueryInput() { if (queryInputBuilder_ == null) { - return queryInput_ == null - ? com.google.cloud.dialogflow.v2.QueryInput.getDefaultInstance() - : queryInput_; + return queryInput_ == null ? com.google.cloud.dialogflow.v2.QueryInput.getDefaultInstance() : queryInput_; } else { return queryInputBuilder_.getMessage(); } } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1390,9 +1232,7 @@ public com.google.cloud.dialogflow.v2.QueryInput getQueryInput() {
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setQueryInput(com.google.cloud.dialogflow.v2.QueryInput value) { if (queryInputBuilder_ == null) { @@ -1408,8 +1248,6 @@ public Builder setQueryInput(com.google.cloud.dialogflow.v2.QueryInput value) { return this; } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1418,9 +1256,7 @@ public Builder setQueryInput(com.google.cloud.dialogflow.v2.QueryInput value) {
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setQueryInput( com.google.cloud.dialogflow.v2.QueryInput.Builder builderForValue) { @@ -1434,8 +1270,6 @@ public Builder setQueryInput( return this; } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1444,17 +1278,13 @@ public Builder setQueryInput(
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeQueryInput(com.google.cloud.dialogflow.v2.QueryInput value) { if (queryInputBuilder_ == null) { if (queryInput_ != null) { queryInput_ = - com.google.cloud.dialogflow.v2.QueryInput.newBuilder(queryInput_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.QueryInput.newBuilder(queryInput_).mergeFrom(value).buildPartial(); } else { queryInput_ = value; } @@ -1466,8 +1296,6 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.v2.QueryInput value) return this; } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1476,9 +1304,7 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.v2.QueryInput value)
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearQueryInput() { if (queryInputBuilder_ == null) { @@ -1492,8 +1318,6 @@ public Builder clearQueryInput() { return this; } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1502,18 +1326,14 @@ public Builder clearQueryInput() {
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.QueryInput.Builder getQueryInputBuilder() { - + onChanged(); return getQueryInputFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1522,22 +1342,17 @@ public com.google.cloud.dialogflow.v2.QueryInput.Builder getQueryInputBuilder()
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder() { if (queryInputBuilder_ != null) { return queryInputBuilder_.getMessageOrBuilder(); } else { - return queryInput_ == null - ? com.google.cloud.dialogflow.v2.QueryInput.getDefaultInstance() - : queryInput_; + return queryInput_ == null ? + com.google.cloud.dialogflow.v2.QueryInput.getDefaultInstance() : queryInput_; } } /** - * - * *
      * Required. The input specification. It can be set to:
      * 1.  an audio config
@@ -1546,22 +1361,17 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
      * 3.  an event that specifies which intent to trigger.
      * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryInput, - com.google.cloud.dialogflow.v2.QueryInput.Builder, - com.google.cloud.dialogflow.v2.QueryInputOrBuilder> + com.google.cloud.dialogflow.v2.QueryInput, com.google.cloud.dialogflow.v2.QueryInput.Builder, com.google.cloud.dialogflow.v2.QueryInputOrBuilder> getQueryInputFieldBuilder() { if (queryInputBuilder_ == null) { - queryInputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryInput, - com.google.cloud.dialogflow.v2.QueryInput.Builder, - com.google.cloud.dialogflow.v2.QueryInputOrBuilder>( - getQueryInput(), getParentForChildren(), isClean()); + queryInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.QueryInput, com.google.cloud.dialogflow.v2.QueryInput.Builder, com.google.cloud.dialogflow.v2.QueryInputOrBuilder>( + getQueryInput(), + getParentForChildren(), + isClean()); queryInput_ = null; } return queryInputBuilder_; @@ -1569,13 +1379,8 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder private com.google.cloud.dialogflow.v2.OutputAudioConfig outputAudioConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.OutputAudioConfig, - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, - com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> - outputAudioConfigBuilder_; + com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> outputAudioConfigBuilder_; /** - * - * *
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1583,15 +1388,12 @@ public com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder
      * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; - * * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; } /** - * - * *
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1599,21 +1401,16 @@ public boolean hasOutputAudioConfig() {
      * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; - * * @return The outputAudioConfig. */ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() { if (outputAudioConfigBuilder_ == null) { - return outputAudioConfig_ == null - ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() - : outputAudioConfig_; + return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; } else { return outputAudioConfigBuilder_.getMessage(); } } /** - * - * *
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1636,8 +1433,6 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioCo
       return this;
     }
     /**
-     *
-     *
      * 
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1658,8 +1453,6 @@ public Builder setOutputAudioConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1672,9 +1465,7 @@ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudio
       if (outputAudioConfigBuilder_ == null) {
         if (outputAudioConfig_ != null) {
           outputAudioConfig_ =
-              com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder(outputAudioConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder(outputAudioConfig_).mergeFrom(value).buildPartial();
         } else {
           outputAudioConfig_ = value;
         }
@@ -1686,8 +1477,6 @@ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudio
       return this;
     }
     /**
-     *
-     *
      * 
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1708,8 +1497,6 @@ public Builder clearOutputAudioConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1719,13 +1506,11 @@ public Builder clearOutputAudioConfig() {
      * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4;
      */
     public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioConfigBuilder() {
-
+      
       onChanged();
       return getOutputAudioConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1734,19 +1519,15 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioCo
      *
      * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4;
      */
-    public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder
-        getOutputAudioConfigOrBuilder() {
+    public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() {
       if (outputAudioConfigBuilder_ != null) {
         return outputAudioConfigBuilder_.getMessageOrBuilder();
       } else {
-        return outputAudioConfig_ == null
-            ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance()
-            : outputAudioConfig_;
+        return outputAudioConfig_ == null ?
+            com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Instructs the speech synthesizer how to generate the output
      * audio. If this field is not set and agent-level speech synthesizer is not
@@ -1756,17 +1537,14 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioCo
      * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.OutputAudioConfig,
-            com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
-            com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>
+        com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> 
         getOutputAudioConfigFieldBuilder() {
       if (outputAudioConfigBuilder_ == null) {
-        outputAudioConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.dialogflow.v2.OutputAudioConfig,
-                com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder,
-                com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>(
-                getOutputAudioConfig(), getParentForChildren(), isClean());
+        outputAudioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>(
+                getOutputAudioConfig(),
+                getParentForChildren(),
+                isClean());
         outputAudioConfig_ = null;
       }
       return outputAudioConfigBuilder_;
@@ -1774,13 +1552,8 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioCo
 
     private com.google.protobuf.FieldMask outputAudioConfigMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        outputAudioConfigMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> outputAudioConfigMaskBuilder_;
     /**
-     *
-     *
      * 
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1790,15 +1563,12 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioCo
      * 
* * .google.protobuf.FieldMask output_audio_config_mask = 7; - * * @return Whether the outputAudioConfigMask field is set. */ public boolean hasOutputAudioConfigMask() { return outputAudioConfigMaskBuilder_ != null || outputAudioConfigMask_ != null; } /** - * - * *
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1808,21 +1578,16 @@ public boolean hasOutputAudioConfigMask() {
      * 
* * .google.protobuf.FieldMask output_audio_config_mask = 7; - * * @return The outputAudioConfigMask. */ public com.google.protobuf.FieldMask getOutputAudioConfigMask() { if (outputAudioConfigMaskBuilder_ == null) { - return outputAudioConfigMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : outputAudioConfigMask_; + return outputAudioConfigMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : outputAudioConfigMask_; } else { return outputAudioConfigMaskBuilder_.getMessage(); } } /** - * - * *
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1847,8 +1612,6 @@ public Builder setOutputAudioConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1859,7 +1622,8 @@ public Builder setOutputAudioConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask output_audio_config_mask = 7;
      */
-    public Builder setOutputAudioConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setOutputAudioConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (outputAudioConfigMaskBuilder_ == null) {
         outputAudioConfigMask_ = builderForValue.build();
         onChanged();
@@ -1870,8 +1634,6 @@ public Builder setOutputAudioConfigMask(com.google.protobuf.FieldMask.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1886,9 +1648,7 @@ public Builder mergeOutputAudioConfigMask(com.google.protobuf.FieldMask value) {
       if (outputAudioConfigMaskBuilder_ == null) {
         if (outputAudioConfigMask_ != null) {
           outputAudioConfigMask_ =
-              com.google.protobuf.FieldMask.newBuilder(outputAudioConfigMask_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(outputAudioConfigMask_).mergeFrom(value).buildPartial();
         } else {
           outputAudioConfigMask_ = value;
         }
@@ -1900,8 +1660,6 @@ public Builder mergeOutputAudioConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1924,8 +1682,6 @@ public Builder clearOutputAudioConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1937,13 +1693,11 @@ public Builder clearOutputAudioConfigMask() {
      * .google.protobuf.FieldMask output_audio_config_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getOutputAudioConfigMaskBuilder() {
-
+      
       onChanged();
       return getOutputAudioConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1958,14 +1712,11 @@ public com.google.protobuf.FieldMaskOrBuilder getOutputAudioConfigMaskOrBuilder(
       if (outputAudioConfigMaskBuilder_ != null) {
         return outputAudioConfigMaskBuilder_.getMessageOrBuilder();
       } else {
-        return outputAudioConfigMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : outputAudioConfigMask_;
+        return outputAudioConfigMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : outputAudioConfigMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
      * request-level config should override speech synthesizer settings defined at
@@ -1977,17 +1728,14 @@ public com.google.protobuf.FieldMaskOrBuilder getOutputAudioConfigMaskOrBuilder(
      * .google.protobuf.FieldMask output_audio_config_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getOutputAudioConfigMaskFieldBuilder() {
       if (outputAudioConfigMaskBuilder_ == null) {
-        outputAudioConfigMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getOutputAudioConfigMask(), getParentForChildren(), isClean());
+        outputAudioConfigMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getOutputAudioConfigMask(),
+                getParentForChildren(),
+                isClean());
         outputAudioConfigMask_ = null;
       }
       return outputAudioConfigMaskBuilder_;
@@ -1995,8 +1743,6 @@ public com.google.protobuf.FieldMaskOrBuilder getOutputAudioConfigMaskOrBuilder(
 
     private com.google.protobuf.ByteString inputAudio_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The natural language speech audio to be processed. This field
      * should be populated iff `query_input` is set to an input audio config.
@@ -2004,7 +1750,6 @@ public com.google.protobuf.FieldMaskOrBuilder getOutputAudioConfigMaskOrBuilder(
      * 
* * bytes input_audio = 5; - * * @return The inputAudio. */ @java.lang.Override @@ -2012,8 +1757,6 @@ public com.google.protobuf.ByteString getInputAudio() { return inputAudio_; } /** - * - * *
      * The natural language speech audio to be processed. This field
      * should be populated iff `query_input` is set to an input audio config.
@@ -2021,22 +1764,19 @@ public com.google.protobuf.ByteString getInputAudio() {
      * 
* * bytes input_audio = 5; - * * @param value The inputAudio to set. * @return This builder for chaining. */ public Builder setInputAudio(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputAudio_ = value; onChanged(); return this; } /** - * - * *
      * The natural language speech audio to be processed. This field
      * should be populated iff `query_input` is set to an input audio config.
@@ -2044,18 +1784,17 @@ public Builder setInputAudio(com.google.protobuf.ByteString value) {
      * 
* * bytes input_audio = 5; - * * @return This builder for chaining. */ public Builder clearInputAudio() { - + inputAudio_ = getDefaultInstance().getInputAudio(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2065,12 +1804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DetectIntentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DetectIntentRequest) private static final com.google.cloud.dialogflow.v2.DetectIntentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DetectIntentRequest(); } @@ -2079,16 +1818,16 @@ public static com.google.cloud.dialogflow.v2.DetectIntentRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectIntentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectIntentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectIntentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectIntentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2103,4 +1842,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DetectIntentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java similarity index 83% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java index 3bbe69d16..82eabe9ef 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface DetectIntentRequestOrBuilder - extends +public interface DetectIntentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DetectIntentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the session this query is sent to. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -44,16 +26,11 @@ public interface DetectIntentRequestOrBuilder
    * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
    * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The session. */ java.lang.String getSession(); /** - * - * *
    * Required. The name of the session this query is sent to. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>`, or
@@ -72,41 +49,31 @@ public interface DetectIntentRequestOrBuilder
    * environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
    * 
* - * - * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for session. */ - com.google.protobuf.ByteString getSessionBytes(); + com.google.protobuf.ByteString + getSessionBytes(); /** - * - * *
    * The parameters of this query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; - * * @return Whether the queryParams field is set. */ boolean hasQueryParams(); /** - * - * *
    * The parameters of this query.
    * 
* * .google.cloud.dialogflow.v2.QueryParameters query_params = 2; - * * @return The queryParams. */ com.google.cloud.dialogflow.v2.QueryParameters getQueryParams(); /** - * - * *
    * The parameters of this query.
    * 
@@ -116,8 +83,6 @@ public interface DetectIntentRequestOrBuilder com.google.cloud.dialogflow.v2.QueryParametersOrBuilder getQueryParamsOrBuilder(); /** - * - * *
    * Required. The input specification. It can be set to:
    * 1.  an audio config
@@ -126,16 +91,11 @@ public interface DetectIntentRequestOrBuilder
    * 3.  an event that specifies which intent to trigger.
    * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the queryInput field is set. */ boolean hasQueryInput(); /** - * - * *
    * Required. The input specification. It can be set to:
    * 1.  an audio config
@@ -144,16 +104,11 @@ public interface DetectIntentRequestOrBuilder
    * 3.  an event that specifies which intent to trigger.
    * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The queryInput. */ com.google.cloud.dialogflow.v2.QueryInput getQueryInput(); /** - * - * *
    * Required. The input specification. It can be set to:
    * 1.  an audio config
@@ -162,15 +117,11 @@ public interface DetectIntentRequestOrBuilder
    * 3.  an event that specifies which intent to trigger.
    * 
* - * - * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.dialogflow.v2.QueryInput query_input = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.QueryInputOrBuilder getQueryInputOrBuilder(); /** - * - * *
    * Instructs the speech synthesizer how to generate the output
    * audio. If this field is not set and agent-level speech synthesizer is not
@@ -178,13 +129,10 @@ public interface DetectIntentRequestOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; - * * @return Whether the outputAudioConfig field is set. */ boolean hasOutputAudioConfig(); /** - * - * *
    * Instructs the speech synthesizer how to generate the output
    * audio. If this field is not set and agent-level speech synthesizer is not
@@ -192,13 +140,10 @@ public interface DetectIntentRequestOrBuilder
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 4; - * * @return The outputAudioConfig. */ com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig(); /** - * - * *
    * Instructs the speech synthesizer how to generate the output
    * audio. If this field is not set and agent-level speech synthesizer is not
@@ -210,8 +155,6 @@ public interface DetectIntentRequestOrBuilder
   com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
    * request-level config should override speech synthesizer settings defined at
@@ -221,13 +164,10 @@ public interface DetectIntentRequestOrBuilder
    * 
* * .google.protobuf.FieldMask output_audio_config_mask = 7; - * * @return Whether the outputAudioConfigMask field is set. */ boolean hasOutputAudioConfigMask(); /** - * - * *
    * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
    * request-level config should override speech synthesizer settings defined at
@@ -237,13 +177,10 @@ public interface DetectIntentRequestOrBuilder
    * 
* * .google.protobuf.FieldMask output_audio_config_mask = 7; - * * @return The outputAudioConfigMask. */ com.google.protobuf.FieldMask getOutputAudioConfigMask(); /** - * - * *
    * Mask for [output_audio_config][google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config] indicating which settings in this
    * request-level config should override speech synthesizer settings defined at
@@ -257,8 +194,6 @@ public interface DetectIntentRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getOutputAudioConfigMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The natural language speech audio to be processed. This field
    * should be populated iff `query_input` is set to an input audio config.
@@ -266,7 +201,6 @@ public interface DetectIntentRequestOrBuilder
    * 
* * bytes input_audio = 5; - * * @return The inputAudio. */ com.google.protobuf.ByteString getInputAudio(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java similarity index 74% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java index 599ff187c..cd1744dcb 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The message returned from the DetectIntent method.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DetectIntentResponse} */ -public final class DetectIntentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetectIntentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DetectIntentResponse) DetectIntentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetectIntentResponse.newBuilder() to construct. private DetectIntentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetectIntentResponse() { responseId_ = ""; outputAudio_ = com.google.protobuf.ByteString.EMPTY; @@ -44,15 +26,16 @@ private DetectIntentResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetectIntentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetectIntentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,110 +54,97 @@ private DetectIntentResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - responseId_ = s; - break; + responseId_ = s; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.QueryResult.Builder subBuilder = null; + if (queryResult_ != null) { + subBuilder = queryResult_.toBuilder(); + } + queryResult_ = input.readMessage(com.google.cloud.dialogflow.v2.QueryResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryResult_); + queryResult_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.dialogflow.v2.QueryResult.Builder subBuilder = null; - if (queryResult_ != null) { - subBuilder = queryResult_.toBuilder(); - } - queryResult_ = - input.readMessage( - com.google.cloud.dialogflow.v2.QueryResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryResult_); - queryResult_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (webhookStatus_ != null) { + subBuilder = webhookStatus_.toBuilder(); } - case 26: - { - com.google.rpc.Status.Builder subBuilder = null; - if (webhookStatus_ != null) { - subBuilder = webhookStatus_.toBuilder(); - } - webhookStatus_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webhookStatus_); - webhookStatus_ = subBuilder.buildPartial(); - } - - break; + webhookStatus_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(webhookStatus_); + webhookStatus_ = subBuilder.buildPartial(); } - case 34: - { - outputAudio_ = input.readBytes(); - break; + + break; + } + case 34: { + + outputAudio_ = input.readBytes(); + break; + } + case 50: { + com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null; + if (outputAudioConfig_ != null) { + subBuilder = outputAudioConfig_.toBuilder(); } - case 50: - { - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder subBuilder = null; - if (outputAudioConfig_ != null) { - subBuilder = outputAudioConfig_.toBuilder(); - } - outputAudioConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputAudioConfig_); - outputAudioConfig_ = subBuilder.buildPartial(); - } - - break; + outputAudioConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.OutputAudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputAudioConfig_); + outputAudioConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DetectIntentResponse.class, - com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder.class); + com.google.cloud.dialogflow.v2.DetectIntentResponse.class, com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder.class); } public static final int RESPONSE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object responseId_; /** - * - * *
    * The unique identifier of the response. It can be used to
    * locate a response in the training example set or for reporting issues.
    * 
* * string response_id = 1; - * * @return The responseId. */ @java.lang.Override @@ -183,30 +153,30 @@ public java.lang.String getResponseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); responseId_ = s; return s; } } /** - * - * *
    * The unique identifier of the response. It can be used to
    * locate a response in the training example set or for reporting issues.
    * 
* * string response_id = 1; - * * @return The bytes for responseId. */ @java.lang.Override - public com.google.protobuf.ByteString getResponseIdBytes() { + public com.google.protobuf.ByteString + getResponseIdBytes() { java.lang.Object ref = responseId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); responseId_ = b; return b; } else { @@ -217,15 +187,12 @@ public com.google.protobuf.ByteString getResponseIdBytes() { public static final int QUERY_RESULT_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.QueryResult queryResult_; /** - * - * *
    * The selected results of the conversational query or event processing.
    * See `alternative_query_results` for additional potential results.
    * 
* * .google.cloud.dialogflow.v2.QueryResult query_result = 2; - * * @return Whether the queryResult field is set. */ @java.lang.Override @@ -233,26 +200,19 @@ public boolean hasQueryResult() { return queryResult_ != null; } /** - * - * *
    * The selected results of the conversational query or event processing.
    * See `alternative_query_results` for additional potential results.
    * 
* * .google.cloud.dialogflow.v2.QueryResult query_result = 2; - * * @return The queryResult. */ @java.lang.Override public com.google.cloud.dialogflow.v2.QueryResult getQueryResult() { - return queryResult_ == null - ? com.google.cloud.dialogflow.v2.QueryResult.getDefaultInstance() - : queryResult_; + return queryResult_ == null ? com.google.cloud.dialogflow.v2.QueryResult.getDefaultInstance() : queryResult_; } /** - * - * *
    * The selected results of the conversational query or event processing.
    * See `alternative_query_results` for additional potential results.
@@ -268,14 +228,11 @@ public com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuild
   public static final int WEBHOOK_STATUS_FIELD_NUMBER = 3;
   private com.google.rpc.Status webhookStatus_;
   /**
-   *
-   *
    * 
    * Specifies the status of the webhook request.
    * 
* * .google.rpc.Status webhook_status = 3; - * * @return Whether the webhookStatus field is set. */ @java.lang.Override @@ -283,14 +240,11 @@ public boolean hasWebhookStatus() { return webhookStatus_ != null; } /** - * - * *
    * Specifies the status of the webhook request.
    * 
* * .google.rpc.Status webhook_status = 3; - * * @return The webhookStatus. */ @java.lang.Override @@ -298,8 +252,6 @@ public com.google.rpc.Status getWebhookStatus() { return webhookStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : webhookStatus_; } /** - * - * *
    * Specifies the status of the webhook request.
    * 
@@ -314,8 +266,6 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() { public static final int OUTPUT_AUDIO_FIELD_NUMBER = 4; private com.google.protobuf.ByteString outputAudio_; /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * Note: The output audio is generated based on the values of default platform
@@ -329,7 +279,6 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
    * 
* * bytes output_audio = 4; - * * @return The outputAudio. */ @java.lang.Override @@ -340,14 +289,11 @@ public com.google.protobuf.ByteString getOutputAudio() { public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.v2.OutputAudioConfig outputAudioConfig_; /** - * - * *
    * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; - * * @return Whether the outputAudioConfig field is set. */ @java.lang.Override @@ -355,25 +301,18 @@ public boolean hasOutputAudioConfig() { return outputAudioConfig_ != null; } /** - * - * *
    * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; - * * @return The outputAudioConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() { - return outputAudioConfig_ == null - ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() - : outputAudioConfig_; + return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; } /** - * - * *
    * The config used by the speech synthesizer to generate the output audio.
    * 
@@ -386,7 +325,6 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioC } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getResponseIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, responseId_); } @@ -427,16 +366,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, responseId_); } if (queryResult_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueryResult()); } if (webhookStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWebhookStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWebhookStatus()); } if (!outputAudio_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, outputAudio_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, outputAudio_); } if (outputAudioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputAudioConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOutputAudioConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -446,27 +389,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DetectIntentResponse)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DetectIntentResponse other = - (com.google.cloud.dialogflow.v2.DetectIntentResponse) obj; + com.google.cloud.dialogflow.v2.DetectIntentResponse other = (com.google.cloud.dialogflow.v2.DetectIntentResponse) obj; - if (!getResponseId().equals(other.getResponseId())) return false; + if (!getResponseId() + .equals(other.getResponseId())) return false; if (hasQueryResult() != other.hasQueryResult()) return false; if (hasQueryResult()) { - if (!getQueryResult().equals(other.getQueryResult())) return false; + if (!getQueryResult() + .equals(other.getQueryResult())) return false; } if (hasWebhookStatus() != other.hasWebhookStatus()) return false; if (hasWebhookStatus()) { - if (!getWebhookStatus().equals(other.getWebhookStatus())) return false; + if (!getWebhookStatus() + .equals(other.getWebhookStatus())) return false; } - if (!getOutputAudio().equals(other.getOutputAudio())) return false; + if (!getOutputAudio() + .equals(other.getOutputAudio())) return false; if (hasOutputAudioConfig() != other.hasOutputAudioConfig()) return false; if (hasOutputAudioConfig()) { - if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false; + if (!getOutputAudioConfig() + .equals(other.getOutputAudioConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -501,126 +448,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DetectIntentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DetectIntentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The message returned from the DetectIntent method.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DetectIntentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DetectIntentResponse) com.google.cloud.dialogflow.v2.DetectIntentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DetectIntentResponse.class, - com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder.class); + com.google.cloud.dialogflow.v2.DetectIntentResponse.class, com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DetectIntentResponse.newBuilder() @@ -628,15 +566,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -666,9 +605,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.SessionProto - .internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_DetectIntentResponse_descriptor; } @java.lang.Override @@ -687,8 +626,7 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DetectIntentResponse buildPartial() { - com.google.cloud.dialogflow.v2.DetectIntentResponse result = - new com.google.cloud.dialogflow.v2.DetectIntentResponse(this); + com.google.cloud.dialogflow.v2.DetectIntentResponse result = new com.google.cloud.dialogflow.v2.DetectIntentResponse(this); result.responseId_ = responseId_; if (queryResultBuilder_ == null) { result.queryResult_ = queryResult_; @@ -714,39 +652,38 @@ public com.google.cloud.dialogflow.v2.DetectIntentResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DetectIntentResponse) { - return mergeFrom((com.google.cloud.dialogflow.v2.DetectIntentResponse) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DetectIntentResponse)other); } else { super.mergeFrom(other); return this; @@ -754,8 +691,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.DetectIntentResponse other) { - if (other == com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.DetectIntentResponse.getDefaultInstance()) return this; if (!other.getResponseId().isEmpty()) { responseId_ = other.responseId_; onChanged(); @@ -791,8 +727,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.DetectIntentResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.DetectIntentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -804,21 +739,19 @@ public Builder mergeFrom( private java.lang.Object responseId_ = ""; /** - * - * *
      * The unique identifier of the response. It can be used to
      * locate a response in the training example set or for reporting issues.
      * 
* * string response_id = 1; - * * @return The responseId. */ public java.lang.String getResponseId() { java.lang.Object ref = responseId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); responseId_ = s; return s; @@ -827,22 +760,21 @@ public java.lang.String getResponseId() { } } /** - * - * *
      * The unique identifier of the response. It can be used to
      * locate a response in the training example set or for reporting issues.
      * 
* * string response_id = 1; - * * @return The bytes for responseId. */ - public com.google.protobuf.ByteString getResponseIdBytes() { + public com.google.protobuf.ByteString + getResponseIdBytes() { java.lang.Object ref = responseId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); responseId_ = b; return b; } else { @@ -850,64 +782,57 @@ public com.google.protobuf.ByteString getResponseIdBytes() { } } /** - * - * *
      * The unique identifier of the response. It can be used to
      * locate a response in the training example set or for reporting issues.
      * 
* * string response_id = 1; - * * @param value The responseId to set. * @return This builder for chaining. */ - public Builder setResponseId(java.lang.String value) { + public Builder setResponseId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + responseId_ = value; onChanged(); return this; } /** - * - * *
      * The unique identifier of the response. It can be used to
      * locate a response in the training example set or for reporting issues.
      * 
* * string response_id = 1; - * * @return This builder for chaining. */ public Builder clearResponseId() { - + responseId_ = getDefaultInstance().getResponseId(); onChanged(); return this; } /** - * - * *
      * The unique identifier of the response. It can be used to
      * locate a response in the training example set or for reporting issues.
      * 
* * string response_id = 1; - * * @param value The bytes for responseId to set. * @return This builder for chaining. */ - public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { + public Builder setResponseIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseId_ = value; onChanged(); return this; @@ -915,49 +840,36 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.dialogflow.v2.QueryResult queryResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.QueryResult, - com.google.cloud.dialogflow.v2.QueryResult.Builder, - com.google.cloud.dialogflow.v2.QueryResultOrBuilder> - queryResultBuilder_; + com.google.cloud.dialogflow.v2.QueryResult, com.google.cloud.dialogflow.v2.QueryResult.Builder, com.google.cloud.dialogflow.v2.QueryResultOrBuilder> queryResultBuilder_; /** - * - * *
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
      * 
* * .google.cloud.dialogflow.v2.QueryResult query_result = 2; - * * @return Whether the queryResult field is set. */ public boolean hasQueryResult() { return queryResultBuilder_ != null || queryResult_ != null; } /** - * - * *
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
      * 
* * .google.cloud.dialogflow.v2.QueryResult query_result = 2; - * * @return The queryResult. */ public com.google.cloud.dialogflow.v2.QueryResult getQueryResult() { if (queryResultBuilder_ == null) { - return queryResult_ == null - ? com.google.cloud.dialogflow.v2.QueryResult.getDefaultInstance() - : queryResult_; + return queryResult_ == null ? com.google.cloud.dialogflow.v2.QueryResult.getDefaultInstance() : queryResult_; } else { return queryResultBuilder_.getMessage(); } } /** - * - * *
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
@@ -979,8 +891,6 @@ public Builder setQueryResult(com.google.cloud.dialogflow.v2.QueryResult value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
@@ -1000,8 +910,6 @@ public Builder setQueryResult(
       return this;
     }
     /**
-     *
-     *
      * 
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
@@ -1013,9 +921,7 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.v2.QueryResult value
       if (queryResultBuilder_ == null) {
         if (queryResult_ != null) {
           queryResult_ =
-              com.google.cloud.dialogflow.v2.QueryResult.newBuilder(queryResult_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.dialogflow.v2.QueryResult.newBuilder(queryResult_).mergeFrom(value).buildPartial();
         } else {
           queryResult_ = value;
         }
@@ -1027,8 +933,6 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.v2.QueryResult value
       return this;
     }
     /**
-     *
-     *
      * 
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
@@ -1048,8 +952,6 @@ public Builder clearQueryResult() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
@@ -1058,13 +960,11 @@ public Builder clearQueryResult() {
      * .google.cloud.dialogflow.v2.QueryResult query_result = 2;
      */
     public com.google.cloud.dialogflow.v2.QueryResult.Builder getQueryResultBuilder() {
-
+      
       onChanged();
       return getQueryResultFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
@@ -1076,14 +976,11 @@ public com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuild
       if (queryResultBuilder_ != null) {
         return queryResultBuilder_.getMessageOrBuilder();
       } else {
-        return queryResult_ == null
-            ? com.google.cloud.dialogflow.v2.QueryResult.getDefaultInstance()
-            : queryResult_;
+        return queryResult_ == null ?
+            com.google.cloud.dialogflow.v2.QueryResult.getDefaultInstance() : queryResult_;
       }
     }
     /**
-     *
-     *
      * 
      * The selected results of the conversational query or event processing.
      * See `alternative_query_results` for additional potential results.
@@ -1092,17 +989,14 @@ public com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuild
      * .google.cloud.dialogflow.v2.QueryResult query_result = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.QueryResult,
-            com.google.cloud.dialogflow.v2.QueryResult.Builder,
-            com.google.cloud.dialogflow.v2.QueryResultOrBuilder>
+        com.google.cloud.dialogflow.v2.QueryResult, com.google.cloud.dialogflow.v2.QueryResult.Builder, com.google.cloud.dialogflow.v2.QueryResultOrBuilder> 
         getQueryResultFieldBuilder() {
       if (queryResultBuilder_ == null) {
-        queryResultBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.dialogflow.v2.QueryResult,
-                com.google.cloud.dialogflow.v2.QueryResult.Builder,
-                com.google.cloud.dialogflow.v2.QueryResultOrBuilder>(
-                getQueryResult(), getParentForChildren(), isClean());
+        queryResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.dialogflow.v2.QueryResult, com.google.cloud.dialogflow.v2.QueryResult.Builder, com.google.cloud.dialogflow.v2.QueryResultOrBuilder>(
+                getQueryResult(),
+                getParentForChildren(),
+                isClean());
         queryResult_ = null;
       }
       return queryResultBuilder_;
@@ -1110,31 +1004,24 @@ public com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuild
 
     private com.google.rpc.Status webhookStatus_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        webhookStatusBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> webhookStatusBuilder_;
     /**
-     *
-     *
      * 
      * Specifies the status of the webhook request.
      * 
* * .google.rpc.Status webhook_status = 3; - * * @return Whether the webhookStatus field is set. */ public boolean hasWebhookStatus() { return webhookStatusBuilder_ != null || webhookStatus_ != null; } /** - * - * *
      * Specifies the status of the webhook request.
      * 
* * .google.rpc.Status webhook_status = 3; - * * @return The webhookStatus. */ public com.google.rpc.Status getWebhookStatus() { @@ -1145,8 +1032,6 @@ public com.google.rpc.Status getWebhookStatus() { } } /** - * - * *
      * Specifies the status of the webhook request.
      * 
@@ -1167,15 +1052,14 @@ public Builder setWebhookStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Specifies the status of the webhook request.
      * 
* * .google.rpc.Status webhook_status = 3; */ - public Builder setWebhookStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setWebhookStatus( + com.google.rpc.Status.Builder builderForValue) { if (webhookStatusBuilder_ == null) { webhookStatus_ = builderForValue.build(); onChanged(); @@ -1186,8 +1070,6 @@ public Builder setWebhookStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Specifies the status of the webhook request.
      * 
@@ -1198,7 +1080,7 @@ public Builder mergeWebhookStatus(com.google.rpc.Status value) { if (webhookStatusBuilder_ == null) { if (webhookStatus_ != null) { webhookStatus_ = - com.google.rpc.Status.newBuilder(webhookStatus_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(webhookStatus_).mergeFrom(value).buildPartial(); } else { webhookStatus_ = value; } @@ -1210,8 +1092,6 @@ public Builder mergeWebhookStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Specifies the status of the webhook request.
      * 
@@ -1230,8 +1110,6 @@ public Builder clearWebhookStatus() { return this; } /** - * - * *
      * Specifies the status of the webhook request.
      * 
@@ -1239,13 +1117,11 @@ public Builder clearWebhookStatus() { * .google.rpc.Status webhook_status = 3; */ public com.google.rpc.Status.Builder getWebhookStatusBuilder() { - + onChanged(); return getWebhookStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Specifies the status of the webhook request.
      * 
@@ -1256,12 +1132,11 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() { if (webhookStatusBuilder_ != null) { return webhookStatusBuilder_.getMessageOrBuilder(); } else { - return webhookStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : webhookStatus_; + return webhookStatus_ == null ? + com.google.rpc.Status.getDefaultInstance() : webhookStatus_; } } /** - * - * *
      * Specifies the status of the webhook request.
      * 
@@ -1269,15 +1144,14 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() { * .google.rpc.Status webhook_status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getWebhookStatusFieldBuilder() { if (webhookStatusBuilder_ == null) { - webhookStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getWebhookStatus(), getParentForChildren(), isClean()); + webhookStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getWebhookStatus(), + getParentForChildren(), + isClean()); webhookStatus_ = null; } return webhookStatusBuilder_; @@ -1285,8 +1159,6 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() { private com.google.protobuf.ByteString outputAudio_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The audio data bytes encoded as specified in the request.
      * Note: The output audio is generated based on the values of default platform
@@ -1300,7 +1172,6 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
      * 
* * bytes output_audio = 4; - * * @return The outputAudio. */ @java.lang.Override @@ -1308,8 +1179,6 @@ public com.google.protobuf.ByteString getOutputAudio() { return outputAudio_; } /** - * - * *
      * The audio data bytes encoded as specified in the request.
      * Note: The output audio is generated based on the values of default platform
@@ -1323,22 +1192,19 @@ public com.google.protobuf.ByteString getOutputAudio() {
      * 
* * bytes output_audio = 4; - * * @param value The outputAudio to set. * @return This builder for chaining. */ public Builder setOutputAudio(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputAudio_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in the request.
      * Note: The output audio is generated based on the values of default platform
@@ -1352,11 +1218,10 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) {
      * 
* * bytes output_audio = 4; - * * @return This builder for chaining. */ public Builder clearOutputAudio() { - + outputAudio_ = getDefaultInstance().getOutputAudio(); onChanged(); return this; @@ -1364,47 +1229,34 @@ public Builder clearOutputAudio() { private com.google.cloud.dialogflow.v2.OutputAudioConfig outputAudioConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.OutputAudioConfig, - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, - com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> - outputAudioConfigBuilder_; + com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> outputAudioConfigBuilder_; /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; - * * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; - * * @return The outputAudioConfig. */ public com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig() { if (outputAudioConfigBuilder_ == null) { - return outputAudioConfig_ == null - ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() - : outputAudioConfig_; + return outputAudioConfig_ == null ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; } else { return outputAudioConfigBuilder_.getMessage(); } } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
@@ -1425,8 +1277,6 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudioCo return this; } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
@@ -1445,8 +1295,6 @@ public Builder setOutputAudioConfig( return this; } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
@@ -1457,9 +1305,7 @@ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudio if (outputAudioConfigBuilder_ == null) { if (outputAudioConfig_ != null) { outputAudioConfig_ = - com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder(outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.OutputAudioConfig.newBuilder(outputAudioConfig_).mergeFrom(value).buildPartial(); } else { outputAudioConfig_ = value; } @@ -1471,8 +1317,6 @@ public Builder mergeOutputAudioConfig(com.google.cloud.dialogflow.v2.OutputAudio return this; } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
@@ -1491,8 +1335,6 @@ public Builder clearOutputAudioConfig() { return this; } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
@@ -1500,32 +1342,26 @@ public Builder clearOutputAudioConfig() { * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; */ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; */ - public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder - getOutputAudioConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { if (outputAudioConfigBuilder_ != null) { return outputAudioConfigBuilder_.getMessageOrBuilder(); } else { - return outputAudioConfig_ == null - ? com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() - : outputAudioConfig_; + return outputAudioConfig_ == null ? + com.google.cloud.dialogflow.v2.OutputAudioConfig.getDefaultInstance() : outputAudioConfig_; } } /** - * - * *
      * The config used by the speech synthesizer to generate the output audio.
      * 
@@ -1533,24 +1369,21 @@ public com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder getOutputAudioCo * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.OutputAudioConfig, - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, - com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> + com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder> getOutputAudioConfigFieldBuilder() { if (outputAudioConfigBuilder_ == null) { - outputAudioConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.OutputAudioConfig, - com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, - com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>( - getOutputAudioConfig(), getParentForChildren(), isClean()); + outputAudioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.OutputAudioConfig, com.google.cloud.dialogflow.v2.OutputAudioConfig.Builder, com.google.cloud.dialogflow.v2.OutputAudioConfigOrBuilder>( + getOutputAudioConfig(), + getParentForChildren(), + isClean()); outputAudioConfig_ = null; } return outputAudioConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1560,12 +1393,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DetectIntentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DetectIntentResponse) private static final com.google.cloud.dialogflow.v2.DetectIntentResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DetectIntentResponse(); } @@ -1574,16 +1407,16 @@ public static com.google.cloud.dialogflow.v2.DetectIntentResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetectIntentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetectIntentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectIntentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetectIntentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1598,4 +1431,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DetectIntentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java similarity index 82% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java index b6a0fc36e..91cef2fa6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentResponseOrBuilder.java @@ -1,84 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface DetectIntentResponseOrBuilder - extends +public interface DetectIntentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DetectIntentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique identifier of the response. It can be used to
    * locate a response in the training example set or for reporting issues.
    * 
* * string response_id = 1; - * * @return The responseId. */ java.lang.String getResponseId(); /** - * - * *
    * The unique identifier of the response. It can be used to
    * locate a response in the training example set or for reporting issues.
    * 
* * string response_id = 1; - * * @return The bytes for responseId. */ - com.google.protobuf.ByteString getResponseIdBytes(); + com.google.protobuf.ByteString + getResponseIdBytes(); /** - * - * *
    * The selected results of the conversational query or event processing.
    * See `alternative_query_results` for additional potential results.
    * 
* * .google.cloud.dialogflow.v2.QueryResult query_result = 2; - * * @return Whether the queryResult field is set. */ boolean hasQueryResult(); /** - * - * *
    * The selected results of the conversational query or event processing.
    * See `alternative_query_results` for additional potential results.
    * 
* * .google.cloud.dialogflow.v2.QueryResult query_result = 2; - * * @return The queryResult. */ com.google.cloud.dialogflow.v2.QueryResult getQueryResult(); /** - * - * *
    * The selected results of the conversational query or event processing.
    * See `alternative_query_results` for additional potential results.
@@ -89,32 +60,24 @@ public interface DetectIntentResponseOrBuilder
   com.google.cloud.dialogflow.v2.QueryResultOrBuilder getQueryResultOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specifies the status of the webhook request.
    * 
* * .google.rpc.Status webhook_status = 3; - * * @return Whether the webhookStatus field is set. */ boolean hasWebhookStatus(); /** - * - * *
    * Specifies the status of the webhook request.
    * 
* * .google.rpc.Status webhook_status = 3; - * * @return The webhookStatus. */ com.google.rpc.Status getWebhookStatus(); /** - * - * *
    * Specifies the status of the webhook request.
    * 
@@ -124,8 +87,6 @@ public interface DetectIntentResponseOrBuilder com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder(); /** - * - * *
    * The audio data bytes encoded as specified in the request.
    * Note: The output audio is generated based on the values of default platform
@@ -139,38 +100,29 @@ public interface DetectIntentResponseOrBuilder
    * 
* * bytes output_audio = 4; - * * @return The outputAudio. */ com.google.protobuf.ByteString getOutputAudio(); /** - * - * *
    * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; - * * @return Whether the outputAudioConfig field is set. */ boolean hasOutputAudioConfig(); /** - * - * *
    * The config used by the speech synthesizer to generate the output audio.
    * 
* * .google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; - * * @return The outputAudioConfig. */ com.google.cloud.dialogflow.v2.OutputAudioConfig getOutputAudioConfig(); /** - * - * *
    * The config used by the speech synthesizer to generate the output audio.
    * 
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java similarity index 72% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java index 37fb5136c..2a96f5d0d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Document.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/document.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * A knowledge document to be used by a [KnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBase].
  * For more information, see the [knowledge base
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.Document}
  */
-public final class Document extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Document extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Document)
     DocumentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Document.newBuilder() to construct.
   private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Document() {
     name_ = "";
     displayName_ = "";
@@ -50,15 +32,16 @@ private Document() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Document();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Document(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,115 +61,103 @@ private Document(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              mimeType_ = s;
-              break;
+            mimeType_ = s;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              knowledgeTypes_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 32:
-            {
+            knowledgeTypes_.add(rawValue);
+            break;
+          }
+          case 34: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 knowledgeTypes_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               knowledgeTypes_.add(rawValue);
-              break;
-            }
-          case 34:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  knowledgeTypes_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                knowledgeTypes_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              sourceCase_ = 5;
-              source_ = s;
-              break;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                metadata_ =
-                    com.google.protobuf.MapField.newMapField(
-                        MetadataDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry metadata__ =
-                  input.readMessage(
-                      MetadataDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue());
-              break;
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+            sourceCase_ = 5;
+            source_ = s;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              metadata_ = com.google.protobuf.MapField.newMapField(
+                  MetadataDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 74:
-            {
-              sourceCase_ = 9;
-              source_ = input.readBytes();
-              break;
+            com.google.protobuf.MapEntry
+            metadata__ = input.readMessage(
+                MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            metadata_.getMutableMap().put(
+                metadata__.getKey(), metadata__.getValue());
+            break;
+          }
+          case 74: {
+            sourceCase_ = 9;
+            source_ = input.readBytes();
+            break;
+          }
+          case 88: {
+
+            enableAutoReload_ = input.readBool();
+            break;
+          }
+          case 98: {
+            com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder subBuilder = null;
+            if (latestReloadStatus_ != null) {
+              subBuilder = latestReloadStatus_.toBuilder();
             }
-          case 88:
-            {
-              enableAutoReload_ = input.readBool();
-              break;
+            latestReloadStatus_ = input.readMessage(com.google.cloud.dialogflow.v2.Document.ReloadStatus.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(latestReloadStatus_);
+              latestReloadStatus_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder subBuilder = null;
-              if (latestReloadStatus_ != null) {
-                subBuilder = latestReloadStatus_.toBuilder();
-              }
-              latestReloadStatus_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Document.ReloadStatus.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(latestReloadStatus_);
-                latestReloadStatus_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         knowledgeTypes_ = java.util.Collections.unmodifiableList(knowledgeTypes_);
@@ -195,46 +166,41 @@ private Document(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.DocumentProto
-        .internal_static_google_cloud_dialogflow_v2_Document_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetMetadata();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.DocumentProto
-        .internal_static_google_cloud_dialogflow_v2_Document_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.Document.class,
-            com.google.cloud.dialogflow.v2.Document.Builder.class);
+            com.google.cloud.dialogflow.v2.Document.class, com.google.cloud.dialogflow.v2.Document.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The knowledge type of document content.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Document.KnowledgeType} */ - public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum { + public enum KnowledgeType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The type is unspecified or arbitrary.
      * 
@@ -243,8 +209,6 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum { */ KNOWLEDGE_TYPE_UNSPECIFIED(0), /** - * - * *
      * The document content contains question and answer pairs as either HTML or
      * CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats
@@ -258,8 +222,6 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum {
      */
     FAQ(1),
     /**
-     *
-     *
      * 
      * Documents for which unstructured text is extracted and used for
      * question answering.
@@ -269,8 +231,6 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXTRACTIVE_QA(2),
     /**
-     *
-     *
      * 
      * The entire document content as a whole can be used for query results.
      * Only for Contact Center Solutions on Dialogflow.
@@ -283,8 +243,6 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The type is unspecified or arbitrary.
      * 
@@ -293,8 +251,6 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KNOWLEDGE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The document content contains question and answer pairs as either HTML or
      * CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats
@@ -308,8 +264,6 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FAQ_VALUE = 1;
     /**
-     *
-     *
      * 
      * Documents for which unstructured text is extracted and used for
      * question answering.
@@ -319,8 +273,6 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXTRACTIVE_QA_VALUE = 2;
     /**
-     *
-     *
      * 
      * The entire document content as a whole can be used for query results.
      * Only for Contact Center Solutions on Dialogflow.
@@ -330,6 +282,7 @@ public enum KnowledgeType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ARTICLE_SUGGESTION_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -354,51 +307,50 @@ public static KnowledgeType valueOf(int value) {
      */
     public static KnowledgeType forNumber(int value) {
       switch (value) {
-        case 0:
-          return KNOWLEDGE_TYPE_UNSPECIFIED;
-        case 1:
-          return FAQ;
-        case 2:
-          return EXTRACTIVE_QA;
-        case 3:
-          return ARTICLE_SUGGESTION;
-        default:
-          return null;
+        case 0: return KNOWLEDGE_TYPE_UNSPECIFIED;
+        case 1: return FAQ;
+        case 2: return EXTRACTIVE_QA;
+        case 3: return ARTICLE_SUGGESTION;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        KnowledgeType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public KnowledgeType findValueByNumber(int number) {
+              return KnowledgeType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public KnowledgeType findValueByNumber(int number) {
-            return KnowledgeType.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.dialogflow.v2.Document.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final KnowledgeType[] VALUES = values();
 
-    public static KnowledgeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static KnowledgeType valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -415,14 +367,11 @@ private KnowledgeType(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Document.KnowledgeType)
   }
 
-  public interface ReloadStatusOrBuilder
-      extends
+  public interface ReloadStatusOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Document.ReloadStatus)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The time of a reload attempt.
      * This reload may have been triggered automatically or manually and may
@@ -430,13 +379,10 @@ public interface ReloadStatusOrBuilder
      * 
* * .google.protobuf.Timestamp time = 1; - * * @return Whether the time field is set. */ boolean hasTime(); /** - * - * *
      * The time of a reload attempt.
      * This reload may have been triggered automatically or manually and may
@@ -444,13 +390,10 @@ public interface ReloadStatusOrBuilder
      * 
* * .google.protobuf.Timestamp time = 1; - * * @return The time. */ com.google.protobuf.Timestamp getTime(); /** - * - * *
      * The time of a reload attempt.
      * This reload may have been triggered automatically or manually and may
@@ -462,32 +405,24 @@ public interface ReloadStatusOrBuilder
     com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * The status of a reload attempt or the initial load.
      * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
      * The status of a reload attempt or the initial load.
      * 
* * .google.rpc.Status status = 2; - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * *
      * The status of a reload attempt or the initial load.
      * 
@@ -497,37 +432,36 @@ public interface ReloadStatusOrBuilder com.google.rpc.StatusOrBuilder getStatusOrBuilder(); } /** - * - * *
    * The status of a reload attempt.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Document.ReloadStatus} */ - public static final class ReloadStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReloadStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Document.ReloadStatus) ReloadStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReloadStatus.newBuilder() to construct. private ReloadStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReloadStatus() {} + private ReloadStatus() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReloadStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReloadStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -546,74 +480,67 @@ private ReloadStatus( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (time_ != null) { - subBuilder = time_.toBuilder(); - } - time_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(time_); - time_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (time_ != null) { + subBuilder = time_.toBuilder(); + } + time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(time_); + time_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); } - case 18: - { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Document.ReloadStatus.class, - com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder.class); + com.google.cloud.dialogflow.v2.Document.ReloadStatus.class, com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder.class); } public static final int TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp time_; /** - * - * *
      * The time of a reload attempt.
      * This reload may have been triggered automatically or manually and may
@@ -621,7 +548,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp time = 1; - * * @return Whether the time field is set. */ @java.lang.Override @@ -629,8 +555,6 @@ public boolean hasTime() { return time_ != null; } /** - * - * *
      * The time of a reload attempt.
      * This reload may have been triggered automatically or manually and may
@@ -638,7 +562,6 @@ public boolean hasTime() {
      * 
* * .google.protobuf.Timestamp time = 1; - * * @return The time. */ @java.lang.Override @@ -646,8 +569,6 @@ public com.google.protobuf.Timestamp getTime() { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } /** - * - * *
      * The time of a reload attempt.
      * This reload may have been triggered automatically or manually and may
@@ -664,14 +585,11 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
     public static final int STATUS_FIELD_NUMBER = 2;
     private com.google.rpc.Status status_;
     /**
-     *
-     *
      * 
      * The status of a reload attempt or the initial load.
      * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ @java.lang.Override @@ -679,14 +597,11 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
      * The status of a reload attempt or the initial load.
      * 
* * .google.rpc.Status status = 2; - * * @return The status. */ @java.lang.Override @@ -694,8 +609,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
      * The status of a reload attempt or the initial load.
      * 
@@ -708,7 +621,6 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -720,7 +632,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (time_ != null) { output.writeMessage(1, getTime()); } @@ -737,10 +650,12 @@ public int getSerializedSize() { size = 0; if (time_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTime()); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -750,21 +665,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Document.ReloadStatus)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Document.ReloadStatus other = - (com.google.cloud.dialogflow.v2.Document.ReloadStatus) obj; + com.google.cloud.dialogflow.v2.Document.ReloadStatus other = (com.google.cloud.dialogflow.v2.Document.ReloadStatus) obj; if (hasTime() != other.hasTime()) return false; if (hasTime()) { - if (!getTime().equals(other.getTime())) return false; + if (!getTime() + .equals(other.getTime())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -791,94 +707,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Document.ReloadStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Document.ReloadStatus prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Document.ReloadStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -888,32 +797,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The status of a reload attempt.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Document.ReloadStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Document.ReloadStatus) com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Document.ReloadStatus.class, - com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder.class); + com.google.cloud.dialogflow.v2.Document.ReloadStatus.class, com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Document.ReloadStatus.newBuilder() @@ -921,15 +825,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -949,9 +854,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor; } @java.lang.Override @@ -970,8 +875,7 @@ public com.google.cloud.dialogflow.v2.Document.ReloadStatus build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Document.ReloadStatus buildPartial() { - com.google.cloud.dialogflow.v2.Document.ReloadStatus result = - new com.google.cloud.dialogflow.v2.Document.ReloadStatus(this); + com.google.cloud.dialogflow.v2.Document.ReloadStatus result = new com.google.cloud.dialogflow.v2.Document.ReloadStatus(this); if (timeBuilder_ == null) { result.time_ = time_; } else { @@ -990,41 +894,38 @@ public com.google.cloud.dialogflow.v2.Document.ReloadStatus buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Document.ReloadStatus) { - return mergeFrom((com.google.cloud.dialogflow.v2.Document.ReloadStatus) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Document.ReloadStatus)other); } else { super.mergeFrom(other); return this; @@ -1032,8 +933,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Document.ReloadStatus other) { - if (other == com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance()) return this; if (other.hasTime()) { mergeTime(other.getTime()); } @@ -1059,8 +959,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Document.ReloadStatus) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Document.ReloadStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1072,13 +971,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp time_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - timeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; /** - * - * *
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1086,15 +980,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp time = 1; - * * @return Whether the time field is set. */ public boolean hasTime() { return timeBuilder_ != null || time_ != null; } /** - * - * *
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1102,7 +993,6 @@ public boolean hasTime() {
        * 
* * .google.protobuf.Timestamp time = 1; - * * @return The time. */ public com.google.protobuf.Timestamp getTime() { @@ -1113,8 +1003,6 @@ public com.google.protobuf.Timestamp getTime() { } } /** - * - * *
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1137,8 +1025,6 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1147,7 +1033,8 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp time = 1;
        */
-      public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (timeBuilder_ == null) {
           time_ = builderForValue.build();
           onChanged();
@@ -1158,8 +1045,6 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1171,7 +1056,8 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       public Builder mergeTime(com.google.protobuf.Timestamp value) {
         if (timeBuilder_ == null) {
           if (time_ != null) {
-            time_ = com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial();
+            time_ =
+              com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial();
           } else {
             time_ = value;
           }
@@ -1183,8 +1069,6 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1205,8 +1089,6 @@ public Builder clearTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1216,13 +1098,11 @@ public Builder clearTime() {
        * .google.protobuf.Timestamp time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
-
+        
         onChanged();
         return getTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1235,12 +1115,11 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
         if (timeBuilder_ != null) {
           return timeBuilder_.getMessageOrBuilder();
         } else {
-          return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_;
+          return time_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : time_;
         }
       }
       /**
-       *
-       *
        * 
        * The time of a reload attempt.
        * This reload may have been triggered automatically or manually and may
@@ -1250,17 +1129,14 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
        * .google.protobuf.Timestamp time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getTimeFieldBuilder() {
         if (timeBuilder_ == null) {
-          timeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getTime(), getParentForChildren(), isClean());
+          timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getTime(),
+                  getParentForChildren(),
+                  isClean());
           time_ = null;
         }
         return timeBuilder_;
@@ -1268,31 +1144,24 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
 
       private com.google.rpc.Status status_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-          statusBuilder_;
+          com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_;
       /**
-       *
-       *
        * 
        * The status of a reload attempt or the initial load.
        * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
* * .google.rpc.Status status = 2; - * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -1303,8 +1172,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
@@ -1325,15 +1192,14 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
* * .google.rpc.Status status = 2; */ - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -1344,8 +1210,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
@@ -1355,7 +1219,8 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { - status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + status_ = + com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -1367,8 +1232,6 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
@@ -1387,8 +1250,6 @@ public Builder clearStatus() { return this; } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
@@ -1396,13 +1257,11 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
@@ -1413,12 +1272,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } } /** - * - * *
        * The status of a reload attempt or the initial load.
        * 
@@ -1426,19 +1284,18 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1451,12 +1308,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Document.ReloadStatus) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Document.ReloadStatus) private static final com.google.cloud.dialogflow.v2.Document.ReloadStatus DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Document.ReloadStatus(); } @@ -1465,16 +1322,16 @@ public static com.google.cloud.dialogflow.v2.Document.ReloadStatus getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReloadStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReloadStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReloadStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReloadStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1489,20 +1346,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Document.ReloadStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONTENT_URI(5), RAW_CONTENT(9), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -1518,31 +1373,26 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 5: - return CONTENT_URI; - case 9: - return RAW_CONTENT; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 5: return CONTENT_URI; + case 9: return RAW_CONTENT; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Optional. The document resource name.
    * The name must be empty when creating a document.
@@ -1551,7 +1401,6 @@ public SourceCase getSourceCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -1560,15 +1409,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Optional. The document resource name.
    * The name must be empty when creating a document.
@@ -1577,15 +1425,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1596,15 +1445,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The display name of the document. The name must be 1024 bytes or
    * less; otherwise, the creation request fails.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -1613,30 +1459,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The display name of the document. The name must be 1024 bytes or
    * less; otherwise, the creation request fails.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1647,14 +1493,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MIME_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object mimeType_; /** - * - * *
    * Required. The MIME type of this document.
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mimeType. */ @java.lang.Override @@ -1663,29 +1506,29 @@ public java.lang.String getMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; } } /** - * - * *
    * Required. The MIME type of this document.
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -1696,51 +1539,34 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int KNOWLEDGE_TYPES_FIELD_NUMBER = 4; private java.util.List knowledgeTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.dialogflow.v2.Document.KnowledgeType> - knowledgeTypes_converter_ = + java.lang.Integer, com.google.cloud.dialogflow.v2.Document.KnowledgeType> knowledgeTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dialogflow.v2.Document.KnowledgeType>() { - public com.google.cloud.dialogflow.v2.Document.KnowledgeType convert( - java.lang.Integer from) { + public com.google.cloud.dialogflow.v2.Document.KnowledgeType convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Document.KnowledgeType result = - com.google.cloud.dialogflow.v2.Document.KnowledgeType.valueOf(from); - return result == null - ? com.google.cloud.dialogflow.v2.Document.KnowledgeType.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Document.KnowledgeType result = com.google.cloud.dialogflow.v2.Document.KnowledgeType.valueOf(from); + return result == null ? com.google.cloud.dialogflow.v2.Document.KnowledgeType.UNRECOGNIZED : result; } }; /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the knowledgeTypes. */ @java.lang.Override - public java.util.List - getKnowledgeTypesList() { + public java.util.List getKnowledgeTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dialogflow.v2.Document.KnowledgeType>( - knowledgeTypes_, knowledgeTypes_converter_); + java.lang.Integer, com.google.cloud.dialogflow.v2.Document.KnowledgeType>(knowledgeTypes_, knowledgeTypes_converter_); } /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The count of knowledgeTypes. */ @java.lang.Override @@ -1748,16 +1574,11 @@ public int getKnowledgeTypesCount() { return knowledgeTypes_.size(); } /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The knowledgeTypes at the given index. */ @@ -1766,33 +1587,24 @@ public com.google.cloud.dialogflow.v2.Document.KnowledgeType getKnowledgeTypes(i return knowledgeTypes_converter_.convert(knowledgeTypes_.get(index)); } /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for knowledgeTypes. */ @java.lang.Override - public java.util.List getKnowledgeTypesValueList() { + public java.util.List + getKnowledgeTypesValueList() { return knowledgeTypes_; } /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knowledgeTypes at the given index. */ @@ -1800,13 +1612,10 @@ public java.util.List getKnowledgeTypesValueList() { public int getKnowledgeTypesValue(int index) { return knowledgeTypes_.get(index); } - private int knowledgeTypesMemoizedSerializedSize; public static final int CONTENT_URI_FIELD_NUMBER = 5; /** - * - * *
    * The URI where the file content is located.
    * For documents stored in Google Cloud Storage, these URIs must have
@@ -1818,15 +1627,12 @@ public int getKnowledgeTypesValue(int index) {
    * 
* * string content_uri = 5; - * * @return Whether the contentUri field is set. */ public boolean hasContentUri() { return sourceCase_ == 5; } /** - * - * *
    * The URI where the file content is located.
    * For documents stored in Google Cloud Storage, these URIs must have
@@ -1838,7 +1644,6 @@ public boolean hasContentUri() {
    * 
* * string content_uri = 5; - * * @return The contentUri. */ public java.lang.String getContentUri() { @@ -1849,7 +1654,8 @@ public java.lang.String getContentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 5) { source_ = s; @@ -1858,8 +1664,6 @@ public java.lang.String getContentUri() { } } /** - * - * *
    * The URI where the file content is located.
    * For documents stored in Google Cloud Storage, these URIs must have
@@ -1871,17 +1675,18 @@ public java.lang.String getContentUri() {
    * 
* * string content_uri = 5; - * * @return The bytes for contentUri. */ - public com.google.protobuf.ByteString getContentUriBytes() { + public com.google.protobuf.ByteString + getContentUriBytes() { java.lang.Object ref = ""; if (sourceCase_ == 5) { ref = source_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 5) { source_ = b; } @@ -1893,15 +1698,12 @@ public com.google.protobuf.ByteString getContentUriBytes() { public static final int RAW_CONTENT_FIELD_NUMBER = 9; /** - * - * *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
    * 
* * bytes raw_content = 9; - * * @return Whether the rawContent field is set. */ @java.lang.Override @@ -1909,15 +1711,12 @@ public boolean hasRawContent() { return sourceCase_ == 9; } /** - * - * *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
    * 
* * bytes raw_content = 9; - * * @return The rawContent. */ @java.lang.Override @@ -1931,8 +1730,6 @@ public com.google.protobuf.ByteString getRawContent() { public static final int ENABLE_AUTO_RELOAD_FIELD_NUMBER = 11; private boolean enableAutoReload_; /** - * - * *
    * Optional. If true, we try to automatically reload the document every day
    * (at a time picked by the system). If false or unspecified, we don't try
@@ -1950,7 +1747,6 @@ public com.google.protobuf.ByteString getRawContent() {
    * 
* * bool enable_auto_reload = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableAutoReload. */ @java.lang.Override @@ -1961,18 +1757,13 @@ public boolean getEnableAutoReload() { public static final int LATEST_RELOAD_STATUS_FIELD_NUMBER = 12; private com.google.cloud.dialogflow.v2.Document.ReloadStatus latestReloadStatus_; /** - * - * *
    * Output only. The time and status of the latest reload.
    * This reload may have been triggered automatically or manually
    * and may not have succeeded.
    * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the latestReloadStatus field is set. */ @java.lang.Override @@ -1980,63 +1771,52 @@ public boolean hasLatestReloadStatus() { return latestReloadStatus_ != null; } /** - * - * *
    * Output only. The time and status of the latest reload.
    * This reload may have been triggered automatically or manually
    * and may not have succeeded.
    * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The latestReloadStatus. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Document.ReloadStatus getLatestReloadStatus() { - return latestReloadStatus_ == null - ? com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance() - : latestReloadStatus_; + return latestReloadStatus_ == null ? com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance() : latestReloadStatus_; } /** - * - * *
    * Output only. The time and status of the latest reload.
    * This reload may have been triggered automatically or manually
    * and may not have succeeded.
    * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder - getLatestReloadStatusOrBuilder() { + public com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder getLatestReloadStatusOrBuilder() { return getLatestReloadStatus(); } public static final int METADATA_FIELD_NUMBER = 7; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_Document_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -2045,8 +1825,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -2056,22 +1834,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -2082,12 +1860,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -2098,17 +1875,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -2119,11 +1895,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -2131,7 +1908,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2143,7 +1919,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     getSerializedSize();
     if (!getNameBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -2164,10 +1941,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (sourceCase_ == 5) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, source_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 7);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetMetadata(),
+        MetadataDefaultEntryHolder.defaultEntry,
+        7);
     if (sourceCase_ == 9) {
-      output.writeBytes(9, (com.google.protobuf.ByteString) source_);
+      output.writeBytes(
+          9, (com.google.protobuf.ByteString) source_);
     }
     if (enableAutoReload_ != false) {
       output.writeBool(11, enableAutoReload_);
@@ -2196,39 +1978,40 @@ public int getSerializedSize() {
     {
       int dataSize = 0;
       for (int i = 0; i < knowledgeTypes_.size(); i++) {
-        dataSize +=
-            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(knowledgeTypes_.get(i));
+        dataSize += com.google.protobuf.CodedOutputStream
+          .computeEnumSizeNoTag(knowledgeTypes_.get(i));
       }
       size += dataSize;
-      if (!getKnowledgeTypesList().isEmpty()) {
-        size += 1;
-        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
-      }
-      knowledgeTypesMemoizedSerializedSize = dataSize;
+      if (!getKnowledgeTypesList().isEmpty()) {  size += 1;
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt32SizeNoTag(dataSize);
+      }knowledgeTypesMemoizedSerializedSize = dataSize;
     }
     if (sourceCase_ == 5) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, source_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry metadata__ =
-          MetadataDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, metadata__);
+    for (java.util.Map.Entry entry
+         : internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, metadata__);
     }
     if (sourceCase_ == 9) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeBytesSize(
-              9, (com.google.protobuf.ByteString) source_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(
+            9, (com.google.protobuf.ByteString) source_);
     }
     if (enableAutoReload_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableAutoReload_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(11, enableAutoReload_);
     }
     if (latestReloadStatus_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLatestReloadStatus());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(12, getLatestReloadStatus());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -2238,30 +2021,38 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.dialogflow.v2.Document)) {
       return super.equals(obj);
     }
     com.google.cloud.dialogflow.v2.Document other = (com.google.cloud.dialogflow.v2.Document) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!getMimeType().equals(other.getMimeType())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!getMimeType()
+        .equals(other.getMimeType())) return false;
     if (!knowledgeTypes_.equals(other.knowledgeTypes_)) return false;
-    if (getEnableAutoReload() != other.getEnableAutoReload()) return false;
+    if (getEnableAutoReload()
+        != other.getEnableAutoReload()) return false;
     if (hasLatestReloadStatus() != other.hasLatestReloadStatus()) return false;
     if (hasLatestReloadStatus()) {
-      if (!getLatestReloadStatus().equals(other.getLatestReloadStatus())) return false;
+      if (!getLatestReloadStatus()
+          .equals(other.getLatestReloadStatus())) return false;
     }
-    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
+    if (!internalGetMetadata().equals(
+        other.internalGetMetadata())) return false;
     if (!getSourceCase().equals(other.getSourceCase())) return false;
     switch (sourceCase_) {
       case 5:
-        if (!getContentUri().equals(other.getContentUri())) return false;
+        if (!getContentUri()
+            .equals(other.getContentUri())) return false;
         break;
       case 9:
-        if (!getRawContent().equals(other.getRawContent())) return false;
+        if (!getRawContent()
+            .equals(other.getRawContent())) return false;
         break;
       case 0:
       default:
@@ -2288,7 +2079,8 @@ public int hashCode() {
       hash = (53 * hash) + knowledgeTypes_.hashCode();
     }
     hash = (37 * hash) + ENABLE_AUTO_RELOAD_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAutoReload());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getEnableAutoReload());
     if (hasLatestReloadStatus()) {
       hash = (37 * hash) + LATEST_RELOAD_STATUS_FIELD_NUMBER;
       hash = (53 * hash) + getLatestReloadStatus().hashCode();
@@ -2314,104 +2106,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.dialogflow.v2.Document parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.dialogflow.v2.Document parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.dialogflow.v2.Document parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.dialogflow.v2.Document parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.dialogflow.v2.Document parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.dialogflow.v2.Document prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A knowledge document to be used by a [KnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBase].
    * For more information, see the [knowledge base
@@ -2422,43 +2207,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Document}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Document)
       com.google.cloud.dialogflow.v2.DocumentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.DocumentProto
-          .internal_static_google_cloud_dialogflow_v2_Document_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.DocumentProto
-          .internal_static_google_cloud_dialogflow_v2_Document_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Document.class,
-              com.google.cloud.dialogflow.v2.Document.Builder.class);
+              com.google.cloud.dialogflow.v2.Document.class, com.google.cloud.dialogflow.v2.Document.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.Document.newBuilder()
@@ -2466,15 +2251,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2501,9 +2287,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.DocumentProto
-          .internal_static_google_cloud_dialogflow_v2_Document_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_Document_descriptor;
     }
 
     @java.lang.Override
@@ -2522,8 +2308,7 @@ public com.google.cloud.dialogflow.v2.Document build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.Document buildPartial() {
-      com.google.cloud.dialogflow.v2.Document result =
-          new com.google.cloud.dialogflow.v2.Document(this);
+      com.google.cloud.dialogflow.v2.Document result = new com.google.cloud.dialogflow.v2.Document(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -2556,39 +2341,38 @@ public com.google.cloud.dialogflow.v2.Document buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.Document) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.Document) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.Document)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2625,24 +2409,22 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Document other) {
       if (other.hasLatestReloadStatus()) {
         mergeLatestReloadStatus(other.getLatestReloadStatus());
       }
-      internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
+      internalGetMutableMetadata().mergeFrom(
+          other.internalGetMetadata());
       switch (other.getSourceCase()) {
-        case CONTENT_URI:
-          {
-            sourceCase_ = 5;
-            source_ = other.source_;
-            onChanged();
-            break;
-          }
-        case RAW_CONTENT:
-          {
-            setRawContent(other.getRawContent());
-            break;
-          }
-        case SOURCE_NOT_SET:
-          {
-            break;
-          }
+        case CONTENT_URI: {
+          sourceCase_ = 5;
+          source_ = other.source_;
+          onChanged();
+          break;
+        }
+        case RAW_CONTENT: {
+          setRawContent(other.getRawContent());
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2672,12 +2454,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -2691,8 +2473,6 @@ public Builder clearSource() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Optional. The document resource name.
      * The name must be empty when creating a document.
@@ -2701,13 +2481,13 @@ public Builder clearSource() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2716,8 +2496,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Optional. The document resource name.
      * The name must be empty when creating a document.
@@ -2726,14 +2504,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2741,8 +2520,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Optional. The document resource name.
      * The name must be empty when creating a document.
@@ -2751,22 +2528,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The document resource name.
      * The name must be empty when creating a document.
@@ -2775,18 +2550,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Optional. The document resource name.
      * The name must be empty when creating a document.
@@ -2795,16 +2567,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2812,21 +2584,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The display name of the document. The name must be 1024 bytes or
      * less; otherwise, the creation request fails.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2835,22 +2605,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The display name of the document. The name must be 1024 bytes or
      * less; otherwise, the creation request fails.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2858,64 +2627,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The display name of the document. The name must be 1024 bytes or
      * less; otherwise, the creation request fails.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The display name of the document. The name must be 1024 bytes or
      * less; otherwise, the creation request fails.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The display name of the document. The name must be 1024 bytes or
      * less; otherwise, the creation request fails.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2923,20 +2685,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Required. The MIME type of this document.
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mimeType. */ public java.lang.String getMimeType() { java.lang.Object ref = mimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mimeType_ = s; return s; @@ -2945,21 +2705,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Required. The MIME type of this document.
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mimeType. */ - public com.google.protobuf.ByteString getMimeTypeBytes() { + public com.google.protobuf.ByteString + getMimeTypeBytes() { java.lang.Object ref = mimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mimeType_ = b; return b; } else { @@ -2967,68 +2726,61 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Required. The MIME type of this document.
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The mimeType to set. * @return This builder for chaining. */ - public Builder setMimeType(java.lang.String value) { + public Builder setMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** - * - * *
      * Required. The MIME type of this document.
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Required. The MIME type of this document.
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } - private java.util.List knowledgeTypes_ = java.util.Collections.emptyList(); - + private java.util.List knowledgeTypes_ = + java.util.Collections.emptyList(); private void ensureKnowledgeTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { knowledgeTypes_ = new java.util.ArrayList(knowledgeTypes_); @@ -3036,51 +2788,34 @@ private void ensureKnowledgeTypesIsMutable() { } } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the knowledgeTypes. */ - public java.util.List - getKnowledgeTypesList() { + public java.util.List getKnowledgeTypesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.dialogflow.v2.Document.KnowledgeType>( - knowledgeTypes_, knowledgeTypes_converter_); + java.lang.Integer, com.google.cloud.dialogflow.v2.Document.KnowledgeType>(knowledgeTypes_, knowledgeTypes_converter_); } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The count of knowledgeTypes. */ public int getKnowledgeTypesCount() { return knowledgeTypes_.size(); } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The knowledgeTypes at the given index. */ @@ -3088,16 +2823,11 @@ public com.google.cloud.dialogflow.v2.Document.KnowledgeType getKnowledgeTypes(i return knowledgeTypes_converter_.convert(knowledgeTypes_.get(index)); } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The knowledgeTypes to set. * @return This builder for chaining. @@ -3113,16 +2843,11 @@ public Builder setKnowledgeTypes( return this; } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param value The knowledgeTypes to add. * @return This builder for chaining. */ @@ -3136,22 +2861,16 @@ public Builder addKnowledgeTypes(com.google.cloud.dialogflow.v2.Document.Knowled return this; } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param values The knowledgeTypes to add. * @return This builder for chaining. */ public Builder addAllKnowledgeTypes( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureKnowledgeTypesIsMutable(); for (com.google.cloud.dialogflow.v2.Document.KnowledgeType value : values) { knowledgeTypes_.add(value.getNumber()); @@ -3160,16 +2879,11 @@ public Builder addAllKnowledgeTypes( return this; } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearKnowledgeTypes() { @@ -3179,32 +2893,23 @@ public Builder clearKnowledgeTypes() { return this; } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for knowledgeTypes. */ - public java.util.List getKnowledgeTypesValueList() { + public java.util.List + getKnowledgeTypesValueList() { return java.util.Collections.unmodifiableList(knowledgeTypes_); } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knowledgeTypes at the given index. */ @@ -3212,37 +2917,28 @@ public int getKnowledgeTypesValue(int index) { return knowledgeTypes_.get(index); } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knowledgeTypes at the given index. * @return This builder for chaining. */ - public Builder setKnowledgeTypesValue(int index, int value) { + public Builder setKnowledgeTypesValue( + int index, int value) { ensureKnowledgeTypesIsMutable(); knowledgeTypes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for knowledgeTypes to add. * @return This builder for chaining. */ @@ -3253,20 +2949,16 @@ public Builder addKnowledgeTypesValue(int value) { return this; } /** - * - * *
      * Required. The knowledge type of document content.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param values The enum numeric values on the wire for knowledgeTypes to add. * @return This builder for chaining. */ - public Builder addAllKnowledgeTypesValue(java.lang.Iterable values) { + public Builder addAllKnowledgeTypesValue( + java.lang.Iterable values) { ensureKnowledgeTypesIsMutable(); for (int value : values) { knowledgeTypes_.add(value); @@ -3276,8 +2968,6 @@ public Builder addAllKnowledgeTypesValue(java.lang.Iterable v } /** - * - * *
      * The URI where the file content is located.
      * For documents stored in Google Cloud Storage, these URIs must have
@@ -3289,7 +2979,6 @@ public Builder addAllKnowledgeTypesValue(java.lang.Iterable v
      * 
* * string content_uri = 5; - * * @return Whether the contentUri field is set. */ @java.lang.Override @@ -3297,8 +2986,6 @@ public boolean hasContentUri() { return sourceCase_ == 5; } /** - * - * *
      * The URI where the file content is located.
      * For documents stored in Google Cloud Storage, these URIs must have
@@ -3310,7 +2997,6 @@ public boolean hasContentUri() {
      * 
* * string content_uri = 5; - * * @return The contentUri. */ @java.lang.Override @@ -3320,7 +3006,8 @@ public java.lang.String getContentUri() { ref = source_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 5) { source_ = s; @@ -3331,8 +3018,6 @@ public java.lang.String getContentUri() { } } /** - * - * *
      * The URI where the file content is located.
      * For documents stored in Google Cloud Storage, these URIs must have
@@ -3344,18 +3029,19 @@ public java.lang.String getContentUri() {
      * 
* * string content_uri = 5; - * * @return The bytes for contentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getContentUriBytes() { + public com.google.protobuf.ByteString + getContentUriBytes() { java.lang.Object ref = ""; if (sourceCase_ == 5) { ref = source_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCase_ == 5) { source_ = b; } @@ -3365,8 +3051,6 @@ public com.google.protobuf.ByteString getContentUriBytes() { } } /** - * - * *
      * The URI where the file content is located.
      * For documents stored in Google Cloud Storage, these URIs must have
@@ -3378,22 +3062,20 @@ public com.google.protobuf.ByteString getContentUriBytes() {
      * 
* * string content_uri = 5; - * * @param value The contentUri to set. * @return This builder for chaining. */ - public Builder setContentUri(java.lang.String value) { + public Builder setContentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 5; + throw new NullPointerException(); + } + sourceCase_ = 5; source_ = value; onChanged(); return this; } /** - * - * *
      * The URI where the file content is located.
      * For documents stored in Google Cloud Storage, these URIs must have
@@ -3405,7 +3087,6 @@ public Builder setContentUri(java.lang.String value) {
      * 
* * string content_uri = 5; - * * @return This builder for chaining. */ public Builder clearContentUri() { @@ -3417,8 +3098,6 @@ public Builder clearContentUri() { return this; } /** - * - * *
      * The URI where the file content is located.
      * For documents stored in Google Cloud Storage, these URIs must have
@@ -3430,15 +3109,15 @@ public Builder clearContentUri() {
      * 
* * string content_uri = 5; - * * @param value The bytes for contentUri to set. * @return This builder for chaining. */ - public Builder setContentUriBytes(com.google.protobuf.ByteString value) { + public Builder setContentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 5; source_ = value; onChanged(); @@ -3446,30 +3125,24 @@ public Builder setContentUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
      * 
* * bytes raw_content = 9; - * * @return Whether the rawContent field is set. */ public boolean hasRawContent() { return sourceCase_ == 9; } /** - * - * *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
      * 
* * bytes raw_content = 9; - * * @return The rawContent. */ public com.google.protobuf.ByteString getRawContent() { @@ -3479,37 +3152,31 @@ public com.google.protobuf.ByteString getRawContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
      * 
* * bytes raw_content = 9; - * * @param value The rawContent to set. * @return This builder for chaining. */ public Builder setRawContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 9; + throw new NullPointerException(); + } + sourceCase_ = 9; source_ = value; onChanged(); return this; } /** - * - * *
      * The raw content of the document. This field is only permitted for
      * EXTRACTIVE_QA and FAQ knowledge types.
      * 
* * bytes raw_content = 9; - * * @return This builder for chaining. */ public Builder clearRawContent() { @@ -3521,10 +3188,8 @@ public Builder clearRawContent() { return this; } - private boolean enableAutoReload_; + private boolean enableAutoReload_ ; /** - * - * *
      * Optional. If true, we try to automatically reload the document every day
      * (at a time picked by the system). If false or unspecified, we don't try
@@ -3542,7 +3207,6 @@ public Builder clearRawContent() {
      * 
* * bool enable_auto_reload = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableAutoReload. */ @java.lang.Override @@ -3550,8 +3214,6 @@ public boolean getEnableAutoReload() { return enableAutoReload_; } /** - * - * *
      * Optional. If true, we try to automatically reload the document every day
      * (at a time picked by the system). If false or unspecified, we don't try
@@ -3569,19 +3231,16 @@ public boolean getEnableAutoReload() {
      * 
* * bool enable_auto_reload = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableAutoReload to set. * @return This builder for chaining. */ public Builder setEnableAutoReload(boolean value) { - + enableAutoReload_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If true, we try to automatically reload the document every day
      * (at a time picked by the system). If false or unspecified, we don't try
@@ -3599,11 +3258,10 @@ public Builder setEnableAutoReload(boolean value) {
      * 
* * bool enable_auto_reload = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableAutoReload() { - + enableAutoReload_ = false; onChanged(); return this; @@ -3611,67 +3269,47 @@ public Builder clearEnableAutoReload() { private com.google.cloud.dialogflow.v2.Document.ReloadStatus latestReloadStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Document.ReloadStatus, - com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder, - com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder> - latestReloadStatusBuilder_; + com.google.cloud.dialogflow.v2.Document.ReloadStatus, com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder, com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder> latestReloadStatusBuilder_; /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the latestReloadStatus field is set. */ public boolean hasLatestReloadStatus() { return latestReloadStatusBuilder_ != null || latestReloadStatus_ != null; } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The latestReloadStatus. */ public com.google.cloud.dialogflow.v2.Document.ReloadStatus getLatestReloadStatus() { if (latestReloadStatusBuilder_ == null) { - return latestReloadStatus_ == null - ? com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance() - : latestReloadStatus_; + return latestReloadStatus_ == null ? com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance() : latestReloadStatus_; } else { return latestReloadStatusBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLatestReloadStatus( - com.google.cloud.dialogflow.v2.Document.ReloadStatus value) { + public Builder setLatestReloadStatus(com.google.cloud.dialogflow.v2.Document.ReloadStatus value) { if (latestReloadStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3685,17 +3323,13 @@ public Builder setLatestReloadStatus( return this; } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLatestReloadStatus( com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder builderForValue) { @@ -3709,26 +3343,19 @@ public Builder setLatestReloadStatus( return this; } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeLatestReloadStatus( - com.google.cloud.dialogflow.v2.Document.ReloadStatus value) { + public Builder mergeLatestReloadStatus(com.google.cloud.dialogflow.v2.Document.ReloadStatus value) { if (latestReloadStatusBuilder_ == null) { if (latestReloadStatus_ != null) { latestReloadStatus_ = - com.google.cloud.dialogflow.v2.Document.ReloadStatus.newBuilder(latestReloadStatus_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Document.ReloadStatus.newBuilder(latestReloadStatus_).mergeFrom(value).buildPartial(); } else { latestReloadStatus_ = value; } @@ -3740,17 +3367,13 @@ public Builder mergeLatestReloadStatus( return this; } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLatestReloadStatus() { if (latestReloadStatusBuilder_ == null) { @@ -3764,93 +3387,75 @@ public Builder clearLatestReloadStatus() { return this; } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder - getLatestReloadStatusBuilder() { - + public com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder getLatestReloadStatusBuilder() { + onChanged(); return getLatestReloadStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder - getLatestReloadStatusOrBuilder() { + public com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder getLatestReloadStatusOrBuilder() { if (latestReloadStatusBuilder_ != null) { return latestReloadStatusBuilder_.getMessageOrBuilder(); } else { - return latestReloadStatus_ == null - ? com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance() - : latestReloadStatus_; + return latestReloadStatus_ == null ? + com.google.cloud.dialogflow.v2.Document.ReloadStatus.getDefaultInstance() : latestReloadStatus_; } } /** - * - * *
      * Output only. The time and status of the latest reload.
      * This reload may have been triggered automatically or manually
      * and may not have succeeded.
      * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Document.ReloadStatus, - com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder, - com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder> + com.google.cloud.dialogflow.v2.Document.ReloadStatus, com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder, com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder> getLatestReloadStatusFieldBuilder() { if (latestReloadStatusBuilder_ == null) { - latestReloadStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Document.ReloadStatus, - com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder, - com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder>( - getLatestReloadStatus(), getParentForChildren(), isClean()); + latestReloadStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Document.ReloadStatus, com.google.cloud.dialogflow.v2.Document.ReloadStatus.Builder, com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder>( + getLatestReloadStatus(), + getParentForChildren(), + isClean()); latestReloadStatus_ = null; } return latestReloadStatusBuilder_; } - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; + internalGetMutableMetadata() { + onChanged();; if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -3862,8 +3467,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
      * Optional. Metadata for the document. The metadata supports arbitrary
      * key-value pairs. Suggested use cases include storing a document's title,
@@ -3871,25 +3474,24 @@ public int getMetadataCount() {
      * The max size of a `key` or a `value` of the metadata is 1024 bytes.
      * 
* - * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
      * Optional. Metadata for the document. The metadata supports arbitrary
      * key-value pairs. Suggested use cases include storing a document's title,
@@ -3897,16 +3499,14 @@ public java.util.Map getMetadata() {
      * The max size of a `key` or a `value` of the metadata is 1024 bytes.
      * 
* - * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
      * Optional. Metadata for the document. The metadata supports arbitrary
      * key-value pairs. Suggested use cases include storing a document's title,
@@ -3914,21 +3514,19 @@ public java.util.Map getMetadataMap() {
      * The max size of a `key` or a `value` of the metadata is 1024 bytes.
      * 
* - * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getMetadataOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Metadata for the document. The metadata supports arbitrary
      * key-value pairs. Suggested use cases include storing a document's title,
@@ -3936,15 +3534,15 @@ public java.lang.String getMetadataOrDefault(
      * The max size of a `key` or a `value` of the metadata is 1024 bytes.
      * 
* - * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3952,12 +3550,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap().clear(); + internalGetMutableMetadata().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Metadata for the document. The metadata supports arbitrary
      * key-value pairs. Suggested use cases include storing a document's title,
@@ -3965,24 +3562,25 @@ public Builder clearMetadata() {
      * The max size of a `key` or a `value` of the metadata is 1024 bytes.
      * 
* - * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeMetadata(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMetadata().getMutableMap().remove(key); + + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMetadata().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableMetadata() { + public java.util.Map + getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** - * - * *
      * Optional. Metadata for the document. The metadata supports arbitrary
      * key-value pairs. Suggested use cases include storing a document's title,
@@ -3990,22 +3588,18 @@ public java.util.Map getMutableMetadata() {
      * The max size of a `key` or a `value` of the metadata is 1024 bytes.
      * 
* - * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putMetadata(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMetadata().getMutableMap().put(key, value); + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Metadata for the document. The metadata supports arbitrary
      * key-value pairs. Suggested use cases include storing a document's title,
@@ -4013,16 +3607,18 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      * The max size of a `key` or a `value` of the metadata is 1024 bytes.
      * 
* - * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllMetadata(java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); + + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4032,12 +3628,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Document) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Document) private static final com.google.cloud.dialogflow.v2.Document DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Document(); } @@ -4046,16 +3642,16 @@ public static com.google.cloud.dialogflow.v2.Document getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Document parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Document(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Document parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Document(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4070,4 +3666,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Document getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java similarity index 77% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java index 8b68c969b..ebff4085b 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/document.proto package com.google.cloud.dialogflow.v2; -public interface DocumentOrBuilder - extends +public interface DocumentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Document) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The document resource name.
    * The name must be empty when creating a document.
@@ -34,13 +16,10 @@ public interface DocumentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Optional. The document resource name.
    * The name must be empty when creating a document.
@@ -49,139 +28,103 @@ public interface DocumentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The display name of the document. The name must be 1024 bytes or
    * less; otherwise, the creation request fails.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The display name of the document. The name must be 1024 bytes or
    * less; otherwise, the creation request fails.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. The MIME type of this document.
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Required. The MIME type of this document.
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the knowledgeTypes. */ java.util.List getKnowledgeTypesList(); /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The count of knowledgeTypes. */ int getKnowledgeTypesCount(); /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The knowledgeTypes at the given index. */ com.google.cloud.dialogflow.v2.Document.KnowledgeType getKnowledgeTypes(int index); /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the enum numeric values on the wire for knowledgeTypes. */ - java.util.List getKnowledgeTypesValueList(); + java.util.List + getKnowledgeTypesValueList(); /** - * - * *
    * Required. The knowledge type of document content.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 4 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The enum numeric value on the wire of knowledgeTypes at the given index. */ int getKnowledgeTypesValue(int index); /** - * - * *
    * The URI where the file content is located.
    * For documents stored in Google Cloud Storage, these URIs must have
@@ -193,13 +136,10 @@ public interface DocumentOrBuilder
    * 
* * string content_uri = 5; - * * @return Whether the contentUri field is set. */ boolean hasContentUri(); /** - * - * *
    * The URI where the file content is located.
    * For documents stored in Google Cloud Storage, these URIs must have
@@ -211,13 +151,10 @@ public interface DocumentOrBuilder
    * 
* * string content_uri = 5; - * * @return The contentUri. */ java.lang.String getContentUri(); /** - * - * *
    * The URI where the file content is located.
    * For documents stored in Google Cloud Storage, these URIs must have
@@ -229,41 +166,33 @@ public interface DocumentOrBuilder
    * 
* * string content_uri = 5; - * * @return The bytes for contentUri. */ - com.google.protobuf.ByteString getContentUriBytes(); + com.google.protobuf.ByteString + getContentUriBytes(); /** - * - * *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
    * 
* * bytes raw_content = 9; - * * @return Whether the rawContent field is set. */ boolean hasRawContent(); /** - * - * *
    * The raw content of the document. This field is only permitted for
    * EXTRACTIVE_QA and FAQ knowledge types.
    * 
* * bytes raw_content = 9; - * * @return The rawContent. */ com.google.protobuf.ByteString getRawContent(); /** - * - * *
    * Optional. If true, we try to automatically reload the document every day
    * (at a time picked by the system). If false or unspecified, we don't try
@@ -281,61 +210,44 @@ public interface DocumentOrBuilder
    * 
* * bool enable_auto_reload = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableAutoReload. */ boolean getEnableAutoReload(); /** - * - * *
    * Output only. The time and status of the latest reload.
    * This reload may have been triggered automatically or manually
    * and may not have succeeded.
    * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the latestReloadStatus field is set. */ boolean hasLatestReloadStatus(); /** - * - * *
    * Output only. The time and status of the latest reload.
    * This reload may have been triggered automatically or manually
    * and may not have succeeded.
    * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The latestReloadStatus. */ com.google.cloud.dialogflow.v2.Document.ReloadStatus getLatestReloadStatus(); /** - * - * *
    * Output only. The time and status of the latest reload.
    * This reload may have been triggered automatically or manually
    * and may not have succeeded.
    * 
* - * - * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.dialogflow.v2.Document.ReloadStatus latest_reload_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dialogflow.v2.Document.ReloadStatusOrBuilder getLatestReloadStatusOrBuilder(); /** - * - * *
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -347,8 +259,6 @@ public interface DocumentOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -358,13 +268,15 @@ public interface DocumentOrBuilder
    *
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -374,10 +286,9 @@ public interface DocumentOrBuilder
    *
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -387,10 +298,11 @@ public interface DocumentOrBuilder
    *
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. Metadata for the document. The metadata supports arbitrary
    * key-value pairs. Suggested use cases include storing a document's title,
@@ -400,7 +312,9 @@ public interface DocumentOrBuilder
    *
    * map<string, string> metadata = 7 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 
   public com.google.cloud.dialogflow.v2.Document.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java
new file mode 100644
index 000000000..a9c076c9e
--- /dev/null
+++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DocumentProto.java
@@ -0,0 +1,298 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/dialogflow/v2/document.proto
+
+package com.google.cloud.dialogflow.v2;
+
+public final class DocumentProto {
+  private DocumentProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_Document_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_Document_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_Document_MetadataEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_Document_MetadataEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_ListDocumentsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_ListDocumentsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_ListDocumentsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_ListDocumentsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_UpdateDocumentRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_UpdateDocumentRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_ReloadDocumentRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_ReloadDocumentRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_dialogflow_v2_KnowledgeOperationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_dialogflow_v2_KnowledgeOperationMetadata_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n)google/cloud/dialogflow/v2/document.pr" +
+      "oto\022\032google.cloud.dialogflow.v2\032\034google/" +
+      "api/annotations.proto\032\027google/api/client" +
+      ".proto\032\037google/api/field_behavior.proto\032" +
+      "\031google/api/resource.proto\032#google/longr" +
+      "unning/operations.proto\032 google/protobuf" +
+      "/field_mask.proto\032\037google/protobuf/times" +
+      "tamp.proto\032\027google/rpc/status.proto\"\342\006\n\010" +
+      "Document\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_n" +
+      "ame\030\002 \001(\tB\003\340A\002\022\026\n\tmime_type\030\003 \001(\tB\003\340A\002\022P" +
+      "\n\017knowledge_types\030\004 \003(\01622.google.cloud.d" +
+      "ialogflow.v2.Document.KnowledgeTypeB\003\340A\002" +
+      "\022\025\n\013content_uri\030\005 \001(\tH\000\022\025\n\013raw_content\030\t" +
+      " \001(\014H\000\022\037\n\022enable_auto_reload\030\013 \001(\010B\003\340A\001\022" +
+      "T\n\024latest_reload_status\030\014 \001(\01321.google.c" +
+      "loud.dialogflow.v2.Document.ReloadStatus" +
+      "B\003\340A\003\022I\n\010metadata\030\007 \003(\01322.google.cloud.d" +
+      "ialogflow.v2.Document.MetadataEntryB\003\340A\001" +
+      "\032\\\n\014ReloadStatus\022(\n\004time\030\001 \001(\0132\032.google." +
+      "protobuf.Timestamp\022\"\n\006status\030\002 \001(\0132\022.goo" +
+      "gle.rpc.Status\032/\n\rMetadataEntry\022\013\n\003key\030\001" +
+      " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"c\n\rKnowledgeType" +
+      "\022\036\n\032KNOWLEDGE_TYPE_UNSPECIFIED\020\000\022\007\n\003FAQ\020" +
+      "\001\022\021\n\rEXTRACTIVE_QA\020\002\022\026\n\022ARTICLE_SUGGESTI" +
+      "ON\020\003:\317\001\352A\313\001\n\"dialogflow.googleapis.com/D" +
+      "ocument\022Gprojects/{project}/knowledgeBas" +
+      "es/{knowledge_base}/documents/{document}" +
+      "\022\\projects/{project}/locations/{location" +
+      "}/knowledgeBases/{knowledge_base}/docume" +
+      "nts/{document}B\010\n\006source\"N\n\022GetDocumentR" +
+      "equest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dialogflow" +
+      ".googleapis.com/Document\"y\n\024ListDocument" +
+      "sRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialog" +
+      "flow.googleapis.com/Document\022\021\n\tpage_siz" +
+      "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"i\n\025ListDocum" +
+      "entsResponse\0227\n\tdocuments\030\001 \003(\0132$.google" +
+      ".cloud.dialogflow.v2.Document\022\027\n\017next_pa" +
+      "ge_token\030\002 \001(\t\"\220\001\n\025CreateDocumentRequest" +
+      "\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.goo" +
+      "gleapis.com/Document\022;\n\010document\030\002 \001(\0132$" +
+      ".google.cloud.dialogflow.v2.DocumentB\003\340A" +
+      "\002\"Q\n\025DeleteDocumentRequest\0228\n\004name\030\001 \001(\t" +
+      "B*\340A\002\372A$\n\"dialogflow.googleapis.com/Docu" +
+      "ment\"\212\001\n\025UpdateDocumentRequest\022;\n\010docume" +
+      "nt\030\001 \001(\0132$.google.cloud.dialogflow.v2.Do" +
+      "cumentB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" +
+      "e.protobuf.FieldMaskB\003\340A\001\"w\n\025ReloadDocum" +
+      "entRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dialog" +
+      "flow.googleapis.com/Document\022\032\n\013content_" +
+      "uri\030\003 \001(\tB\003\340A\001H\000B\010\n\006source\"\262\001\n\032Knowledge" +
+      "OperationMetadata\022P\n\005state\030\001 \001(\0162<.googl" +
+      "e.cloud.dialogflow.v2.KnowledgeOperation" +
+      "Metadata.StateB\003\340A\003\"B\n\005State\022\025\n\021STATE_UN" +
+      "SPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n" +
+      "\004DONE\020\0032\327\021\n\tDocuments\022\271\002\n\rListDocuments\022" +
+      "0.google.cloud.dialogflow.v2.ListDocumen" +
+      "tsRequest\0321.google.cloud.dialogflow.v2.L" +
+      "istDocumentsResponse\"\302\001\202\323\344\223\002\262\001\0222/v2/{par" +
+      "ent=projects/*/knowledgeBases/*}/documen" +
+      "tsZ@\022>/v2/{parent=projects/*/locations/*" +
+      "/knowledgeBases/*}/documentsZ:\0228/v2/{par" +
+      "ent=projects/*/agent/knowledgeBases/*}/d" +
+      "ocuments\332A\006parent\022\246\002\n\013GetDocument\022..goog" +
+      "le.cloud.dialogflow.v2.GetDocumentReques" +
+      "t\032$.google.cloud.dialogflow.v2.Document\"" +
+      "\300\001\202\323\344\223\002\262\001\0222/v2/{name=projects/*/knowledg" +
+      "eBases/*/documents/*}Z@\022>/v2/{name=proje" +
+      "cts/*/locations/*/knowledgeBases/*/docum" +
+      "ents/*}Z:\0228/v2/{name=projects/*/agent/kn" +
+      "owledgeBases/*/documents/*}\332A\004name\022\367\002\n\016C" +
+      "reateDocument\0221.google.cloud.dialogflow." +
+      "v2.CreateDocumentRequest\032\035.google.longru" +
+      "nning.Operation\"\222\002\202\323\344\223\002\320\001\"2/v2/{parent=p" +
+      "rojects/*/knowledgeBases/*}/documents:\010d" +
+      "ocumentZJ\">/v2/{parent=projects/*/locati" +
+      "ons/*/knowledgeBases/*}/documents:\010docum" +
+      "entZD\"8/v2/{parent=projects/*/agent/know" +
+      "ledgeBases/*}/documents:\010document\332A\017pare" +
+      "nt,document\312A&\n\010Document\022\032KnowledgeOpera" +
+      "tionMetadata\022\333\002\n\016DeleteDocument\0221.google" +
+      ".cloud.dialogflow.v2.DeleteDocumentReque" +
+      "st\032\035.google.longrunning.Operation\"\366\001\202\323\344\223" +
+      "\002\262\001*2/v2/{name=projects/*/knowledgeBases" +
+      "/*/documents/*}Z@*>/v2/{name=projects/*/" +
+      "locations/*/knowledgeBases/*/documents/*" +
+      "}Z:*8/v2/{name=projects/*/agent/knowledg" +
+      "eBases/*/documents/*}\332A\004name\312A3\n\025google." +
+      "protobuf.Empty\022\032KnowledgeOperationMetada" +
+      "ta\022\227\003\n\016UpdateDocument\0221.google.cloud.dia" +
+      "logflow.v2.UpdateDocumentRequest\032\035.googl" +
+      "e.longrunning.Operation\"\262\002\202\323\344\223\002\353\0012;/v2/{" +
+      "document.name=projects/*/knowledgeBases/" +
+      "*/documents/*}:\010documentZS2G/v2/{documen" +
+      "t.name=projects/*/locations/*/knowledgeB" +
+      "ases/*/documents/*}:\010documentZM2A/v2/{do" +
+      "cument.name=projects/*/agent/knowledgeBa" +
+      "ses/*/documents/*}:\010document\332A\024document," +
+      "update_mask\312A&\n\010Document\022\032KnowledgeOpera" +
+      "tionMetadata\022\370\002\n\016ReloadDocument\0221.google" +
+      ".cloud.dialogflow.v2.ReloadDocumentReque" +
+      "st\032\035.google.longrunning.Operation\"\223\002\202\323\344\223" +
+      "\002\320\001\"9/v2/{name=projects/*/knowledgeBases" +
+      "/*/documents/*}:reload:\001*ZJ\"E/v2/{name=p" +
+      "rojects/*/locations/*/knowledgeBases/*/d" +
+      "ocuments/*}:reload:\001*ZD\"?/v2/{name=proje" +
+      "cts/*/agent/knowledgeBases/*/documents/*" +
+      "}:reload:\001*\332A\020name,content_uri\312A&\n\010Docum" +
+      "ent\022\032KnowledgeOperationMetadata\032x\312A\031dial" +
+      "ogflow.googleapis.com\322AYhttps://www.goog" +
+      "leapis.com/auth/cloud-platform,https://w" +
+      "ww.googleapis.com/auth/dialogflowB\234\001\n\036co" +
+      "m.google.cloud.dialogflow.v2B\rDocumentPr" +
+      "otoP\001ZDgoogle.golang.org/genproto/google" +
+      "apis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002" +
+      "\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.longrunning.OperationsProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+          com.google.rpc.StatusProto.getDescriptor(),
+        });
+    internal_static_google_cloud_dialogflow_v2_Document_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_dialogflow_v2_Document_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_Document_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "MimeType", "KnowledgeTypes", "ContentUri", "RawContent", "EnableAutoReload", "LatestReloadStatus", "Metadata", "Source", });
+    internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor =
+      internal_static_google_cloud_dialogflow_v2_Document_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_Document_ReloadStatus_descriptor,
+        new java.lang.String[] { "Time", "Status", });
+    internal_static_google_cloud_dialogflow_v2_Document_MetadataEntry_descriptor =
+      internal_static_google_cloud_dialogflow_v2_Document_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_dialogflow_v2_Document_MetadataEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_Document_MetadataEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_dialogflow_v2_ListDocumentsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_dialogflow_v2_ListDocumentsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_ListDocumentsRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_dialogflow_v2_ListDocumentsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_dialogflow_v2_ListDocumentsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_ListDocumentsResponse_descriptor,
+        new java.lang.String[] { "Documents", "NextPageToken", });
+    internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_CreateDocumentRequest_descriptor,
+        new java.lang.String[] { "Parent", "Document", });
+    internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_DeleteDocumentRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_dialogflow_v2_UpdateDocumentRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_dialogflow_v2_UpdateDocumentRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_UpdateDocumentRequest_descriptor,
+        new java.lang.String[] { "Document", "UpdateMask", });
+    internal_static_google_cloud_dialogflow_v2_ReloadDocumentRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_dialogflow_v2_ReloadDocumentRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_ReloadDocumentRequest_descriptor,
+        new java.lang.String[] { "Name", "ContentUri", "Source", });
+    internal_static_google_cloud_dialogflow_v2_KnowledgeOperationMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_dialogflow_v2_KnowledgeOperationMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_dialogflow_v2_KnowledgeOperationMetadata_descriptor,
+        new java.lang.String[] { "State", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.rpc.StatusProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParameters.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParameters.java
similarity index 69%
rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParameters.java
rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParameters.java
index 32789ad86..1024d95d1 100644
--- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParameters.java
+++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParameters.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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/participant.proto
 
 package com.google.cloud.dialogflow.v2;
 
 /**
- *
- *
  * 
  * The message in the response that indicates the parameters of DTMF.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DtmfParameters} */ -public final class DtmfParameters extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DtmfParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.DtmfParameters) DtmfParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DtmfParameters.newBuilder() to construct. private DtmfParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DtmfParameters() {} + private DtmfParameters() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DtmfParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DtmfParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,56 +52,51 @@ private DtmfParameters( case 0: done = true; break; - case 8: - { - acceptsDtmfInput_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + acceptsDtmfInput_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_DtmfParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_DtmfParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_DtmfParameters_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_DtmfParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DtmfParameters.class, - com.google.cloud.dialogflow.v2.DtmfParameters.Builder.class); + com.google.cloud.dialogflow.v2.DtmfParameters.class, com.google.cloud.dialogflow.v2.DtmfParameters.Builder.class); } public static final int ACCEPTS_DTMF_INPUT_FIELD_NUMBER = 1; private boolean acceptsDtmfInput_; /** - * - * *
    * Indicates whether DTMF input can be handled in the next request.
    * 
* * bool accepts_dtmf_input = 1; - * * @return The acceptsDtmfInput. */ @java.lang.Override @@ -126,7 +105,6 @@ public boolean getAcceptsDtmfInput() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +116,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (acceptsDtmfInput_ != false) { output.writeBool(1, acceptsDtmfInput_); } @@ -152,7 +131,8 @@ public int getSerializedSize() { size = 0; if (acceptsDtmfInput_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, acceptsDtmfInput_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, acceptsDtmfInput_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -162,15 +142,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.DtmfParameters)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.DtmfParameters other = - (com.google.cloud.dialogflow.v2.DtmfParameters) obj; + com.google.cloud.dialogflow.v2.DtmfParameters other = (com.google.cloud.dialogflow.v2.DtmfParameters) obj; - if (getAcceptsDtmfInput() != other.getAcceptsDtmfInput()) return false; + if (getAcceptsDtmfInput() + != other.getAcceptsDtmfInput()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -183,133 +163,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCEPTS_DTMF_INPUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptsDtmfInput()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAcceptsDtmfInput()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.DtmfParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.DtmfParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.DtmfParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.DtmfParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The message in the response that indicates the parameters of DTMF.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.DtmfParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.DtmfParameters) com.google.cloud.dialogflow.v2.DtmfParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_DtmfParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_DtmfParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_DtmfParameters_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_DtmfParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.DtmfParameters.class, - com.google.cloud.dialogflow.v2.DtmfParameters.Builder.class); + com.google.cloud.dialogflow.v2.DtmfParameters.class, com.google.cloud.dialogflow.v2.DtmfParameters.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.DtmfParameters.newBuilder() @@ -317,15 +289,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -335,9 +308,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_DtmfParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_DtmfParameters_descriptor; } @java.lang.Override @@ -356,8 +329,7 @@ public com.google.cloud.dialogflow.v2.DtmfParameters build() { @java.lang.Override public com.google.cloud.dialogflow.v2.DtmfParameters buildPartial() { - com.google.cloud.dialogflow.v2.DtmfParameters result = - new com.google.cloud.dialogflow.v2.DtmfParameters(this); + com.google.cloud.dialogflow.v2.DtmfParameters result = new com.google.cloud.dialogflow.v2.DtmfParameters(this); result.acceptsDtmfInput_ = acceptsDtmfInput_; onBuilt(); return result; @@ -367,39 +339,38 @@ public com.google.cloud.dialogflow.v2.DtmfParameters buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.DtmfParameters) { - return mergeFrom((com.google.cloud.dialogflow.v2.DtmfParameters) other); + return mergeFrom((com.google.cloud.dialogflow.v2.DtmfParameters)other); } else { super.mergeFrom(other); return this; @@ -440,16 +411,13 @@ public Builder mergeFrom( return this; } - private boolean acceptsDtmfInput_; + private boolean acceptsDtmfInput_ ; /** - * - * *
      * Indicates whether DTMF input can be handled in the next request.
      * 
* * bool accepts_dtmf_input = 1; - * * @return The acceptsDtmfInput. */ @java.lang.Override @@ -457,43 +425,37 @@ public boolean getAcceptsDtmfInput() { return acceptsDtmfInput_; } /** - * - * *
      * Indicates whether DTMF input can be handled in the next request.
      * 
* * bool accepts_dtmf_input = 1; - * * @param value The acceptsDtmfInput to set. * @return This builder for chaining. */ public Builder setAcceptsDtmfInput(boolean value) { - + acceptsDtmfInput_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether DTMF input can be handled in the next request.
      * 
* * bool accepts_dtmf_input = 1; - * * @return This builder for chaining. */ public Builder clearAcceptsDtmfInput() { - + acceptsDtmfInput_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -503,12 +465,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.DtmfParameters) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DtmfParameters) private static final com.google.cloud.dialogflow.v2.DtmfParameters DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.DtmfParameters(); } @@ -517,16 +479,16 @@ public static com.google.cloud.dialogflow.v2.DtmfParameters getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DtmfParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DtmfParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DtmfParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DtmfParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -541,4 +503,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.DtmfParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParametersOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParametersOrBuilder.java new file mode 100644 index 000000000..64fca0afb --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DtmfParametersOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/participant.proto + +package com.google.cloud.dialogflow.v2; + +public interface DtmfParametersOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.DtmfParameters) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Indicates whether DTMF input can be handled in the next request.
+   * 
+ * + * bool accepts_dtmf_input = 1; + * @return The acceptsDtmfInput. + */ + boolean getAcceptsDtmfInput(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java similarity index 73% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java index bc3fb53f4..1a74233a5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityType.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * Each intent parameter has a type, called the entity type, which dictates
  * exactly how data from an end-user expression is extracted.
@@ -36,16 +19,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.EntityType}
  */
-public final class EntityType extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EntityType extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EntityType)
     EntityTypeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EntityType.newBuilder() to construct.
   private EntityType(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EntityType() {
     name_ = "";
     displayName_ = "";
@@ -56,15 +38,16 @@ private EntityType() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EntityType();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EntityType(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -84,65 +67,58 @@ private EntityType(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            displayName_ = s;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              kind_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            kind_ = rawValue;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              autoExpansionMode_ = rawValue;
-              break;
-            }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                entities_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              entities_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.EntityType.Entity.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 56:
-            {
-              enableFuzzyExtraction_ = input.readBool();
-              break;
+            autoExpansionMode_ = rawValue;
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              entities_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            entities_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.EntityType.Entity.parser(), extensionRegistry));
+            break;
+          }
+          case 56: {
+
+            enableFuzzyExtraction_ = 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         entities_ = java.util.Collections.unmodifiableList(entities_);
@@ -151,35 +127,29 @@ private EntityType(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.EntityTypeProto
-        .internal_static_google_cloud_dialogflow_v2_EntityType_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.EntityTypeProto
-        .internal_static_google_cloud_dialogflow_v2_EntityType_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.EntityType.class,
-            com.google.cloud.dialogflow.v2.EntityType.Builder.class);
+            com.google.cloud.dialogflow.v2.EntityType.class, com.google.cloud.dialogflow.v2.EntityType.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Represents kinds of entities.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.EntityType.Kind} */ - public enum Kind implements com.google.protobuf.ProtocolMessageEnum { + public enum Kind + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified. This value should be never used.
      * 
@@ -188,8 +158,6 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum { */ KIND_UNSPECIFIED(0), /** - * - * *
      * Map entity types allow mapping of a group of synonyms to a reference
      * value.
@@ -199,8 +167,6 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum {
      */
     KIND_MAP(1),
     /**
-     *
-     *
      * 
      * List entity types contain a set of entries that do not map to reference
      * values. However, list entity types can contain references to other entity
@@ -211,8 +177,6 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum {
      */
     KIND_LIST(2),
     /**
-     *
-     *
      * 
      * Regexp entity types allow to specify regular expressions in entries
      * values.
@@ -225,8 +189,6 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified. This value should be never used.
      * 
@@ -235,8 +197,6 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KIND_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Map entity types allow mapping of a group of synonyms to a reference
      * value.
@@ -246,8 +206,6 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int KIND_MAP_VALUE = 1;
     /**
-     *
-     *
      * 
      * List entity types contain a set of entries that do not map to reference
      * values. However, list entity types can contain references to other entity
@@ -258,8 +216,6 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int KIND_LIST_VALUE = 2;
     /**
-     *
-     *
      * 
      * Regexp entity types allow to specify regular expressions in entries
      * values.
@@ -269,6 +225,7 @@ public enum Kind implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int KIND_REGEXP_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -293,51 +250,50 @@ public static Kind valueOf(int value) {
      */
     public static Kind forNumber(int value) {
       switch (value) {
-        case 0:
-          return KIND_UNSPECIFIED;
-        case 1:
-          return KIND_MAP;
-        case 2:
-          return KIND_LIST;
-        case 3:
-          return KIND_REGEXP;
-        default:
-          return null;
+        case 0: return KIND_UNSPECIFIED;
+        case 1: return KIND_MAP;
+        case 2: return KIND_LIST;
+        case 3: return KIND_REGEXP;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Kind> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Kind findValueByNumber(int number) {
+              return Kind.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Kind findValueByNumber(int number) {
-            return Kind.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.dialogflow.v2.EntityType.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Kind[] VALUES = values();
 
-    public static Kind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Kind valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -355,8 +311,6 @@ private Kind(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Represents different entity type expansion modes. Automated expansion
    * allows an agent to recognize values that have not been explicitly listed in
@@ -365,10 +319,9 @@ private Kind(int value) {
    *
    * Protobuf enum {@code google.cloud.dialogflow.v2.EntityType.AutoExpansionMode}
    */
-  public enum AutoExpansionMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AutoExpansionMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Auto expansion disabled for the entity.
      * 
@@ -377,8 +330,6 @@ public enum AutoExpansionMode implements com.google.protobuf.ProtocolMessageEnum */ AUTO_EXPANSION_MODE_UNSPECIFIED(0), /** - * - * *
      * Allows an agent to recognize values that have not been explicitly
      * listed in the entity.
@@ -391,8 +342,6 @@ public enum AutoExpansionMode implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Auto expansion disabled for the entity.
      * 
@@ -401,8 +350,6 @@ public enum AutoExpansionMode implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUTO_EXPANSION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Allows an agent to recognize values that have not been explicitly
      * listed in the entity.
@@ -412,6 +359,7 @@ public enum AutoExpansionMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int AUTO_EXPANSION_MODE_DEFAULT_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -436,12 +384,9 @@ public static AutoExpansionMode valueOf(int value) {
      */
     public static AutoExpansionMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return AUTO_EXPANSION_MODE_UNSPECIFIED;
-        case 1:
-          return AUTO_EXPANSION_MODE_DEFAULT;
-        default:
-          return null;
+        case 0: return AUTO_EXPANSION_MODE_UNSPECIFIED;
+        case 1: return AUTO_EXPANSION_MODE_DEFAULT;
+        default: return null;
       }
     }
 
@@ -449,28 +394,28 @@ public static AutoExpansionMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AutoExpansionMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AutoExpansionMode findValueByNumber(int number) {
+              return AutoExpansionMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public AutoExpansionMode findValueByNumber(int number) {
-                return AutoExpansionMode.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.dialogflow.v2.EntityType.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -479,7 +424,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static AutoExpansionMode valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -496,14 +442,11 @@ private AutoExpansionMode(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.EntityType.AutoExpansionMode)
   }
 
-  public interface EntityOrBuilder
-      extends
+  public interface EntityOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.EntityType.Entity)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. The primary value associated with this entity entry.
      * For example, if the entity type is *vegetable*, the value could be
@@ -516,13 +459,10 @@ public interface EntityOrBuilder
      * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Required. The primary value associated with this entity entry.
      * For example, if the entity type is *vegetable*, the value could be
@@ -535,14 +475,12 @@ public interface EntityOrBuilder
      * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -552,13 +490,11 @@ public interface EntityOrBuilder
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the synonyms. */ - java.util.List getSynonymsList(); + java.util.List + getSynonymsList(); /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -568,13 +504,10 @@ public interface EntityOrBuilder
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of synonyms. */ int getSynonymsCount(); /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -584,14 +517,11 @@ public interface EntityOrBuilder
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The synonyms at the given index. */ java.lang.String getSynonyms(int index); /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -601,31 +531,28 @@ public interface EntityOrBuilder
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the synonyms at the given index. */ - com.google.protobuf.ByteString getSynonymsBytes(int index); + com.google.protobuf.ByteString + getSynonymsBytes(int index); } /** - * - * *
    * An **entity entry** for an associated entity type.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EntityType.Entity} */ - public static final class Entity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Entity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EntityType.Entity) EntityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Entity.newBuilder() to construct. private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Entity() { value_ = ""; synonyms_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -633,15 +560,16 @@ private Entity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Entity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Entity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -661,36 +589,35 @@ private Entity( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - synonyms_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - synonyms_.add(s); - break; + value_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + synonyms_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + synonyms_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { synonyms_ = synonyms_.getUnmodifiableView(); @@ -699,27 +626,22 @@ private Entity( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityType_Entity_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EntityType.Entity.class, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder.class); + com.google.cloud.dialogflow.v2.EntityType.Entity.class, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** - * - * *
      * Required. The primary value associated with this entity entry.
      * For example, if the entity type is *vegetable*, the value could be
@@ -732,7 +654,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ @java.lang.Override @@ -741,15 +662,14 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Required. The primary value associated with this entity entry.
      * For example, if the entity type is *vegetable*, the value could be
@@ -762,15 +682,16 @@ public java.lang.String getValue() {
      * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -781,8 +702,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int SYNONYMS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList synonyms_; /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -792,15 +711,13 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the synonyms. */ - public com.google.protobuf.ProtocolStringList getSynonymsList() { + public com.google.protobuf.ProtocolStringList + getSynonymsList() { return synonyms_; } /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -810,15 +727,12 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() {
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of synonyms. */ public int getSynonymsCount() { return synonyms_.size(); } /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -828,7 +742,6 @@ public int getSynonymsCount() {
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The synonyms at the given index. */ @@ -836,8 +749,6 @@ public java.lang.String getSynonyms(int index) { return synonyms_.get(index); } /** - * - * *
      * Required. A collection of value synonyms. For example, if the entity type
      * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -847,16 +758,15 @@ public java.lang.String getSynonyms(int index) {
      * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the synonyms at the given index. */ - public com.google.protobuf.ByteString getSynonymsBytes(int index) { + public com.google.protobuf.ByteString + getSynonymsBytes(int index) { return synonyms_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -868,7 +778,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -903,16 +814,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.EntityType.Entity)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.EntityType.Entity other = - (com.google.cloud.dialogflow.v2.EntityType.Entity) obj; + com.google.cloud.dialogflow.v2.EntityType.Entity other = (com.google.cloud.dialogflow.v2.EntityType.Entity) obj; - if (!getValue().equals(other.getValue())) return false; - if (!getSynonymsList().equals(other.getSynonymsList())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getSynonymsList() + .equals(other.getSynonymsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -936,93 +848,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EntityType.Entity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityType.Entity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.EntityType.Entity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1032,32 +938,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An **entity entry** for an associated entity type.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EntityType.Entity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EntityType.Entity) com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityType_Entity_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EntityType.Entity.class, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder.class); + com.google.cloud.dialogflow.v2.EntityType.Entity.class, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.EntityType.Entity.newBuilder() @@ -1065,15 +966,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1085,9 +987,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor; } @java.lang.Override @@ -1106,8 +1008,7 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity build() { @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.Entity buildPartial() { - com.google.cloud.dialogflow.v2.EntityType.Entity result = - new com.google.cloud.dialogflow.v2.EntityType.Entity(this); + com.google.cloud.dialogflow.v2.EntityType.Entity result = new com.google.cloud.dialogflow.v2.EntityType.Entity(this); int from_bitField0_ = bitField0_; result.value_ = value_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1123,41 +1024,38 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.EntityType.Entity) { - return mergeFrom((com.google.cloud.dialogflow.v2.EntityType.Entity) other); + return mergeFrom((com.google.cloud.dialogflow.v2.EntityType.Entity)other); } else { super.mergeFrom(other); return this; @@ -1165,8 +1063,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.EntityType.Entity other) { - if (other == com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -1200,8 +1097,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.EntityType.Entity) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.EntityType.Entity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1210,13 +1106,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object value_ = ""; /** - * - * *
        * Required. The primary value associated with this entity entry.
        * For example, if the entity type is *vegetable*, the value could be
@@ -1229,13 +1122,13 @@ public Builder mergeFrom(
        * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -1244,8 +1137,6 @@ public java.lang.String getValue() { } } /** - * - * *
        * Required. The primary value associated with this entity entry.
        * For example, if the entity type is *vegetable*, the value could be
@@ -1258,14 +1149,15 @@ public java.lang.String getValue() {
        * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -1273,8 +1165,6 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Required. The primary value associated with this entity entry.
        * For example, if the entity type is *vegetable*, the value could be
@@ -1287,22 +1177,20 @@ public com.google.protobuf.ByteString getValueBytes() {
        * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Required. The primary value associated with this entity entry.
        * For example, if the entity type is *vegetable*, the value could be
@@ -1315,18 +1203,15 @@ public Builder setValue(java.lang.String value) {
        * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Required. The primary value associated with this entity entry.
        * For example, if the entity type is *vegetable*, the value could be
@@ -1339,33 +1224,29 @@ public Builder clearValue() {
        * 
* * string value = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList synonyms_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList synonyms_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSynonymsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { synonyms_ = new com.google.protobuf.LazyStringArrayList(synonyms_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1375,15 +1256,13 @@ private void ensureSynonymsIsMutable() {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the synonyms. */ - public com.google.protobuf.ProtocolStringList getSynonymsList() { + public com.google.protobuf.ProtocolStringList + getSynonymsList() { return synonyms_.getUnmodifiableView(); } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1393,15 +1272,12 @@ public com.google.protobuf.ProtocolStringList getSynonymsList() {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of synonyms. */ public int getSynonymsCount() { return synonyms_.size(); } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1411,7 +1287,6 @@ public int getSynonymsCount() {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The synonyms at the given index. */ @@ -1419,8 +1294,6 @@ public java.lang.String getSynonyms(int index) { return synonyms_.get(index); } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1430,16 +1303,14 @@ public java.lang.String getSynonyms(int index) {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the synonyms at the given index. */ - public com.google.protobuf.ByteString getSynonymsBytes(int index) { + public com.google.protobuf.ByteString + getSynonymsBytes(int index) { return synonyms_.getByteString(index); } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1449,23 +1320,21 @@ public com.google.protobuf.ByteString getSynonymsBytes(int index) {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The synonyms to set. * @return This builder for chaining. */ - public Builder setSynonyms(int index, java.lang.String value) { + public Builder setSynonyms( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSynonymsIsMutable(); + throw new NullPointerException(); + } + ensureSynonymsIsMutable(); synonyms_.set(index, value); onChanged(); return this; } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1475,22 +1344,20 @@ public Builder setSynonyms(int index, java.lang.String value) {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The synonyms to add. * @return This builder for chaining. */ - public Builder addSynonyms(java.lang.String value) { + public Builder addSynonyms( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSynonymsIsMutable(); + throw new NullPointerException(); + } + ensureSynonymsIsMutable(); synonyms_.add(value); onChanged(); return this; } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1500,19 +1367,18 @@ public Builder addSynonyms(java.lang.String value) {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The synonyms to add. * @return This builder for chaining. */ - public Builder addAllSynonyms(java.lang.Iterable values) { + public Builder addAllSynonyms( + java.lang.Iterable values) { ensureSynonymsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonyms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, synonyms_); onChanged(); return this; } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1522,7 +1388,6 @@ public Builder addAllSynonyms(java.lang.Iterable values) {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSynonyms() { @@ -1532,8 +1397,6 @@ public Builder clearSynonyms() { return this; } /** - * - * *
        * Required. A collection of value synonyms. For example, if the entity type
        * is *vegetable*, and `value` is *scallions*, a synonym could be *green
@@ -1543,21 +1406,20 @@ public Builder clearSynonyms() {
        * 
* * repeated string synonyms = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the synonyms to add. * @return This builder for chaining. */ - public Builder addSynonymsBytes(com.google.protobuf.ByteString value) { + public Builder addSynonymsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSynonymsIsMutable(); synonyms_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1570,12 +1432,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.EntityType.Entity) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EntityType.Entity) private static final com.google.cloud.dialogflow.v2.EntityType.Entity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EntityType.Entity(); } @@ -1584,16 +1446,16 @@ public static com.google.cloud.dialogflow.v2.EntityType.Entity getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1608,13 +1470,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.EntityType.Entity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The unique identifier of the entity type.
    * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -1623,7 +1484,6 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getDefaultInstanceForTyp
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1632,15 +1492,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The unique identifier of the entity type.
    * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -1649,15 +1508,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1668,14 +1528,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The name of the entity type.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -1684,29 +1541,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The name of the entity type.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1717,177 +1574,127 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int KIND_FIELD_NUMBER = 3; private int kind_; /** - * - * *
    * Required. Indicates the kind of entity type.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for kind. */ - @java.lang.Override - public int getKindValue() { + @java.lang.Override public int getKindValue() { return kind_; } /** - * - * *
    * Required. Indicates the kind of entity type.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The kind. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityType.Kind getKind() { + @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.Kind getKind() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.EntityType.Kind result = - com.google.cloud.dialogflow.v2.EntityType.Kind.valueOf(kind_); + com.google.cloud.dialogflow.v2.EntityType.Kind result = com.google.cloud.dialogflow.v2.EntityType.Kind.valueOf(kind_); return result == null ? com.google.cloud.dialogflow.v2.EntityType.Kind.UNRECOGNIZED : result; } public static final int AUTO_EXPANSION_MODE_FIELD_NUMBER = 4; private int autoExpansionMode_; /** - * - * *
    * Optional. Indicates whether the entity type can be automatically
    * expanded.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for autoExpansionMode. */ - @java.lang.Override - public int getAutoExpansionModeValue() { + @java.lang.Override public int getAutoExpansionModeValue() { return autoExpansionMode_; } /** - * - * *
    * Optional. Indicates whether the entity type can be automatically
    * expanded.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoExpansionMode. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode getAutoExpansionMode() { + @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode getAutoExpansionMode() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode result = - com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.valueOf(autoExpansionMode_); - return result == null - ? com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode result = com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.valueOf(autoExpansionMode_); + return result == null ? com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.UNRECOGNIZED : result; } public static final int ENTITIES_FIELD_NUMBER = 6; private java.util.List entities_; /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getEntitiesList() { return entities_; } /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getEntitiesOrBuilderList() { return entities_; } /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getEntitiesCount() { return entities_.size(); } /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { return entities_.get(index); } /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( + int index) { 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 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableFuzzyExtraction. */ @java.lang.Override @@ -1896,7 +1703,6 @@ public boolean getEnableFuzzyExtraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1908,7 +1714,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1918,10 +1725,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (kind_ != com.google.cloud.dialogflow.v2.EntityType.Kind.KIND_UNSPECIFIED.getNumber()) { output.writeEnum(3, kind_); } - if (autoExpansionMode_ - != com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode - .AUTO_EXPANSION_MODE_UNSPECIFIED - .getNumber()) { + if (autoExpansionMode_ != com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.AUTO_EXPANSION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(4, autoExpansionMode_); } for (int i = 0; i < entities_.size(); i++) { @@ -1946,19 +1750,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (kind_ != com.google.cloud.dialogflow.v2.EntityType.Kind.KIND_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, kind_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, kind_); } - if (autoExpansionMode_ - != com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode - .AUTO_EXPANSION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, autoExpansionMode_); + if (autoExpansionMode_ != com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.AUTO_EXPANSION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, autoExpansionMode_); } for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, entities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, entities_.get(i)); } if (enableFuzzyExtraction_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableFuzzyExtraction_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, enableFuzzyExtraction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1968,20 +1773,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.EntityType)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.EntityType other = - (com.google.cloud.dialogflow.v2.EntityType) obj; + com.google.cloud.dialogflow.v2.EntityType other = (com.google.cloud.dialogflow.v2.EntityType) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; 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 (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (getEnableFuzzyExtraction() + != other.getEnableFuzzyExtraction()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2006,110 +1814,104 @@ public int hashCode() { hash = (53 * hash) + getEntitiesList().hashCode(); } hash = (37 * hash) + ENABLE_FUZZY_EXTRACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFuzzyExtraction()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableFuzzyExtraction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.EntityType parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EntityType parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EntityType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityType parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.EntityType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Each intent parameter has a type, called the entity type, which dictates
    * exactly how data from an end-user expression is extracted.
@@ -2125,23 +1927,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.EntityType}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EntityType)
       com.google.cloud.dialogflow.v2.EntityTypeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.EntityTypeProto
-          .internal_static_google_cloud_dialogflow_v2_EntityType_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.EntityTypeProto
-          .internal_static_google_cloud_dialogflow_v2_EntityType_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.EntityType.class,
-              com.google.cloud.dialogflow.v2.EntityType.Builder.class);
+              com.google.cloud.dialogflow.v2.EntityType.class, com.google.cloud.dialogflow.v2.EntityType.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.EntityType.newBuilder()
@@ -2149,17 +1949,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getEntitiesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2183,9 +1983,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.EntityTypeProto
-          .internal_static_google_cloud_dialogflow_v2_EntityType_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityType_descriptor;
     }
 
     @java.lang.Override
@@ -2204,8 +2004,7 @@ public com.google.cloud.dialogflow.v2.EntityType build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.EntityType buildPartial() {
-      com.google.cloud.dialogflow.v2.EntityType result =
-          new com.google.cloud.dialogflow.v2.EntityType(this);
+      com.google.cloud.dialogflow.v2.EntityType result = new com.google.cloud.dialogflow.v2.EntityType(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -2229,39 +2028,38 @@ public com.google.cloud.dialogflow.v2.EntityType buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.EntityType) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.EntityType) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.EntityType)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2302,10 +2100,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.EntityType other) {
             entitiesBuilder_ = null;
             entities_ = other.entities_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            entitiesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEntitiesFieldBuilder()
-                    : null;
+            entitiesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEntitiesFieldBuilder() : null;
           } else {
             entitiesBuilder_.addAllMessages(other.entities_);
           }
@@ -2342,13 +2139,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The unique identifier of the entity type.
      * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -2357,13 +2151,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2372,8 +2166,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The unique identifier of the entity type.
      * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -2382,14 +2174,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2397,8 +2190,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The unique identifier of the entity type.
      * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -2407,22 +2198,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The unique identifier of the entity type.
      * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -2431,18 +2220,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The unique identifier of the entity type.
      * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -2451,16 +2237,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2468,20 +2254,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The name of the entity type.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2490,21 +2274,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The name of the entity type.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2512,61 +2295,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The name of the entity type.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2574,73 +2350,51 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int kind_ = 0; /** - * - * *
      * Required. Indicates the kind of entity type.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for kind. */ - @java.lang.Override - public int getKindValue() { + @java.lang.Override public int getKindValue() { return kind_; } /** - * - * *
      * Required. Indicates the kind of entity type.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for kind to set. * @return This builder for chaining. */ public Builder setKindValue(int value) { - + kind_ = value; onChanged(); return this; } /** - * - * *
      * Required. Indicates the kind of entity type.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The kind. */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.Kind getKind() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.EntityType.Kind result = - com.google.cloud.dialogflow.v2.EntityType.Kind.valueOf(kind_); + com.google.cloud.dialogflow.v2.EntityType.Kind result = com.google.cloud.dialogflow.v2.EntityType.Kind.valueOf(kind_); return result == null ? com.google.cloud.dialogflow.v2.EntityType.Kind.UNRECOGNIZED : result; } /** - * - * *
      * Required. Indicates the kind of entity type.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The kind to set. * @return This builder for chaining. */ @@ -2648,26 +2402,21 @@ public Builder setKind(com.google.cloud.dialogflow.v2.EntityType.Kind value) { if (value == null) { throw new NullPointerException(); } - + kind_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Indicates the kind of entity type.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = 0; onChanged(); return this; @@ -2675,140 +2424,101 @@ public Builder clearKind() { private int autoExpansionMode_ = 0; /** - * - * *
      * Optional. Indicates whether the entity type can be automatically
      * expanded.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for autoExpansionMode. */ - @java.lang.Override - public int getAutoExpansionModeValue() { + @java.lang.Override public int getAutoExpansionModeValue() { return autoExpansionMode_; } /** - * - * *
      * Optional. Indicates whether the entity type can be automatically
      * expanded.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for autoExpansionMode to set. * @return This builder for chaining. */ public Builder setAutoExpansionModeValue(int value) { - + autoExpansionMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Indicates whether the entity type can be automatically
      * expanded.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoExpansionMode. */ @java.lang.Override public com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode getAutoExpansionMode() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode result = - com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.valueOf(autoExpansionMode_); - return result == null - ? com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode result = com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.valueOf(autoExpansionMode_); + return result == null ? com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Indicates whether the entity type can be automatically
      * expanded.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The autoExpansionMode to set. * @return This builder for chaining. */ - public Builder setAutoExpansionMode( - com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode value) { + public Builder setAutoExpansionMode(com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode value) { if (value == null) { throw new NullPointerException(); } - + autoExpansionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Indicates whether the entity type can be automatically
      * expanded.
      * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAutoExpansionMode() { - + autoExpansionMode_ = 0; onChanged(); return this; } private java.util.List entities_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = - new java.util.ArrayList(entities_); + entities_ = new java.util.ArrayList(entities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> - entitiesBuilder_; + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> entitiesBuilder_; /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getEntitiesList() { if (entitiesBuilder_ == null) { @@ -2818,15 +2528,11 @@ public java.util.List getEntit } } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public int getEntitiesCount() { if (entitiesBuilder_ == null) { @@ -2836,15 +2542,11 @@ public int getEntitiesCount() { } } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { if (entitiesBuilder_ == null) { @@ -2854,17 +2556,14 @@ public com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index) { } } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { + public Builder setEntities( + int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2878,15 +2577,11 @@ public Builder setEntities(int index, com.google.cloud.dialogflow.v2.EntityType. return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEntities( int index, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -2900,15 +2595,11 @@ public Builder setEntities( return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { @@ -2924,17 +2615,14 @@ public Builder addEntities(com.google.cloud.dialogflow.v2.EntityType.Entity valu return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { + public Builder addEntities( + int index, com.google.cloud.dialogflow.v2.EntityType.Entity value) { if (entitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2948,15 +2636,11 @@ public Builder addEntities(int index, com.google.cloud.dialogflow.v2.EntityType. return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEntities( com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -2970,15 +2654,11 @@ public Builder addEntities( return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEntities( int index, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder builderForValue) { @@ -2992,21 +2672,18 @@ public Builder addEntities( return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllEntities( java.lang.Iterable values) { if (entitiesBuilder_ == null) { ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); onChanged(); } else { entitiesBuilder_.addAllMessages(values); @@ -3014,15 +2691,11 @@ public Builder addAllEntities( return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEntities() { if (entitiesBuilder_ == null) { @@ -3035,15 +2708,11 @@ public Builder clearEntities() { return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeEntities(int index) { if (entitiesBuilder_ == null) { @@ -3056,51 +2725,39 @@ public Builder removeEntities(int index) { return this; } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder getEntitiesBuilder( + int index) { return getEntitiesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( int index) { if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { + return entities_.get(index); } else { return entitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getEntitiesOrBuilderList() { + public java.util.List + getEntitiesOrBuilderList() { if (entitiesBuilder_ != null) { return entitiesBuilder_.getMessageOrBuilderList(); } else { @@ -3108,78 +2765,61 @@ public com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBu } } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); + return getEntitiesFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder(int index) { - return getEntitiesFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.EntityType.Entity.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.EntityType.Entity.getDefaultInstance()); } /** - * - * *
      * Optional. The collection of entity entries associated with the entity type.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getEntitiesBuilderList() { + public java.util.List + getEntitiesBuilderList() { return getEntitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder> getEntitiesFieldBuilder() { if (entitiesBuilder_ == null) { - entitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType.Entity, - com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder>( - entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.EntityType.Entity, com.google.cloud.dialogflow.v2.EntityType.Entity.Builder, com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entities_ = null; } return entitiesBuilder_; } - private boolean enableFuzzyExtraction_; + private boolean enableFuzzyExtraction_ ; /** - * - * *
      * Optional. Enables fuzzy entity extraction during classification.
      * 
* * bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableFuzzyExtraction. */ @java.lang.Override @@ -3187,43 +2827,37 @@ public boolean getEnableFuzzyExtraction() { return enableFuzzyExtraction_; } /** - * - * *
      * Optional. Enables fuzzy entity extraction during classification.
      * 
* * bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableFuzzyExtraction to set. * @return This builder for chaining. */ public Builder setEnableFuzzyExtraction(boolean value) { - + enableFuzzyExtraction_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Enables fuzzy entity extraction during classification.
      * 
* * bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableFuzzyExtraction() { - + enableFuzzyExtraction_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3233,12 +2867,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.EntityType) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EntityType) private static final com.google.cloud.dialogflow.v2.EntityType DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EntityType(); } @@ -3247,16 +2881,16 @@ public static com.google.cloud.dialogflow.v2.EntityType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityType(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityType(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3271,4 +2905,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.EntityType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java similarity index 73% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java index caf59973f..0f8cebfe9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatch.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * This message is a wrapper around a collection of entity types.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EntityTypeBatch} */ -public final class EntityTypeBatch extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EntityTypeBatch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EntityTypeBatch) EntityTypeBatchOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EntityTypeBatch.newBuilder() to construct. private EntityTypeBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EntityTypeBatch() { entityTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EntityTypeBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EntityTypeBatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +54,29 @@ private EntityTypeBatch( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entityTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entityTypes_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.EntityType.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entityTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + entityTypes_.add( + input.readMessage(com.google.cloud.dialogflow.v2.EntityType.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); @@ -103,27 +85,22 @@ private EntityTypeBatch( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EntityTypeBatch.class, - com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder.class); + com.google.cloud.dialogflow.v2.EntityTypeBatch.class, com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder.class); } public static final int ENTITY_TYPES_FIELD_NUMBER = 1; private java.util.List entityTypes_; /** - * - * *
    * A collection of entity types.
    * 
@@ -135,8 +112,6 @@ public java.util.List getEntityTypesL return entityTypes_; } /** - * - * *
    * A collection of entity types.
    * 
@@ -144,13 +119,11 @@ public java.util.List getEntityTypesL * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEntityTypesOrBuilderList() { return entityTypes_; } /** - * - * *
    * A collection of entity types.
    * 
@@ -162,8 +135,6 @@ public int getEntityTypesCount() { return entityTypes_.size(); } /** - * - * *
    * A collection of entity types.
    * 
@@ -175,8 +146,6 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index) { return entityTypes_.get(index); } /** - * - * *
    * A collection of entity types.
    * 
@@ -184,12 +153,12 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index) { * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index) { return entityTypes_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < entityTypes_.size(); i++) { output.writeMessage(1, entityTypes_.get(i)); } @@ -215,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entityTypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entityTypes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entityTypes_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -225,15 +196,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.EntityTypeBatch)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.EntityTypeBatch other = - (com.google.cloud.dialogflow.v2.EntityTypeBatch) obj; + com.google.cloud.dialogflow.v2.EntityTypeBatch other = (com.google.cloud.dialogflow.v2.EntityTypeBatch) obj; - if (!getEntityTypesList().equals(other.getEntityTypesList())) return false; + if (!getEntityTypesList() + .equals(other.getEntityTypesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -254,127 +225,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EntityTypeBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.EntityTypeBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * This message is a wrapper around a collection of entity types.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EntityTypeBatch} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EntityTypeBatch) com.google.cloud.dialogflow.v2.EntityTypeBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EntityTypeBatch.class, - com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder.class); + com.google.cloud.dialogflow.v2.EntityTypeBatch.class, com.google.cloud.dialogflow.v2.EntityTypeBatch.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.EntityTypeBatch.newBuilder() @@ -382,17 +344,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntityTypesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor; } @java.lang.Override @@ -427,8 +389,7 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch build() { @java.lang.Override public com.google.cloud.dialogflow.v2.EntityTypeBatch buildPartial() { - com.google.cloud.dialogflow.v2.EntityTypeBatch result = - new com.google.cloud.dialogflow.v2.EntityTypeBatch(this); + com.google.cloud.dialogflow.v2.EntityTypeBatch result = new com.google.cloud.dialogflow.v2.EntityTypeBatch(this); int from_bitField0_ = bitField0_; if (entityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -447,39 +408,38 @@ public com.google.cloud.dialogflow.v2.EntityTypeBatch buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.EntityTypeBatch) { - return mergeFrom((com.google.cloud.dialogflow.v2.EntityTypeBatch) other); + return mergeFrom((com.google.cloud.dialogflow.v2.EntityTypeBatch)other); } else { super.mergeFrom(other); return this; @@ -506,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.EntityTypeBatch other) { entityTypesBuilder_ = null; entityTypes_ = other.entityTypes_; bitField0_ = (bitField0_ & ~0x00000001); - entityTypesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntityTypesFieldBuilder() - : null; + entityTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntityTypesFieldBuilder() : null; } else { entityTypesBuilder_.addAllMessages(other.entityTypes_); } @@ -543,29 +502,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List entityTypes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntityTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entityTypes_ = - new java.util.ArrayList(entityTypes_); + entityTypes_ = new java.util.ArrayList(entityTypes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> - entityTypesBuilder_; + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> entityTypesBuilder_; /** - * - * *
      * A collection of entity types.
      * 
@@ -580,8 +531,6 @@ public java.util.List getEntityTypesL } } /** - * - * *
      * A collection of entity types.
      * 
@@ -596,8 +545,6 @@ public int getEntityTypesCount() { } } /** - * - * *
      * A collection of entity types.
      * 
@@ -612,15 +559,14 @@ public com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index) { } } /** - * - * *
      * A collection of entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public Builder setEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityType value) { + public Builder setEntityTypes( + int index, com.google.cloud.dialogflow.v2.EntityType value) { if (entityTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,8 +580,6 @@ public Builder setEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityTy return this; } /** - * - * *
      * A collection of entity types.
      * 
@@ -654,8 +598,6 @@ public Builder setEntityTypes( return this; } /** - * - * *
      * A collection of entity types.
      * 
@@ -676,15 +618,14 @@ public Builder addEntityTypes(com.google.cloud.dialogflow.v2.EntityType value) { return this; } /** - * - * *
      * A collection of entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public Builder addEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityType value) { + public Builder addEntityTypes( + int index, com.google.cloud.dialogflow.v2.EntityType value) { if (entityTypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -698,8 +639,6 @@ public Builder addEntityTypes(int index, com.google.cloud.dialogflow.v2.EntityTy return this; } /** - * - * *
      * A collection of entity types.
      * 
@@ -718,8 +657,6 @@ public Builder addEntityTypes( return this; } /** - * - * *
      * A collection of entity types.
      * 
@@ -738,8 +675,6 @@ public Builder addEntityTypes( return this; } /** - * - * *
      * A collection of entity types.
      * 
@@ -750,7 +685,8 @@ public Builder addAllEntityTypes( java.lang.Iterable values) { if (entityTypesBuilder_ == null) { ensureEntityTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityTypes_); onChanged(); } else { entityTypesBuilder_.addAllMessages(values); @@ -758,8 +694,6 @@ public Builder addAllEntityTypes( return this; } /** - * - * *
      * A collection of entity types.
      * 
@@ -777,8 +711,6 @@ public Builder clearEntityTypes() { return this; } /** - * - * *
      * A collection of entity types.
      * 
@@ -796,44 +728,39 @@ public Builder removeEntityTypes(int index) { return this; } /** - * - * *
      * A collection of entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public com.google.cloud.dialogflow.v2.EntityType.Builder getEntityTypesBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityType.Builder getEntityTypesBuilder( + int index) { return getEntityTypesFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index) { if (entityTypesBuilder_ == null) { - return entityTypes_.get(index); - } else { + return entityTypes_.get(index); } else { return entityTypesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A collection of entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public java.util.List - getEntityTypesOrBuilderList() { + public java.util.List + getEntityTypesOrBuilderList() { if (entityTypesBuilder_ != null) { return entityTypesBuilder_.getMessageOrBuilderList(); } else { @@ -841,8 +768,6 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilde } } /** - * - * *
      * A collection of entity types.
      * 
@@ -850,55 +775,49 @@ public com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilde * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ public com.google.cloud.dialogflow.v2.EntityType.Builder addEntityTypesBuilder() { - return getEntityTypesFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); + return getEntityTypesFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); } /** - * - * *
      * A collection of entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public com.google.cloud.dialogflow.v2.EntityType.Builder addEntityTypesBuilder(int index) { - return getEntityTypesFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.EntityType.Builder addEntityTypesBuilder( + int index) { + return getEntityTypesFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.EntityType.getDefaultInstance()); } /** - * - * *
      * A collection of entity types.
      * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - public java.util.List - getEntityTypesBuilderList() { + public java.util.List + getEntityTypesBuilderList() { return getEntityTypesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder> getEntityTypesFieldBuilder() { if (entityTypesBuilder_ == null) { - entityTypesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EntityType, - com.google.cloud.dialogflow.v2.EntityType.Builder, - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder>( - entityTypes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entityTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.EntityType, com.google.cloud.dialogflow.v2.EntityType.Builder, com.google.cloud.dialogflow.v2.EntityTypeOrBuilder>( + entityTypes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entityTypes_ = null; } return entityTypesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -908,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.EntityTypeBatch) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EntityTypeBatch) private static final com.google.cloud.dialogflow.v2.EntityTypeBatch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EntityTypeBatch(); } @@ -922,16 +841,16 @@ public static com.google.cloud.dialogflow.v2.EntityTypeBatch getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntityTypeBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EntityTypeBatch(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityTypeBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityTypeBatch(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -946,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.EntityTypeBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java similarity index 62% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java index f73891557..decb8dfc7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeBatchOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface EntityTypeBatchOrBuilder - extends +public interface EntityTypeBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.EntityTypeBatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A collection of entity types.
    * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - java.util.List getEntityTypesList(); + java.util.List + getEntityTypesList(); /** - * - * *
    * A collection of entity types.
    * 
@@ -44,8 +25,6 @@ public interface EntityTypeBatchOrBuilder */ com.google.cloud.dialogflow.v2.EntityType getEntityTypes(int index); /** - * - * *
    * A collection of entity types.
    * 
@@ -54,24 +33,21 @@ public interface EntityTypeBatchOrBuilder */ int getEntityTypesCount(); /** - * - * *
    * A collection of entity types.
    * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - java.util.List + java.util.List getEntityTypesOrBuilderList(); /** - * - * *
    * A collection of entity types.
    * 
* * repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1; */ - com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder(int index); + com.google.cloud.dialogflow.v2.EntityTypeOrBuilder getEntityTypesOrBuilder( + int index); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java similarity index 62% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java index 59900abba..f92a55dc8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface EntityTypeOrBuilder - extends +public interface EntityTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.EntityType) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique identifier of the entity type.
    * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -34,13 +16,10 @@ public interface EntityTypeOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The unique identifier of the entity type.
    * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType] and
@@ -49,167 +28,121 @@ public interface EntityTypeOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The name of the entity type.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The name of the entity type.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Indicates the kind of entity type.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for kind. */ int getKindValue(); /** - * - * *
    * Required. Indicates the kind of entity type.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The kind. */ com.google.cloud.dialogflow.v2.EntityType.Kind getKind(); /** - * - * *
    * Optional. Indicates whether the entity type can be automatically
    * expanded.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for autoExpansionMode. */ int getAutoExpansionModeValue(); /** - * - * *
    * Optional. Indicates whether the entity type can be automatically
    * expanded.
    * 
* - * - * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The autoExpansionMode. */ com.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode getAutoExpansionMode(); /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getEntitiesList(); + java.util.List + getEntitiesList(); /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dialogflow.v2.EntityType.Entity getEntities(int index); /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getEntitiesCount(); /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getEntitiesOrBuilderList(); /** - * - * *
    * Optional. The collection of entity entries associated with the entity type.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder(int index); + com.google.cloud.dialogflow.v2.EntityType.EntityOrBuilder getEntitiesOrBuilder( + int index); /** - * - * *
    * Optional. Enables fuzzy entity extraction during classification.
    * 
* * bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableFuzzyExtraction. */ boolean getEnableFuzzyExtraction(); diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java new file mode 100644 index 000000000..f28fbff35 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EntityTypeProto.java @@ -0,0 +1,388 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/entity_type.proto + +package com.google.cloud.dialogflow.v2; + +public final class EntityTypeProto { + private EntityTypeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_EntityType_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_EntityType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_EntityType_Entity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListEntityTypesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListEntityTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListEntityTypesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListEntityTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_UpdateEntityTypeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_UpdateEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/dialogflow/v2/entity_type" + + ".proto\022\032google.cloud.dialogflow.v2\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032#google/lo" + + "ngrunning/operations.proto\032\033google/proto" + + "buf/empty.proto\032 google/protobuf/field_m" + + "ask.proto\"\303\005\n\nEntityType\022\014\n\004name\030\001 \001(\t\022\031" + + "\n\014display_name\030\002 \001(\tB\003\340A\002\022>\n\004kind\030\003 \001(\0162" + + "+.google.cloud.dialogflow.v2.EntityType." + + "KindB\003\340A\002\022Z\n\023auto_expansion_mode\030\004 \001(\01628" + + ".google.cloud.dialogflow.v2.EntityType.A" + + "utoExpansionModeB\003\340A\001\022D\n\010entities\030\006 \003(\0132" + + "-.google.cloud.dialogflow.v2.EntityType." + + "EntityB\003\340A\001\022$\n\027enable_fuzzy_extraction\030\007" + + " \001(\010B\003\340A\001\0323\n\006Entity\022\022\n\005value\030\001 \001(\tB\003\340A\002\022" + + "\025\n\010synonyms\030\002 \003(\tB\003\340A\002\"J\n\004Kind\022\024\n\020KIND_U" + + "NSPECIFIED\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_EXPANSION_MODE_UNSPECIFIED\020\000\022\037\n\033" + + "AUTO_EXPANSION_MODE_DEFAULT\020\001:\247\001\352A\243\001\n$di" + + "alogflow.googleapis.com/EntityType\0222proj" + + "ects/{project}/agent/entityTypes/{entity" + + "_type}\022Gprojects/{project}/locations/{lo" + + "cation}/agent/entityTypes/{entity_type}\"" + + "\243\001\n\026ListEntityTypesRequest\022<\n\006parent\030\001 \001" + + "(\tB,\340A\002\372A&\022$dialogflow.googleapis.com/En" + + "tityType\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\001\022\026\n\t" + + "page_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\t" + + "B\003\340A\001\"p\n\027ListEntityTypesResponse\022<\n\014enti" + + "ty_types\030\001 \003(\0132&.google.cloud.dialogflow" + + ".v2.EntityType\022\027\n\017next_page_token\030\002 \001(\t\"" + + "n\n\024GetEntityTypeRequest\022:\n\004name\030\001 \001(\tB,\340" + + "A\002\372A&\n$dialogflow.googleapis.com/EntityT" + + "ype\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\001\"\265\001\n\027Crea" + + "teEntityTypeRequest\022<\n\006parent\030\001 \001(\tB,\340A\002" + + "\372A&\022$dialogflow.googleapis.com/EntityTyp" + + "e\022@\n\013entity_type\030\002 \001(\0132&.google.cloud.di" + + "alogflow.v2.EntityTypeB\003\340A\002\022\032\n\rlanguage_" + + "code\030\003 \001(\tB\003\340A\001\"\255\001\n\027UpdateEntityTypeRequ" + + "est\022@\n\013entity_type\030\001 \001(\0132&.google.cloud." + + "dialogflow.v2.EntityTypeB\003\340A\002\022\032\n\rlanguag" + + "e_code\030\002 \001(\tB\003\340A\001\0224\n\013update_mask\030\003 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\001\"U\n\027Delet" + + "eEntityTypeRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" + + "\n$dialogflow.googleapis.com/EntityType\"\266" + + "\002\n\035BatchUpdateEntityTypesRequest\022<\n\006pare" + + "nt\030\001 \001(\tB,\340A\002\372A&\022$dialogflow.googleapis." + + "com/EntityType\022\037\n\025entity_type_batch_uri\030" + + "\002 \001(\tH\000\022O\n\030entity_type_batch_inline\030\003 \001(" + + "\0132+.google.cloud.dialogflow.v2.EntityTyp" + + "eBatchH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\001\0224\n\013" + + "update_mask\030\005 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\001B\023\n\021entity_type_batch\"^\n\036Batch" + + "UpdateEntityTypesResponse\022<\n\014entity_type" + + "s\030\001 \003(\0132&.google.cloud.dialogflow.v2.Ent" + + "ityType\"}\n\035BatchDeleteEntityTypesRequest" + + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$dialogflow.goo" + + "gleapis.com/EntityType\022\036\n\021entity_type_na" + + "mes\030\002 \003(\tB\003\340A\002\"\274\001\n\032BatchCreateEntitiesRe" + + "quest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$dialogflo" + + "w.googleapis.com/EntityType\022D\n\010entities\030" + + "\002 \003(\0132-.google.cloud.dialogflow.v2.Entit" + + "yType.EntityB\003\340A\002\022\032\n\rlanguage_code\030\003 \001(\t" + + "B\003\340A\001\"\362\001\n\032BatchUpdateEntitiesRequest\022<\n\006" + + "parent\030\001 \001(\tB,\340A\002\372A&\n$dialogflow.googlea" + + "pis.com/EntityType\022D\n\010entities\030\002 \003(\0132-.g" + + "oogle.cloud.dialogflow.v2.EntityType.Ent" + + "ityB\003\340A\002\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\001\0224\n\013" + + "update_mask\030\004 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\001\"\222\001\n\032BatchDeleteEntitiesReques" + + "t\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$dialogflow.go" + + "ogleapis.com/EntityType\022\032\n\rentity_values" + + "\030\002 \003(\tB\003\340A\002\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\001\"" + + "O\n\017EntityTypeBatch\022<\n\014entity_types\030\001 \003(\013" + + "2&.google.cloud.dialogflow.v2.EntityType" + + "2\326\031\n\013EntityTypes\022\207\002\n\017ListEntityTypes\0222.g" + + "oogle.cloud.dialogflow.v2.ListEntityType" + + "sRequest\0323.google.cloud.dialogflow.v2.Li" + + "stEntityTypesResponse\"\212\001\202\323\344\223\002d\022)/v2/{par" + + "ent=projects/*/agent}/entityTypesZ7\0225/v2" + + "/{parent=projects/*/locations/*/agent}/e" + + "ntityTypes\332A\006parent\332A\024parent,language_co" + + "de\022\362\001\n\rGetEntityType\0220.google.cloud.dial" + + "ogflow.v2.GetEntityTypeRequest\032&.google." + + "cloud.dialogflow.v2.EntityType\"\206\001\202\323\344\223\002d\022" + + ")/v2/{name=projects/*/agent/entityTypes/" + + "*}Z7\0225/v2/{name=projects/*/locations/*/a" + + "gent/entityTypes/*}\332A\004name\332A\022name,langua" + + "ge_code\022\256\002\n\020CreateEntityType\0223.google.cl" + + "oud.dialogflow.v2.CreateEntityTypeReques" + + "t\032&.google.cloud.dialogflow.v2.EntityTyp" + + "e\"\274\001\202\323\344\223\002~\")/v2/{parent=projects/*/agent" + + "}/entityTypes:\013entity_typeZD\"5/v2/{paren" + + "t=projects/*/locations/*/agent}/entityTy" + + "pes:\013entity_type\332A\022parent,entity_type\332A " + + "parent,entity_type,language_code\022\271\002\n\020Upd" + + "ateEntityType\0223.google.cloud.dialogflow." + + "v2.UpdateEntityTypeRequest\032&.google.clou" + + "d.dialogflow.v2.EntityType\"\307\001\202\323\344\223\002\226\00125/v" + + "2/{entity_type.name=projects/*/agent/ent" + + "ityTypes/*}:\013entity_typeZP2A/v2/{entity_" + + "type.name=projects/*/locations/*/agent/e" + + "ntityTypes/*}:\013entity_type\332A\013entity_type" + + "\332A\031entity_type,language_code\022\322\001\n\020DeleteE" + + "ntityType\0223.google.cloud.dialogflow.v2.D" + + "eleteEntityTypeRequest\032\026.google.protobuf" + + ".Empty\"q\202\323\344\223\002d*)/v2/{name=projects/*/age" + + "nt/entityTypes/*}Z7*5/v2/{name=projects/" + + "*/locations/*/agent/entityTypes/*}\332A\004nam" + + "e\022\324\002\n\026BatchUpdateEntityTypes\0229.google.cl" + + "oud.dialogflow.v2.BatchUpdateEntityTypes" + + "Request\032\035.google.longrunning.Operation\"\337" + + "\001\202\323\344\223\002\202\001\"5/v2/{parent=projects/*/agent}/" + + "entityTypes:batchUpdate:\001*ZF\"A/v2/{paren" + + "t=projects/*/locations/*/agent}/entityTy" + + "pes:batchUpdate:\001*\312AS\n9google.cloud.dial" + + "ogflow.v2.BatchUpdateEntityTypesResponse" + + "\022\026google.protobuf.Struct\022\313\002\n\026BatchDelete" + + "EntityTypes\0229.google.cloud.dialogflow.v2" + + ".BatchDeleteEntityTypesRequest\032\035.google." + + "longrunning.Operation\"\326\001\202\323\344\223\002\202\001\"5/v2/{pa" + + "rent=projects/*/agent}/entityTypes:batch" + + "Delete:\001*ZF\"A/v2/{parent=projects/*/loca" + + "tions/*/agent}/entityTypes:batchDelete:\001" + + "*\332A\030parent,entity_type_names\312A/\n\025google." + + "protobuf.Empty\022\026google.protobuf.Struct\022\362" + + "\002\n\023BatchCreateEntities\0226.google.cloud.di" + + "alogflow.v2.BatchCreateEntitiesRequest\032\035" + + ".google.longrunning.Operation\"\203\002\202\323\344\223\002\230\001\"" + + "@/v2/{parent=projects/*/agent/entityType" + + "s/*}/entities:batchCreate:\001*ZQ\"L/v2/{par" + + "ent=projects/*/locations/*/agent/entityT" + + "ypes/*}/entities:batchCreate:\001*\332A\017parent" + + ",entities\332A\035parent,entities,language_cod" + + "e\312A/\n\025google.protobuf.Empty\022\026google.prot" + + "obuf.Struct\022\362\002\n\023BatchUpdateEntities\0226.go" + + "ogle.cloud.dialogflow.v2.BatchUpdateEnti" + + "tiesRequest\032\035.google.longrunning.Operati" + + "on\"\203\002\202\323\344\223\002\230\001\"@/v2/{parent=projects/*/age" + + "nt/entityTypes/*}/entities:batchUpdate:\001" + + "*ZQ\"L/v2/{parent=projects/*/locations/*/" + + "agent/entityTypes/*}/entities:batchUpdat" + + "e:\001*\332A\017parent,entities\332A\035parent,entities" + + ",language_code\312A/\n\025google.protobuf.Empty" + + "\022\026google.protobuf.Struct\022\374\002\n\023BatchDelete" + + "Entities\0226.google.cloud.dialogflow.v2.Ba" + + "tchDeleteEntitiesRequest\032\035.google.longru" + + "nning.Operation\"\215\002\202\323\344\223\002\230\001\"@/v2/{parent=p" + + "rojects/*/agent/entityTypes/*}/entities:" + + "batchDelete:\001*ZQ\"L/v2/{parent=projects/*" + + "/locations/*/agent/entityTypes/*}/entiti" + + "es:batchDelete:\001*\332A\024parent,entity_values" + + "\332A\"parent,entity_values,language_code\312A/" + + "\n\025google.protobuf.Empty\022\026google.protobuf" + + ".Struct\032x\312A\031dialogflow.googleapis.com\322AY" + + "https://www.googleapis.com/auth/cloud-pl" + + "atform,https://www.googleapis.com/auth/d" + + "ialogflowB\236\001\n\036com.google.cloud.dialogflo" + + "w.v2B\017EntityTypeProtoP\001ZDgoogle.golang.o" + + "rg/genproto/googleapis/cloud/dialogflow/" + + "v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dia" + + "logflow.V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.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(), + }); + internal_static_google_cloud_dialogflow_v2_EntityType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_EntityType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_EntityType_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Kind", "AutoExpansionMode", "Entities", "EnableFuzzyExtraction", }); + internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor = + internal_static_google_cloud_dialogflow_v2_EntityType_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_EntityType_Entity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_EntityType_Entity_descriptor, + new java.lang.String[] { "Value", "Synonyms", }); + internal_static_google_cloud_dialogflow_v2_ListEntityTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_ListEntityTypesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListEntityTypesRequest_descriptor, + new java.lang.String[] { "Parent", "LanguageCode", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2_ListEntityTypesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_ListEntityTypesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListEntityTypesResponse_descriptor, + new java.lang.String[] { "EntityTypes", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor, + new java.lang.String[] { "Name", "LanguageCode", }); + internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_CreateEntityTypeRequest_descriptor, + new java.lang.String[] { "Parent", "EntityType", "LanguageCode", }); + internal_static_google_cloud_dialogflow_v2_UpdateEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2_UpdateEntityTypeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_UpdateEntityTypeRequest_descriptor, + new java.lang.String[] { "EntityType", "LanguageCode", "UpdateMask", }); + internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_DeleteEntityTypeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesRequest_descriptor, + new java.lang.String[] { "Parent", "EntityTypeBatchUri", "EntityTypeBatchInline", "LanguageCode", "UpdateMask", "EntityTypeBatch", }); + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntityTypesResponse_descriptor, + new java.lang.String[] { "EntityTypes", }); + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntityTypesRequest_descriptor, + new java.lang.String[] { "Parent", "EntityTypeNames", }); + internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_BatchCreateEntitiesRequest_descriptor, + new java.lang.String[] { "Parent", "Entities", "LanguageCode", }); + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_BatchUpdateEntitiesRequest_descriptor, + new java.lang.String[] { "Parent", "Entities", "LanguageCode", "UpdateMask", }); + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_BatchDeleteEntitiesRequest_descriptor, + new java.lang.String[] { "Parent", "EntityValues", "LanguageCode", }); + internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_EntityTypeBatch_descriptor, + new java.lang.String[] { "EntityTypes", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Environment.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Environment.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Environment.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Environment.java index b183d519d..8df834a22 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Environment.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Environment.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * You can create multiple versions of your agent and publish them to separate
  * environments.
@@ -40,16 +23,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.Environment}
  */
-public final class Environment extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Environment extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Environment)
     EnvironmentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Environment.newBuilder() to construct.
   private Environment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Environment() {
     name_ = "";
     description_ = "";
@@ -59,15 +41,16 @@ private Environment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Environment();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Environment(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -86,119 +69,102 @@ private Environment(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            agentVersion_ = s;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              agentVersion_ = s;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
+            }
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 32:
-            {
-              int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            break;
+          }
+          case 58: {
+            com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder subBuilder = null;
+            if (textToSpeechSettings_ != null) {
+              subBuilder = textToSpeechSettings_.toBuilder();
             }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            textToSpeechSettings_ = input.readMessage(com.google.cloud.dialogflow.v2.TextToSpeechSettings.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(textToSpeechSettings_);
+              textToSpeechSettings_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder subBuilder = null;
-              if (textToSpeechSettings_ != null) {
-                subBuilder = textToSpeechSettings_.toBuilder();
-              }
-              textToSpeechSettings_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.TextToSpeechSettings.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(textToSpeechSettings_);
-                textToSpeechSettings_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 66: {
+            com.google.cloud.dialogflow.v2.Fulfillment.Builder subBuilder = null;
+            if (fulfillment_ != null) {
+              subBuilder = fulfillment_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.dialogflow.v2.Fulfillment.Builder subBuilder = null;
-              if (fulfillment_ != null) {
-                subBuilder = fulfillment_.toBuilder();
-              }
-              fulfillment_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Fulfillment.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(fulfillment_);
-                fulfillment_ = subBuilder.buildPartial();
-              }
-
-              break;
+            fulfillment_ = input.readMessage(com.google.cloud.dialogflow.v2.Fulfillment.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(fulfillment_);
+              fulfillment_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.EnvironmentProto
-        .internal_static_google_cloud_dialogflow_v2_Environment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_Environment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.EnvironmentProto
-        .internal_static_google_cloud_dialogflow_v2_Environment_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_Environment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.Environment.class,
-            com.google.cloud.dialogflow.v2.Environment.Builder.class);
+            com.google.cloud.dialogflow.v2.Environment.class, com.google.cloud.dialogflow.v2.Environment.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Represents an environment state. When an environment is pointed to a new
    * agent version, the environment is temporarily set to the `LOADING` state.
@@ -209,10 +175,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.dialogflow.v2.Environment.State}
    */
-  public enum State implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified. This value is not used.
      * 
@@ -221,8 +186,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Stopped.
      * 
@@ -231,8 +194,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STOPPED(1), /** - * - * *
      * Loading.
      * 
@@ -241,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ LOADING(2), /** - * - * *
      * Running.
      * 
@@ -254,8 +213,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified. This value is not used.
      * 
@@ -264,8 +221,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Stopped.
      * 
@@ -274,8 +229,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOPPED_VALUE = 1; /** - * - * *
      * Loading.
      * 
@@ -284,8 +237,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOADING_VALUE = 2; /** - * - * *
      * Running.
      * 
@@ -294,6 +245,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -318,51 +270,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return STOPPED; - case 2: - return LOADING; - case 3: - return RUNNING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return STOPPED; + case 2: return LOADING; + case 3: return RUNNING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.dialogflow.v2.Environment.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -382,8 +333,6 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The unique identifier of this agent environment.
    * Supported formats:
@@ -394,7 +343,6 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -403,15 +351,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The unique identifier of this agent environment.
    * Supported formats:
@@ -422,15 +369,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -441,15 +389,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Optional. The developer-provided description for this environment.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -458,30 +403,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. The developer-provided description for this environment.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -492,8 +437,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int AGENT_VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object agentVersion_; /** - * - * *
    * Optional. The agent version loaded into this environment.
    * Supported formats:
@@ -502,10 +445,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    *   ID>`
    * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The agentVersion. */ @java.lang.Override @@ -514,15 +454,14 @@ public java.lang.String getAgentVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentVersion_ = s; return s; } } /** - * - * *
    * Optional. The agent version loaded into this environment.
    * Supported formats:
@@ -531,18 +470,17 @@ public java.lang.String getAgentVersion() {
    *   ID>`
    * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for agentVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getAgentVersionBytes() { + public com.google.protobuf.ByteString + getAgentVersionBytes() { java.lang.Object ref = agentVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agentVersion_ = b; return b; } else { @@ -553,58 +491,41 @@ public com.google.protobuf.ByteString getAgentVersionBytes() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** - * - * *
    * Output only. The state of this environment. This field is read-only, i.e., it cannot be
    * set by create and update methods.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The state of this environment. This field is read-only, i.e., it cannot be
    * set by create and update methods.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.Environment.State getState() { + @java.lang.Override public com.google.cloud.dialogflow.v2.Environment.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Environment.State result = - com.google.cloud.dialogflow.v2.Environment.State.valueOf(state_); + com.google.cloud.dialogflow.v2.Environment.State result = com.google.cloud.dialogflow.v2.Environment.State.valueOf(state_); return result == null ? com.google.cloud.dialogflow.v2.Environment.State.UNRECOGNIZED : result; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update time of this environment. This field is read-only, i.e., it
    * cannot be set by create and update methods.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -612,16 +533,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update time of this environment. This field is read-only, i.e., it
    * cannot be set by create and update methods.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -629,15 +546,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update time of this environment. This field is read-only, i.e., it
    * cannot be set by create and update methods.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -647,16 +561,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int TEXT_TO_SPEECH_SETTINGS_FIELD_NUMBER = 7; private com.google.cloud.dialogflow.v2.TextToSpeechSettings textToSpeechSettings_; /** - * - * *
    * Optional. Text to speech settings for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the textToSpeechSettings field is set. */ @java.lang.Override @@ -664,54 +573,37 @@ public boolean hasTextToSpeechSettings() { return textToSpeechSettings_ != null; } /** - * - * *
    * Optional. Text to speech settings for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The textToSpeechSettings. */ @java.lang.Override public com.google.cloud.dialogflow.v2.TextToSpeechSettings getTextToSpeechSettings() { - return textToSpeechSettings_ == null - ? com.google.cloud.dialogflow.v2.TextToSpeechSettings.getDefaultInstance() - : textToSpeechSettings_; + return textToSpeechSettings_ == null ? com.google.cloud.dialogflow.v2.TextToSpeechSettings.getDefaultInstance() : textToSpeechSettings_; } /** - * - * *
    * Optional. Text to speech settings for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder - getTextToSpeechSettingsOrBuilder() { + public com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder getTextToSpeechSettingsOrBuilder() { return getTextToSpeechSettings(); } public static final int FULFILLMENT_FIELD_NUMBER = 8; private com.google.cloud.dialogflow.v2.Fulfillment fulfillment_; /** - * - * *
    * Optional. The fulfillment settings to use for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fulfillment field is set. */ @java.lang.Override @@ -719,34 +611,23 @@ public boolean hasFulfillment() { return fulfillment_ != null; } /** - * - * *
    * Optional. The fulfillment settings to use for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The fulfillment. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Fulfillment getFulfillment() { - return fulfillment_ == null - ? com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance() - : fulfillment_; + return fulfillment_ == null ? com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance() : fulfillment_; } /** - * - * *
    * Optional. The fulfillment settings to use for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.FulfillmentOrBuilder getFulfillmentOrBuilder() { @@ -754,7 +635,6 @@ public com.google.cloud.dialogflow.v2.FulfillmentOrBuilder getFulfillmentOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -766,7 +646,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -807,17 +688,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, agentVersion_); } if (state_ != com.google.cloud.dialogflow.v2.Environment.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (textToSpeechSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTextToSpeechSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTextToSpeechSettings()); } if (fulfillment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFulfillment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getFulfillment()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -827,29 +711,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Environment)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Environment other = - (com.google.cloud.dialogflow.v2.Environment) obj; + com.google.cloud.dialogflow.v2.Environment other = (com.google.cloud.dialogflow.v2.Environment) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getAgentVersion().equals(other.getAgentVersion())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getAgentVersion() + .equals(other.getAgentVersion())) return false; if (state_ != other.state_) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasTextToSpeechSettings() != other.hasTextToSpeechSettings()) return false; if (hasTextToSpeechSettings()) { - if (!getTextToSpeechSettings().equals(other.getTextToSpeechSettings())) return false; + if (!getTextToSpeechSettings() + .equals(other.getTextToSpeechSettings())) return false; } if (hasFulfillment() != other.hasFulfillment()) return false; if (hasFulfillment()) { - if (!getFulfillment().equals(other.getFulfillment())) return false; + if (!getFulfillment() + .equals(other.getFulfillment())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -887,104 +776,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.Environment parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.Environment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Environment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Environment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Environment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Environment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.Environment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * You can create multiple versions of your agent and publish them to separate
    * environments.
@@ -1004,23 +886,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Environment}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Environment)
       com.google.cloud.dialogflow.v2.EnvironmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.EnvironmentProto
-          .internal_static_google_cloud_dialogflow_v2_Environment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_Environment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.EnvironmentProto
-          .internal_static_google_cloud_dialogflow_v2_Environment_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_Environment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Environment.class,
-              com.google.cloud.dialogflow.v2.Environment.Builder.class);
+              com.google.cloud.dialogflow.v2.Environment.class, com.google.cloud.dialogflow.v2.Environment.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.Environment.newBuilder()
@@ -1028,15 +908,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1070,9 +951,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.EnvironmentProto
-          .internal_static_google_cloud_dialogflow_v2_Environment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_Environment_descriptor;
     }
 
     @java.lang.Override
@@ -1091,8 +972,7 @@ public com.google.cloud.dialogflow.v2.Environment build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.Environment buildPartial() {
-      com.google.cloud.dialogflow.v2.Environment result =
-          new com.google.cloud.dialogflow.v2.Environment(this);
+      com.google.cloud.dialogflow.v2.Environment result = new com.google.cloud.dialogflow.v2.Environment(this);
       result.name_ = name_;
       result.description_ = description_;
       result.agentVersion_ = agentVersion_;
@@ -1120,39 +1000,38 @@ public com.google.cloud.dialogflow.v2.Environment buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.Environment) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.Environment) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.Environment)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1216,8 +1095,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The unique identifier of this agent environment.
      * Supported formats:
@@ -1228,13 +1105,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1243,8 +1120,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The unique identifier of this agent environment.
      * Supported formats:
@@ -1255,14 +1130,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1270,8 +1146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The unique identifier of this agent environment.
      * Supported formats:
@@ -1282,22 +1156,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The unique identifier of this agent environment.
      * Supported formats:
@@ -1308,18 +1180,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The unique identifier of this agent environment.
      * Supported formats:
@@ -1330,16 +1199,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1347,21 +1216,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. The developer-provided description for this environment.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1370,22 +1237,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. The developer-provided description for this environment.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1393,64 +1259,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. The developer-provided description for this environment.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The developer-provided description for this environment.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. The developer-provided description for this environment.
      * The maximum length is 500 characters. If exceeded, the request is rejected.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1458,8 +1317,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object agentVersion_ = ""; /** - * - * *
      * Optional. The agent version loaded into this environment.
      * Supported formats:
@@ -1468,16 +1325,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      *   ID>`
      * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The agentVersion. */ public java.lang.String getAgentVersion() { java.lang.Object ref = agentVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentVersion_ = s; return s; @@ -1486,8 +1341,6 @@ public java.lang.String getAgentVersion() { } } /** - * - * *
      * Optional. The agent version loaded into this environment.
      * Supported formats:
@@ -1496,17 +1349,16 @@ public java.lang.String getAgentVersion() {
      *   ID>`
      * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for agentVersion. */ - public com.google.protobuf.ByteString getAgentVersionBytes() { + public com.google.protobuf.ByteString + getAgentVersionBytes() { java.lang.Object ref = agentVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agentVersion_ = b; return b; } else { @@ -1514,8 +1366,6 @@ public com.google.protobuf.ByteString getAgentVersionBytes() { } } /** - * - * *
      * Optional. The agent version loaded into this environment.
      * Supported formats:
@@ -1524,25 +1374,21 @@ public com.google.protobuf.ByteString getAgentVersionBytes() {
      *   ID>`
      * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The agentVersion to set. * @return This builder for chaining. */ - public Builder setAgentVersion(java.lang.String value) { + public Builder setAgentVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + agentVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The agent version loaded into this environment.
      * Supported formats:
@@ -1551,21 +1397,16 @@ public Builder setAgentVersion(java.lang.String value) {
      *   ID>`
      * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAgentVersion() { - + agentVersion_ = getDefaultInstance().getAgentVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The agent version loaded into this environment.
      * Supported formats:
@@ -1574,19 +1415,17 @@ public Builder clearAgentVersion() {
      *   ID>`
      * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for agentVersion to set. * @return This builder for chaining. */ - public Builder setAgentVersionBytes(com.google.protobuf.ByteString value) { + public Builder setAgentVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentVersion_ = value; onChanged(); return this; @@ -1594,79 +1433,55 @@ public Builder setAgentVersionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The state of this environment. This field is read-only, i.e., it cannot be
      * set by create and update methods.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of this environment. This field is read-only, i.e., it cannot be
      * set by create and update methods.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The state of this environment. This field is read-only, i.e., it cannot be
      * set by create and update methods.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Environment.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Environment.State result = - com.google.cloud.dialogflow.v2.Environment.State.valueOf(state_); - return result == null - ? com.google.cloud.dialogflow.v2.Environment.State.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Environment.State result = com.google.cloud.dialogflow.v2.Environment.State.valueOf(state_); + return result == null ? com.google.cloud.dialogflow.v2.Environment.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of this environment. This field is read-only, i.e., it cannot be
      * set by create and update methods.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1674,27 +1489,22 @@ public Builder setState(com.google.cloud.dialogflow.v2.Environment.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The state of this environment. This field is read-only, i.e., it cannot be
      * set by create and update methods.
      * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1702,61 +1512,42 @@ public Builder clearState() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1772,18 +1563,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1794,22 +1582,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1821,16 +1605,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1844,67 +1624,51 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update time of this environment. This field is read-only, i.e., it
      * cannot be set by create and update methods.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1912,61 +1676,41 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.dialogflow.v2.TextToSpeechSettings textToSpeechSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.TextToSpeechSettings, - com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder, - com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder> - textToSpeechSettingsBuilder_; + com.google.cloud.dialogflow.v2.TextToSpeechSettings, com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder, com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder> textToSpeechSettingsBuilder_; /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the textToSpeechSettings field is set. */ public boolean hasTextToSpeechSettings() { return textToSpeechSettingsBuilder_ != null || textToSpeechSettings_ != null; } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The textToSpeechSettings. */ public com.google.cloud.dialogflow.v2.TextToSpeechSettings getTextToSpeechSettings() { if (textToSpeechSettingsBuilder_ == null) { - return textToSpeechSettings_ == null - ? com.google.cloud.dialogflow.v2.TextToSpeechSettings.getDefaultInstance() - : textToSpeechSettings_; + return textToSpeechSettings_ == null ? com.google.cloud.dialogflow.v2.TextToSpeechSettings.getDefaultInstance() : textToSpeechSettings_; } else { return textToSpeechSettingsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTextToSpeechSettings( - com.google.cloud.dialogflow.v2.TextToSpeechSettings value) { + public Builder setTextToSpeechSettings(com.google.cloud.dialogflow.v2.TextToSpeechSettings value) { if (textToSpeechSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1980,15 +1724,11 @@ public Builder setTextToSpeechSettings( return this; } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTextToSpeechSettings( com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder builderForValue) { @@ -2002,24 +1742,17 @@ public Builder setTextToSpeechSettings( return this; } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeTextToSpeechSettings( - com.google.cloud.dialogflow.v2.TextToSpeechSettings value) { + public Builder mergeTextToSpeechSettings(com.google.cloud.dialogflow.v2.TextToSpeechSettings value) { if (textToSpeechSettingsBuilder_ == null) { if (textToSpeechSettings_ != null) { textToSpeechSettings_ = - com.google.cloud.dialogflow.v2.TextToSpeechSettings.newBuilder(textToSpeechSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.TextToSpeechSettings.newBuilder(textToSpeechSettings_).mergeFrom(value).buildPartial(); } else { textToSpeechSettings_ = value; } @@ -2031,15 +1764,11 @@ public Builder mergeTextToSpeechSettings( return this; } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTextToSpeechSettings() { if (textToSpeechSettingsBuilder_ == null) { @@ -2053,66 +1782,48 @@ public Builder clearTextToSpeechSettings() { return this; } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder - getTextToSpeechSettingsBuilder() { - + public com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder getTextToSpeechSettingsBuilder() { + onChanged(); return getTextToSpeechSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder - getTextToSpeechSettingsOrBuilder() { + public com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder getTextToSpeechSettingsOrBuilder() { if (textToSpeechSettingsBuilder_ != null) { return textToSpeechSettingsBuilder_.getMessageOrBuilder(); } else { - return textToSpeechSettings_ == null - ? com.google.cloud.dialogflow.v2.TextToSpeechSettings.getDefaultInstance() - : textToSpeechSettings_; + return textToSpeechSettings_ == null ? + com.google.cloud.dialogflow.v2.TextToSpeechSettings.getDefaultInstance() : textToSpeechSettings_; } } /** - * - * *
      * Optional. Text to speech settings for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.TextToSpeechSettings, - com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder, - com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder> + com.google.cloud.dialogflow.v2.TextToSpeechSettings, com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder, com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder> getTextToSpeechSettingsFieldBuilder() { if (textToSpeechSettingsBuilder_ == null) { - textToSpeechSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.TextToSpeechSettings, - com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder, - com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder>( - getTextToSpeechSettings(), getParentForChildren(), isClean()); + textToSpeechSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.TextToSpeechSettings, com.google.cloud.dialogflow.v2.TextToSpeechSettings.Builder, com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder>( + getTextToSpeechSettings(), + getParentForChildren(), + isClean()); textToSpeechSettings_ = null; } return textToSpeechSettingsBuilder_; @@ -2120,58 +1831,39 @@ public Builder clearTextToSpeechSettings() { private com.google.cloud.dialogflow.v2.Fulfillment fulfillment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment, - com.google.cloud.dialogflow.v2.Fulfillment.Builder, - com.google.cloud.dialogflow.v2.FulfillmentOrBuilder> - fulfillmentBuilder_; + com.google.cloud.dialogflow.v2.Fulfillment, com.google.cloud.dialogflow.v2.Fulfillment.Builder, com.google.cloud.dialogflow.v2.FulfillmentOrBuilder> fulfillmentBuilder_; /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fulfillment field is set. */ public boolean hasFulfillment() { return fulfillmentBuilder_ != null || fulfillment_ != null; } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The fulfillment. */ public com.google.cloud.dialogflow.v2.Fulfillment getFulfillment() { if (fulfillmentBuilder_ == null) { - return fulfillment_ == null - ? com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance() - : fulfillment_; + return fulfillment_ == null ? com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance() : fulfillment_; } else { return fulfillmentBuilder_.getMessage(); } } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFulfillment(com.google.cloud.dialogflow.v2.Fulfillment value) { if (fulfillmentBuilder_ == null) { @@ -2187,15 +1879,11 @@ public Builder setFulfillment(com.google.cloud.dialogflow.v2.Fulfillment value) return this; } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFulfillment( com.google.cloud.dialogflow.v2.Fulfillment.Builder builderForValue) { @@ -2209,23 +1897,17 @@ public Builder setFulfillment( return this; } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeFulfillment(com.google.cloud.dialogflow.v2.Fulfillment value) { if (fulfillmentBuilder_ == null) { if (fulfillment_ != null) { fulfillment_ = - com.google.cloud.dialogflow.v2.Fulfillment.newBuilder(fulfillment_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.Fulfillment.newBuilder(fulfillment_).mergeFrom(value).buildPartial(); } else { fulfillment_ = value; } @@ -2237,15 +1919,11 @@ public Builder mergeFulfillment(com.google.cloud.dialogflow.v2.Fulfillment value return this; } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFulfillment() { if (fulfillmentBuilder_ == null) { @@ -2259,71 +1937,55 @@ public Builder clearFulfillment() { return this; } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.Fulfillment.Builder getFulfillmentBuilder() { - + onChanged(); return getFulfillmentFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.FulfillmentOrBuilder getFulfillmentOrBuilder() { if (fulfillmentBuilder_ != null) { return fulfillmentBuilder_.getMessageOrBuilder(); } else { - return fulfillment_ == null - ? com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance() - : fulfillment_; + return fulfillment_ == null ? + com.google.cloud.dialogflow.v2.Fulfillment.getDefaultInstance() : fulfillment_; } } /** - * - * *
      * Optional. The fulfillment settings to use for this environment.
      * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment, - com.google.cloud.dialogflow.v2.Fulfillment.Builder, - com.google.cloud.dialogflow.v2.FulfillmentOrBuilder> + com.google.cloud.dialogflow.v2.Fulfillment, com.google.cloud.dialogflow.v2.Fulfillment.Builder, com.google.cloud.dialogflow.v2.FulfillmentOrBuilder> getFulfillmentFieldBuilder() { if (fulfillmentBuilder_ == null) { - fulfillmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment, - com.google.cloud.dialogflow.v2.Fulfillment.Builder, - com.google.cloud.dialogflow.v2.FulfillmentOrBuilder>( - getFulfillment(), getParentForChildren(), isClean()); + fulfillmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Fulfillment, com.google.cloud.dialogflow.v2.Fulfillment.Builder, com.google.cloud.dialogflow.v2.FulfillmentOrBuilder>( + getFulfillment(), + getParentForChildren(), + isClean()); fulfillment_ = null; } return fulfillmentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2333,12 +1995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Environment) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Environment) private static final com.google.cloud.dialogflow.v2.Environment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Environment(); } @@ -2347,16 +2009,16 @@ public static com.google.cloud.dialogflow.v2.Environment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Environment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Environment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Environment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Environment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2371,4 +2033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Environment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistory.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistory.java similarity index 71% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistory.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistory.java index dd27492d1..b52ee20b9 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistory.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistory.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The response message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory} */ -public final class EnvironmentHistory extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EnvironmentHistory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EnvironmentHistory) EnvironmentHistoryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EnvironmentHistory.newBuilder() to construct. private EnvironmentHistory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EnvironmentHistory() { parent_ = ""; entries_ = java.util.Collections.emptyList(); @@ -45,15 +27,16 @@ private EnvironmentHistory() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EnvironmentHistory(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EnvironmentHistory( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,41 @@ private EnvironmentHistory( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry>(); - mutable_bitField0_ |= 0x00000001; - } - entries_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.parser(), - extensionRegistry)); - break; + parent_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entries_.add( + input.readMessage(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); @@ -122,104 +99,82 @@ private EnvironmentHistory( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EnvironmentHistory.class, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Builder.class); + com.google.cloud.dialogflow.v2.EnvironmentHistory.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Builder.class); } - public interface EntryOrBuilder - extends + public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The agent version loaded into this environment history entry.
      * 
* * string agent_version = 1; - * * @return The agentVersion. */ java.lang.String getAgentVersion(); /** - * - * *
      * The agent version loaded into this environment history entry.
      * 
* * string agent_version = 1; - * * @return The bytes for agentVersion. */ - com.google.protobuf.ByteString getAgentVersionBytes(); + com.google.protobuf.ByteString + getAgentVersionBytes(); /** - * - * *
      * The developer-provided description for this environment history entry.
      * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * The developer-provided description for this environment history entry.
      * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
      * The creation time of this environment history entry.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
      * The creation time of this environment history entry.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
      * The creation time of this environment history entry.
      * 
@@ -229,24 +184,21 @@ public interface EntryOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } /** - * - * *
    * Represents an environment history entry.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory.Entry} */ - public static final class Entry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Entry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) EntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Entry() { agentVersion_ = ""; description_ = ""; @@ -254,15 +206,16 @@ private Entry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -281,80 +234,71 @@ private Entry( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - agentVersion_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + agentVersion_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + description_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.class, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder.class); + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder.class); } public static final int AGENT_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object agentVersion_; /** - * - * *
      * The agent version loaded into this environment history entry.
      * 
* * string agent_version = 1; - * * @return The agentVersion. */ @java.lang.Override @@ -363,29 +307,29 @@ public java.lang.String getAgentVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentVersion_ = s; return s; } } /** - * - * *
      * The agent version loaded into this environment history entry.
      * 
* * string agent_version = 1; - * * @return The bytes for agentVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getAgentVersionBytes() { + public com.google.protobuf.ByteString + getAgentVersionBytes() { java.lang.Object ref = agentVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agentVersion_ = b; return b; } else { @@ -396,14 +340,11 @@ public com.google.protobuf.ByteString getAgentVersionBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
      * The developer-provided description for this environment history entry.
      * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -412,29 +353,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * The developer-provided description for this environment history entry.
      * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -445,14 +386,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
      * The creation time of this environment history entry.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -460,14 +398,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
      * The creation time of this environment history entry.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -475,8 +410,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
      * The creation time of this environment history entry.
      * 
@@ -489,7 +422,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -501,7 +433,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getAgentVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentVersion_); } @@ -527,7 +460,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -537,19 +471,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry other = - (com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) obj; + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry other = (com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) obj; - if (!getAgentVersion().equals(other.getAgentVersion())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getAgentVersion() + .equals(other.getAgentVersion())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -576,94 +512,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -673,32 +602,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents an environment history entry.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory.Entry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.class, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder.class); + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.newBuilder() @@ -706,15 +630,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -732,9 +657,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; } @java.lang.Override @@ -753,8 +678,7 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry build() { @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry buildPartial() { - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry result = - new com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry(this); + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry result = new com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry(this); result.agentVersion_ = agentVersion_; result.description_ = description_; if (createTimeBuilder_ == null) { @@ -770,41 +694,38 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) { - return mergeFrom((com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) other); + return mergeFrom((com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry)other); } else { super.mergeFrom(other); return this; @@ -812,8 +733,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry other) { - if (other == com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()) return this; if (!other.getAgentVersion().isEmpty()) { agentVersion_ = other.agentVersion_; onChanged(); @@ -844,8 +764,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -857,20 +776,18 @@ public Builder mergeFrom( private java.lang.Object agentVersion_ = ""; /** - * - * *
        * The agent version loaded into this environment history entry.
        * 
* * string agent_version = 1; - * * @return The agentVersion. */ public java.lang.String getAgentVersion() { java.lang.Object ref = agentVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentVersion_ = s; return s; @@ -879,21 +796,20 @@ public java.lang.String getAgentVersion() { } } /** - * - * *
        * The agent version loaded into this environment history entry.
        * 
* * string agent_version = 1; - * * @return The bytes for agentVersion. */ - public com.google.protobuf.ByteString getAgentVersionBytes() { + public com.google.protobuf.ByteString + getAgentVersionBytes() { java.lang.Object ref = agentVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agentVersion_ = b; return b; } else { @@ -901,61 +817,54 @@ public com.google.protobuf.ByteString getAgentVersionBytes() { } } /** - * - * *
        * The agent version loaded into this environment history entry.
        * 
* * string agent_version = 1; - * * @param value The agentVersion to set. * @return This builder for chaining. */ - public Builder setAgentVersion(java.lang.String value) { + public Builder setAgentVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + agentVersion_ = value; onChanged(); return this; } /** - * - * *
        * The agent version loaded into this environment history entry.
        * 
* * string agent_version = 1; - * * @return This builder for chaining. */ public Builder clearAgentVersion() { - + agentVersion_ = getDefaultInstance().getAgentVersion(); onChanged(); return this; } /** - * - * *
        * The agent version loaded into this environment history entry.
        * 
* * string agent_version = 1; - * * @param value The bytes for agentVersion to set. * @return This builder for chaining. */ - public Builder setAgentVersionBytes(com.google.protobuf.ByteString value) { + public Builder setAgentVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentVersion_ = value; onChanged(); return this; @@ -963,20 +872,18 @@ public Builder setAgentVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
        * The developer-provided description for this environment history entry.
        * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -985,21 +892,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * The developer-provided description for this environment history entry.
        * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1007,61 +913,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * The developer-provided description for this environment history entry.
        * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * The developer-provided description for this environment history entry.
        * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * The developer-provided description for this environment history entry.
        * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1069,47 +968,34 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
        * The creation time of this environment history entry.
        * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
        * The creation time of this environment history entry.
        * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
        * The creation time of this environment history entry.
        * 
@@ -1130,15 +1016,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The creation time of this environment history entry.
        * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1149,8 +1034,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
        * The creation time of this environment history entry.
        * 
@@ -1161,9 +1044,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1175,8 +1056,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The creation time of this environment history entry.
        * 
@@ -1195,8 +1074,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
        * The creation time of this environment history entry.
        * 
@@ -1204,13 +1081,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The creation time of this environment history entry.
        * 
@@ -1221,14 +1096,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
        * The creation time of this environment history entry.
        * 
@@ -1236,22 +1108,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1264,12 +1132,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EnvironmentHistory.Entry) private static final com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry(); } @@ -1278,16 +1146,16 @@ public static com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1302,13 +1170,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Output only. The name of the environment this history is for.
    * Supported formats:
@@ -1319,7 +1186,6 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getDefaultInstanc
    * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parent. */ @java.lang.Override @@ -1328,15 +1194,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Output only. The name of the environment this history is for.
    * Supported formats:
@@ -1347,15 +1212,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1366,81 +1232,61 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ENTRIES_FIELD_NUMBER = 2; private java.util.List entries_; /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getEntriesOrBuilderList() { return entries_; } /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getEntries(int index) { return entries_.get(index); } /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntriesOrBuilder( @@ -1451,15 +1297,12 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntri public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Output only. Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ @java.lang.Override @@ -1468,30 +1311,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Output only. Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1500,7 +1343,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1512,7 +1354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1535,7 +1378,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, entries_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -1548,17 +1392,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.EnvironmentHistory)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.EnvironmentHistory other = - (com.google.cloud.dialogflow.v2.EnvironmentHistory) obj; + com.google.cloud.dialogflow.v2.EnvironmentHistory other = (com.google.cloud.dialogflow.v2.EnvironmentHistory) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getEntriesList().equals(other.getEntriesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getEntriesList() + .equals(other.getEntriesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1584,126 +1430,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EnvironmentHistory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.EnvironmentHistory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.EnvironmentHistory} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EnvironmentHistory) com.google.cloud.dialogflow.v2.EnvironmentHistoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.EnvironmentHistory.class, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Builder.class); + com.google.cloud.dialogflow.v2.EnvironmentHistory.class, com.google.cloud.dialogflow.v2.EnvironmentHistory.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.EnvironmentHistory.newBuilder() @@ -1711,17 +1548,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1739,9 +1576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; } @java.lang.Override @@ -1760,8 +1597,7 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory build() { @java.lang.Override public com.google.cloud.dialogflow.v2.EnvironmentHistory buildPartial() { - com.google.cloud.dialogflow.v2.EnvironmentHistory result = - new com.google.cloud.dialogflow.v2.EnvironmentHistory(this); + com.google.cloud.dialogflow.v2.EnvironmentHistory result = new com.google.cloud.dialogflow.v2.EnvironmentHistory(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (entriesBuilder_ == null) { @@ -1782,39 +1618,38 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.EnvironmentHistory) { - return mergeFrom((com.google.cloud.dialogflow.v2.EnvironmentHistory) other); + return mergeFrom((com.google.cloud.dialogflow.v2.EnvironmentHistory)other); } else { super.mergeFrom(other); return this; @@ -1822,8 +1657,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.EnvironmentHistory other) { - if (other == com.google.cloud.dialogflow.v2.EnvironmentHistory.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.EnvironmentHistory.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1846,10 +1680,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.EnvironmentHistory other entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntriesFieldBuilder() - : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -1878,8 +1711,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.EnvironmentHistory) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.EnvironmentHistory) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1888,13 +1720,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Output only. The name of the environment this history is for.
      * Supported formats:
@@ -1905,13 +1734,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1920,8 +1749,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Output only. The name of the environment this history is for.
      * Supported formats:
@@ -1932,14 +1759,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1947,8 +1775,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Output only. The name of the environment this history is for.
      * Supported formats:
@@ -1959,22 +1785,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the environment this history is for.
      * Supported formats:
@@ -1985,18 +1809,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the environment this history is for.
      * Supported formats:
@@ -2007,53 +1828,42 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private java.util.List entries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entries_ = - new java.util.ArrayList( - entries_); + entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, - com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> - entriesBuilder_; + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> entriesBuilder_; /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getEntriesList() { + public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { @@ -2061,16 +1871,12 @@ private void ensureEntriesIsMutable() { } } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -2080,16 +1886,12 @@ public int getEntriesCount() { } } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getEntries(int index) { if (entriesBuilder_ == null) { @@ -2099,16 +1901,12 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getEntries(int in } } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEntries( int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry value) { @@ -2125,20 +1923,15 @@ public Builder setEntries( return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEntries( - int index, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { + int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -2149,16 +1942,12 @@ public Builder setEntries( return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEntries(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry value) { if (entriesBuilder_ == null) { @@ -2174,16 +1963,12 @@ public Builder addEntries(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entr return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEntries( int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry value) { @@ -2200,16 +1985,12 @@ public Builder addEntries( return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEntries( com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { @@ -2223,20 +2004,15 @@ public Builder addEntries( return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addEntries( - int index, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { + int index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -2247,23 +2023,19 @@ public Builder addEntries( return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllEntries( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); @@ -2271,16 +2043,12 @@ public Builder addAllEntries( return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -2293,16 +2061,12 @@ public Builder clearEntries() { return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -2315,56 +2079,42 @@ public Builder removeEntries(int index) { return this; } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { - return entries_.get(index); - } else { + return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> - getEntriesOrBuilderList() { + public java.util.List + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -2372,68 +2122,52 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntri } } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()); + return getEntriesFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()); } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder addEntriesBuilder( int index) { - return getEntriesFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()); + return getEntriesFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.getDefaultInstance()); } /** - * - * *
      * Output only. The list of agent environments. There will be a maximum number of items
      * returned based on the page_size field in the request.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getEntriesBuilderList() { + public java.util.List + getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, - com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { - entriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, - com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, - com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder>( - entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry, com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder, com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder>( + entries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entries_ = null; } return entriesBuilder_; @@ -2441,21 +2175,19 @@ public com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry.Builder addEntrie private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Output only. Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2464,22 +2196,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Output only. Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2487,71 +2218,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Output only. Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Output only. Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2561,12 +2285,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.EnvironmentHistory) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EnvironmentHistory) private static final com.google.cloud.dialogflow.v2.EnvironmentHistory DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EnvironmentHistory(); } @@ -2575,16 +2299,16 @@ public static com.google.cloud.dialogflow.v2.EnvironmentHistory getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvironmentHistory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvironmentHistory(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentHistory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvironmentHistory(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2599,4 +2323,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.EnvironmentHistory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistoryOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistoryOrBuilder.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistoryOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistoryOrBuilder.java index e34b80e4a..40b29b0d0 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistoryOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentHistoryOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; -public interface EnvironmentHistoryOrBuilder - extends +public interface EnvironmentHistoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.EnvironmentHistory) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the environment this history is for.
    * Supported formats:
@@ -36,13 +18,10 @@ public interface EnvironmentHistoryOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Output only. The name of the environment this history is for.
    * Supported formats:
@@ -53,102 +32,79 @@ public interface EnvironmentHistoryOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getEntriesList(); + java.util.List + getEntriesList(); /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.dialogflow.v2.EnvironmentHistory.Entry getEntries(int index); /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getEntriesCount(); /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getEntriesOrBuilderList(); /** - * - * *
    * Output only. The list of agent environments. There will be a maximum number of items
    * returned based on the page_size field in the request.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.dialogflow.v2.EnvironmentHistory.Entry entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntriesOrBuilder(int index); + com.google.cloud.dialogflow.v2.EnvironmentHistory.EntryOrBuilder getEntriesOrBuilder( + int index); /** - * - * *
    * Output only. Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Output only. Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentOrBuilder.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentOrBuilder.java index ac890ed6e..97a92c349 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; -public interface EnvironmentOrBuilder - extends +public interface EnvironmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Environment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The unique identifier of this agent environment.
    * Supported formats:
@@ -36,13 +18,10 @@ public interface EnvironmentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The unique identifier of this agent environment.
    * Supported formats:
@@ -53,41 +32,34 @@ public interface EnvironmentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The developer-provided description for this environment.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. The developer-provided description for this environment.
    * The maximum length is 500 characters. If exceeded, the request is rejected.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. The agent version loaded into this environment.
    * Supported formats:
@@ -96,16 +68,11 @@ public interface EnvironmentOrBuilder
    *   ID>`
    * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The agentVersion. */ java.lang.String getAgentVersion(); /** - * - * *
    * Optional. The agent version loaded into this environment.
    * Supported formats:
@@ -114,165 +81,114 @@ public interface EnvironmentOrBuilder
    *   ID>`
    * 
* - * - * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string agent_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for agentVersion. */ - com.google.protobuf.ByteString getAgentVersionBytes(); + com.google.protobuf.ByteString + getAgentVersionBytes(); /** - * - * *
    * Output only. The state of this environment. This field is read-only, i.e., it cannot be
    * set by create and update methods.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of this environment. This field is read-only, i.e., it cannot be
    * set by create and update methods.
    * 
* - * - * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.dialogflow.v2.Environment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.dialogflow.v2.Environment.State getState(); /** - * - * *
    * Output only. The last update time of this environment. This field is read-only, i.e., it
    * cannot be set by create and update methods.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update time of this environment. This field is read-only, i.e., it
    * cannot be set by create and update methods.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update time of this environment. This field is read-only, i.e., it
    * cannot be set by create and update methods.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Text to speech settings for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the textToSpeechSettings field is set. */ boolean hasTextToSpeechSettings(); /** - * - * *
    * Optional. Text to speech settings for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The textToSpeechSettings. */ com.google.cloud.dialogflow.v2.TextToSpeechSettings getTextToSpeechSettings(); /** - * - * *
    * Optional. Text to speech settings for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.TextToSpeechSettings text_to_speech_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dialogflow.v2.TextToSpeechSettingsOrBuilder getTextToSpeechSettingsOrBuilder(); /** - * - * *
    * Optional. The fulfillment settings to use for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fulfillment field is set. */ boolean hasFulfillment(); /** - * - * *
    * Optional. The fulfillment settings to use for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The fulfillment. */ com.google.cloud.dialogflow.v2.Fulfillment getFulfillment(); /** - * - * *
    * Optional. The fulfillment settings to use for this environment.
    * 
* - * - * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.dialogflow.v2.Fulfillment fulfillment = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dialogflow.v2.FulfillmentOrBuilder getFulfillmentOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentProto.java new file mode 100644 index 000000000..c131d1d44 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentProto.java @@ -0,0 +1,307 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/environment.proto + +package com.google.cloud.dialogflow.v2; + +public final class EnvironmentProto { + private EnvironmentProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Environment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Environment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_SynthesizeSpeechConfigsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_SynthesizeSpeechConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_UpdateEnvironmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_UpdateEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/dialogflow/v2/environment" + + ".proto\022\032google.cloud.dialogflow.v2\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032-google/cl" + + "oud/dialogflow/v2/audio_config.proto\032,go" + + "ogle/cloud/dialogflow/v2/fulfillment.pro" + + "to\032\033google/protobuf/empty.proto\032 google/" + + "protobuf/field_mask.proto\032\037google/protob" + + "uf/timestamp.proto\"\204\005\n\013Environment\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022\030\n\013description\030\002 \001(\tB\003\340A\001\022" + + "@\n\ragent_version\030\003 \001(\tB)\340A\001\372A#\n!dialogfl" + + "ow.googleapis.com/Version\022A\n\005state\030\004 \001(\016" + + "2-.google.cloud.dialogflow.v2.Environmen" + + "t.StateB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022V\n\027text_to_sp" + + "eech_settings\030\007 \001(\01320.google.cloud.dialo" + + "gflow.v2.TextToSpeechSettingsB\003\340A\001\022A\n\013fu" + + "lfillment\030\010 \001(\0132\'.google.cloud.dialogflo" + + "w.v2.FulfillmentB\003\340A\001\"E\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\013\n\007STOPPED\020\001\022\013\n\007LOADING\020\002\022" + + "\013\n\007RUNNING\020\003:\252\001\352A\246\001\n%dialogflow.googleap" + + "is.com/Environment\0223projects/{project}/a" + + "gent/environments/{environment}\022Hproject" + + "s/{project}/locations/{location}/agent/e" + + "nvironments/{environment}\"\232\003\n\024TextToSpee" + + "chSettings\022\"\n\025enable_text_to_speech\030\001 \001(" + + "\010B\003\340A\001\022S\n\025output_audio_encoding\030\002 \001(\0162/." + + "google.cloud.dialogflow.v2.OutputAudioEn" + + "codingB\003\340A\002\022\036\n\021sample_rate_hertz\030\003 \001(\005B\003" + + "\340A\001\022u\n\031synthesize_speech_configs\030\004 \003(\0132M" + + ".google.cloud.dialogflow.v2.TextToSpeech" + + "Settings.SynthesizeSpeechConfigsEntryB\003\340" + + "A\001\032r\n\034SynthesizeSpeechConfigsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud.di" + + "alogflow.v2.SynthesizeSpeechConfig:\0028\001\"\211" + + "\001\n\027ListEnvironmentsRequest\022=\n\006parent\030\001 \001" + + "(\tB-\340A\002\372A\'\022%dialogflow.googleapis.com/En" + + "vironment\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + + "e_token\030\003 \001(\tB\003\340A\001\"r\n\030ListEnvironmentsRe" + + "sponse\022=\n\014environments\030\001 \003(\0132\'.google.cl" + + "oud.dialogflow.v2.Environment\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"T\n\025GetEnvironmentRequest\022" + + ";\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.google" + + "apis.com/Environment\"\271\001\n\030CreateEnvironme" + + "ntRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dialo" + + "gflow.googleapis.com/Environment\022A\n\013envi" + + "ronment\030\002 \001(\0132\'.google.cloud.dialogflow." + + "v2.EnvironmentB\003\340A\002\022\033\n\016environment_id\030\003 " + + "\001(\tB\003\340A\002\"\311\001\n\030UpdateEnvironmentRequest\022A\n" + + "\013environment\030\001 \001(\0132\'.google.cloud.dialog" + + "flow.v2.EnvironmentB\003\340A\002\0224\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\0224" + + "\n\'allow_load_to_draft_and_discard_change" + + "s\030\003 \001(\010B\003\340A\001\"W\n\030DeleteEnvironmentRequest" + + "\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googl" + + "eapis.com/Environment\"\216\001\n\034GetEnvironment" + + "HistoryRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%" + + "dialogflow.googleapis.com/Environment\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" + + "\tB\003\340A\001\"\371\001\n\022EnvironmentHistory\022\023\n\006parent\030" + + "\001 \001(\tB\003\340A\003\022J\n\007entries\030\002 \003(\01324.google.clo" + + "ud.dialogflow.v2.EnvironmentHistory.Entr" + + "yB\003\340A\003\022\034\n\017next_page_token\030\003 \001(\tB\003\340A\003\032d\n\005" + + "Entry\022\025\n\ragent_version\030\001 \001(\t\022\023\n\013descript" + + "ion\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google." + + "protobuf.Timestamp2\313\014\n\014Environments\022\364\001\n\020" + + "ListEnvironments\0223.google.cloud.dialogfl" + + "ow.v2.ListEnvironmentsRequest\0324.google.c" + + "loud.dialogflow.v2.ListEnvironmentsRespo" + + "nse\"u\202\323\344\223\002f\022*/v2/{parent=projects/*/agen" + + "t}/environmentsZ8\0226/v2/{parent=projects/" + + "*/locations/*/agent}/environments\332A\006pare" + + "nt\022\332\001\n\016GetEnvironment\0221.google.cloud.dia" + + "logflow.v2.GetEnvironmentRequest\032\'.googl" + + "e.cloud.dialogflow.v2.Environment\"l\202\323\344\223\002" + + "f\022*/v2/{name=projects/*/agent/environmen" + + "ts/*}Z8\0226/v2/{name=projects/*/locations/" + + "*/agent/environments/*}\022\374\001\n\021CreateEnviro" + + "nment\0224.google.cloud.dialogflow.v2.Creat" + + "eEnvironmentRequest\032\'.google.cloud.dialo" + + "gflow.v2.Environment\"\207\001\202\323\344\223\002\200\001\"*/v2/{par" + + "ent=projects/*/agent}/environments:\013envi" + + "ronmentZE\"6/v2/{parent=projects/*/locati" + + "ons/*/agent}/environments:\013environment\022\224" + + "\002\n\021UpdateEnvironment\0224.google.cloud.dial" + + "ogflow.v2.UpdateEnvironmentRequest\032\'.goo" + + "gle.cloud.dialogflow.v2.Environment\"\237\001\202\323" + + "\344\223\002\230\00126/v2/{environment.name=projects/*/" + + "agent/environments/*}:\013environmentZQ2B/v" + + "2/{environment.name=projects/*/locations" + + "/*/agent/environments/*}:\013environment\022\317\001" + + "\n\021DeleteEnvironment\0224.google.cloud.dialo" + + "gflow.v2.DeleteEnvironmentRequest\032\026.goog" + + "le.protobuf.Empty\"l\202\323\344\223\002f**/v2/{name=pro" + + "jects/*/agent/environments/*}Z8*6/v2/{na" + + "me=projects/*/locations/*/agent/environm" + + "ents/*}\022\204\002\n\025GetEnvironmentHistory\0228.goog" + + "le.cloud.dialogflow.v2.GetEnvironmentHis" + + "toryRequest\032..google.cloud.dialogflow.v2" + + ".EnvironmentHistory\"\200\001\202\323\344\223\002z\0224/v2/{paren" + + "t=projects/*/agent/environments/*}/histo" + + "ryZB\022@/v2/{parent=projects/*/locations/*" + + "/agent/environments/*}/history\032x\312A\031dialo" + + "gflow.googleapis.com\322AYhttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/dialogflowB\237\001\n\036com" + + ".google.cloud.dialogflow.v2B\020Environment" + + "ProtoP\001ZDgoogle.golang.org/genproto/goog" + + "leapis/cloud/dialogflow/v2;dialogflow\370\001\001" + + "\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + 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.FulfillmentProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_Environment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_Environment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Environment_descriptor, + new java.lang.String[] { "Name", "Description", "AgentVersion", "State", "UpdateTime", "TextToSpeechSettings", "Fulfillment", }); + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_descriptor, + new java.lang.String[] { "EnableTextToSpeech", "OutputAudioEncoding", "SampleRateHertz", "SynthesizeSpeechConfigs", }); + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_SynthesizeSpeechConfigsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_SynthesizeSpeechConfigsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_TextToSpeechSettings_SynthesizeSpeechConfigsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_ListEnvironmentsResponse_descriptor, + new java.lang.String[] { "Environments", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_CreateEnvironmentRequest_descriptor, + new java.lang.String[] { "Parent", "Environment", "EnvironmentId", }); + internal_static_google_cloud_dialogflow_v2_UpdateEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dialogflow_v2_UpdateEnvironmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_UpdateEnvironmentRequest_descriptor, + new java.lang.String[] { "Environment", "UpdateMask", "AllowLoadToDraftAndDiscardChanges", }); + internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_DeleteEnvironmentRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor, + new java.lang.String[] { "Parent", "Entries", "NextPageToken", }); + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor = + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_EnvironmentHistory_Entry_descriptor, + new java.lang.String[] { "AgentVersion", "Description", "CreateTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + 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.FulfillmentProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java similarity index 78% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java index 7402c472e..15a48a083 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInput.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * Events allow for matching intents by event name instead of the natural
  * language input. For instance, input `<event: { name: "welcome_event",
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.EventInput}
  */
-public final class EventInput extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EventInput extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.EventInput)
     EventInputOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EventInput.newBuilder() to construct.
   private EventInput(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EventInput() {
     name_ = "";
     languageCode_ = "";
@@ -48,15 +30,16 @@ private EventInput() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EventInput();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EventInput(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,80 +58,71 @@ private EventInput(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Struct.Builder subBuilder = null;
+            if (parameters_ != null) {
+              subBuilder = parameters_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.Struct.Builder subBuilder = null;
-              if (parameters_ != null) {
-                subBuilder = parameters_.toBuilder();
-              }
-              parameters_ =
-                  input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(parameters_);
-                parameters_ = subBuilder.buildPartial();
-              }
-
-              break;
+            parameters_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(parameters_);
+              parameters_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              languageCode_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.SessionProto
-        .internal_static_google_cloud_dialogflow_v2_EventInput_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_EventInput_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.SessionProto
-        .internal_static_google_cloud_dialogflow_v2_EventInput_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_EventInput_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.EventInput.class,
-            com.google.cloud.dialogflow.v2.EventInput.Builder.class);
+            com.google.cloud.dialogflow.v2.EventInput.class, com.google.cloud.dialogflow.v2.EventInput.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The unique identifier of the event.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -157,29 +131,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The unique identifier of the event.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -190,8 +164,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PARAMETERS_FIELD_NUMBER = 2; private com.google.protobuf.Struct parameters_; /** - * - * *
    * The collection of parameters associated with the event.
    * Depending on your protocol or client library language, this is a
@@ -210,7 +182,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.protobuf.Struct parameters = 2; - * * @return Whether the parameters field is set. */ @java.lang.Override @@ -218,8 +189,6 @@ public boolean hasParameters() { return parameters_ != null; } /** - * - * *
    * The collection of parameters associated with the event.
    * Depending on your protocol or client library language, this is a
@@ -238,7 +207,6 @@ public boolean hasParameters() {
    * 
* * .google.protobuf.Struct parameters = 2; - * * @return The parameters. */ @java.lang.Override @@ -246,8 +214,6 @@ public com.google.protobuf.Struct getParameters() { return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } /** - * - * *
    * The collection of parameters associated with the event.
    * Depending on your protocol or client library language, this is a
@@ -275,8 +241,6 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 3;
   private volatile java.lang.Object languageCode_;
   /**
-   *
-   *
    * 
    * Required. The language of this query. See [Language
    * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -285,7 +249,6 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -294,15 +257,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Required. The language of this query. See [Language
    * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -311,15 +273,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -328,7 +291,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,7 +302,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -363,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (parameters_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParameters()); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); @@ -376,20 +340,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.EventInput)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.EventInput other = - (com.google.cloud.dialogflow.v2.EventInput) obj; + com.google.cloud.dialogflow.v2.EventInput other = (com.google.cloud.dialogflow.v2.EventInput) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasParameters() != other.hasParameters()) return false; if (hasParameters()) { - if (!getParameters().equals(other.getParameters())) return false; + if (!getParameters() + .equals(other.getParameters())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,104 +380,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.EventInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.EventInput parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.EventInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EventInput parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.EventInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.EventInput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Events allow for matching intents by event name instead of the natural
    * language input. For instance, input `<event: { name: "welcome_event",
@@ -522,23 +481,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.EventInput}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.EventInput)
       com.google.cloud.dialogflow.v2.EventInputOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.SessionProto
-          .internal_static_google_cloud_dialogflow_v2_EventInput_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_EventInput_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.SessionProto
-          .internal_static_google_cloud_dialogflow_v2_EventInput_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_EventInput_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.EventInput.class,
-              com.google.cloud.dialogflow.v2.EventInput.Builder.class);
+              com.google.cloud.dialogflow.v2.EventInput.class, com.google.cloud.dialogflow.v2.EventInput.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.EventInput.newBuilder()
@@ -546,15 +503,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -572,9 +530,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.SessionProto
-          .internal_static_google_cloud_dialogflow_v2_EventInput_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.SessionProto.internal_static_google_cloud_dialogflow_v2_EventInput_descriptor;
     }
 
     @java.lang.Override
@@ -593,8 +551,7 @@ public com.google.cloud.dialogflow.v2.EventInput build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.EventInput buildPartial() {
-      com.google.cloud.dialogflow.v2.EventInput result =
-          new com.google.cloud.dialogflow.v2.EventInput(this);
+      com.google.cloud.dialogflow.v2.EventInput result = new com.google.cloud.dialogflow.v2.EventInput(this);
       result.name_ = name_;
       if (parametersBuilder_ == null) {
         result.parameters_ = parameters_;
@@ -610,39 +567,38 @@ public com.google.cloud.dialogflow.v2.EventInput buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.EventInput) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.EventInput) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.EventInput)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -693,20 +649,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The unique identifier of the event.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -715,21 +669,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The unique identifier of the event.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -737,61 +690,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The unique identifier of the event.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The unique identifier of the event.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The unique identifier of the event.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -799,13 +745,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct parameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - parametersBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> parametersBuilder_; /** - * - * *
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -824,15 +765,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Struct parameters = 2; - * * @return Whether the parameters field is set. */ public boolean hasParameters() { return parametersBuilder_ != null || parameters_ != null; } /** - * - * *
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -851,7 +789,6 @@ public boolean hasParameters() {
      * 
* * .google.protobuf.Struct parameters = 2; - * * @return The parameters. */ public com.google.protobuf.Struct getParameters() { @@ -862,8 +799,6 @@ public com.google.protobuf.Struct getParameters() { } } /** - * - * *
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -897,8 +832,6 @@ public Builder setParameters(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -918,7 +851,8 @@ public Builder setParameters(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct parameters = 2;
      */
-    public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setParameters(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (parametersBuilder_ == null) {
         parameters_ = builderForValue.build();
         onChanged();
@@ -929,8 +863,6 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -954,7 +886,7 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
       if (parametersBuilder_ == null) {
         if (parameters_ != null) {
           parameters_ =
-              com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial();
         } else {
           parameters_ = value;
         }
@@ -966,8 +898,6 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -999,8 +929,6 @@ public Builder clearParameters() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -1021,13 +949,11 @@ public Builder clearParameters() {
      * .google.protobuf.Struct parameters = 2;
      */
     public com.google.protobuf.Struct.Builder getParametersBuilder() {
-
+      
       onChanged();
       return getParametersFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -1051,12 +977,11 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
       if (parametersBuilder_ != null) {
         return parametersBuilder_.getMessageOrBuilder();
       } else {
-        return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
+        return parameters_ == null ?
+            com.google.protobuf.Struct.getDefaultInstance() : parameters_;
       }
     }
     /**
-     *
-     *
      * 
      * The collection of parameters associated with the event.
      * Depending on your protocol or client library language, this is a
@@ -1077,17 +1002,14 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
      * .google.protobuf.Struct parameters = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getParametersFieldBuilder() {
       if (parametersBuilder_ == null) {
-        parametersBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                getParameters(), getParentForChildren(), isClean());
+        parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                getParameters(),
+                getParentForChildren(),
+                isClean());
         parameters_ = null;
       }
       return parametersBuilder_;
@@ -1095,8 +1017,6 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Required. The language of this query. See [Language
      * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -1105,13 +1025,13 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1120,8 +1040,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Required. The language of this query. See [Language
      * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -1130,14 +1048,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1145,8 +1064,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Required. The language of this query. See [Language
      * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -1155,22 +1072,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The language of this query. See [Language
      * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -1179,18 +1094,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language of this query. See [Language
      * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -1199,23 +1111,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1225,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.EventInput) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.EventInput) private static final com.google.cloud.dialogflow.v2.EventInput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.EventInput(); } @@ -1239,16 +1151,16 @@ public static com.google.cloud.dialogflow.v2.EventInput getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventInput(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventInput(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,4 +1175,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.EventInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java similarity index 83% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java index cee0f1991..fbc526b52 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/EventInputOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface EventInputOrBuilder - extends +public interface EventInputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.EventInput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The unique identifier of the event.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The unique identifier of the event.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The collection of parameters associated with the event.
    * Depending on your protocol or client library language, this is a
@@ -69,13 +46,10 @@ public interface EventInputOrBuilder
    * 
* * .google.protobuf.Struct parameters = 2; - * * @return Whether the parameters field is set. */ boolean hasParameters(); /** - * - * *
    * The collection of parameters associated with the event.
    * Depending on your protocol or client library language, this is a
@@ -94,13 +68,10 @@ public interface EventInputOrBuilder
    * 
* * .google.protobuf.Struct parameters = 2; - * * @return The parameters. */ com.google.protobuf.Struct getParameters(); /** - * - * *
    * The collection of parameters associated with the event.
    * Depending on your protocol or client library language, this is a
@@ -123,8 +94,6 @@ public interface EventInputOrBuilder
   com.google.protobuf.StructOrBuilder getParametersOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The language of this query. See [Language
    * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -133,13 +102,10 @@ public interface EventInputOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language of this query. See [Language
    * Support](https://cloud.google.com/dialogflow/docs/reference/language)
@@ -148,8 +114,8 @@ public interface EventInputOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java index 3401ccb7a..c82194fd8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentRequest} */ -public final class ExportAgentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportAgentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ExportAgentRequest) ExportAgentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportAgentRequest.newBuilder() to construct. private ExportAgentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportAgentRequest() { parent_ = ""; agentUri_ = ""; @@ -44,15 +26,16 @@ private ExportAgentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportAgentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportAgentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private ExportAgentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - agentUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + agentUri_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ExportAgentRequest.class, - com.google.cloud.dialogflow.v2.ExportAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.ExportAgentRequest.class, com.google.cloud.dialogflow.v2.ExportAgentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project that the agent to export is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 to export is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int AGENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object agentUri_; /** - * - * *
    * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
    * URI to export the agent to.
@@ -187,7 +157,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The agentUri. */ @java.lang.Override @@ -196,15 +165,14 @@ public java.lang.String getAgentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentUri_ = s; return s; } } /** - * - * *
    * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
    * URI to export the agent to.
@@ -213,15 +181,16 @@ public java.lang.String getAgentUri() {
    * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for agentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getAgentUriBytes() { + public com.google.protobuf.ByteString + getAgentUriBytes() { java.lang.Object ref = agentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agentUri_ = b; return b; } else { @@ -230,7 +199,6 @@ public com.google.protobuf.ByteString getAgentUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,16 +241,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.ExportAgentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.ExportAgentRequest other = - (com.google.cloud.dialogflow.v2.ExportAgentRequest) obj; + com.google.cloud.dialogflow.v2.ExportAgentRequest other = (com.google.cloud.dialogflow.v2.ExportAgentRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getAgentUri().equals(other.getAgentUri())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getAgentUri() + .equals(other.getAgentUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,126 +273,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ExportAgentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.ExportAgentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ExportAgentRequest) com.google.cloud.dialogflow.v2.ExportAgentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ExportAgentRequest.class, - com.google.cloud.dialogflow.v2.ExportAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.ExportAgentRequest.class, com.google.cloud.dialogflow.v2.ExportAgentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.ExportAgentRequest.newBuilder() @@ -430,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentRequest_descriptor; } @java.lang.Override @@ -471,8 +433,7 @@ public com.google.cloud.dialogflow.v2.ExportAgentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.ExportAgentRequest buildPartial() { - com.google.cloud.dialogflow.v2.ExportAgentRequest result = - new com.google.cloud.dialogflow.v2.ExportAgentRequest(this); + com.google.cloud.dialogflow.v2.ExportAgentRequest result = new com.google.cloud.dialogflow.v2.ExportAgentRequest(this); result.parent_ = parent_; result.agentUri_ = agentUri_; onBuilt(); @@ -483,39 +444,38 @@ public com.google.cloud.dialogflow.v2.ExportAgentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.ExportAgentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.ExportAgentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.ExportAgentRequest)other); } else { super.mergeFrom(other); return this; @@ -523,8 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.ExportAgentRequest other) { - if (other == com.google.cloud.dialogflow.v2.ExportAgentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.ExportAgentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -552,8 +511,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.ExportAgentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.ExportAgentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,23 +523,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project that the agent to export is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -590,24 +544,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project that the agent to export is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -615,70 +566,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project that the agent to export is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to export is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to export is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -686,8 +624,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object agentUri_ = ""; /** - * - * *
      * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
      * URI to export the agent to.
@@ -696,13 +632,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The agentUri. */ public java.lang.String getAgentUri() { java.lang.Object ref = agentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentUri_ = s; return s; @@ -711,8 +647,6 @@ public java.lang.String getAgentUri() { } } /** - * - * *
      * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
      * URI to export the agent to.
@@ -721,14 +655,15 @@ public java.lang.String getAgentUri() {
      * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for agentUri. */ - public com.google.protobuf.ByteString getAgentUriBytes() { + public com.google.protobuf.ByteString + getAgentUriBytes() { java.lang.Object ref = agentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agentUri_ = b; return b; } else { @@ -736,8 +671,6 @@ public com.google.protobuf.ByteString getAgentUriBytes() { } } /** - * - * *
      * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
      * URI to export the agent to.
@@ -746,22 +679,20 @@ public com.google.protobuf.ByteString getAgentUriBytes() {
      * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The agentUri to set. * @return This builder for chaining. */ - public Builder setAgentUri(java.lang.String value) { + public Builder setAgentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + agentUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
      * URI to export the agent to.
@@ -770,18 +701,15 @@ public Builder setAgentUri(java.lang.String value) {
      * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAgentUri() { - + agentUri_ = getDefaultInstance().getAgentUri(); onChanged(); return this; } /** - * - * *
      * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
      * URI to export the agent to.
@@ -790,23 +718,23 @@ public Builder clearAgentUri() {
      * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for agentUri to set. * @return This builder for chaining. */ - public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { + public Builder setAgentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -816,12 +744,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ExportAgentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ExportAgentRequest) private static final com.google.cloud.dialogflow.v2.ExportAgentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ExportAgentRequest(); } @@ -830,16 +758,16 @@ public static com.google.cloud.dialogflow.v2.ExportAgentRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportAgentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportAgentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportAgentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,4 +782,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.ExportAgentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java index c2aba1d90..eb7aaa81a 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface ExportAgentRequestOrBuilder - extends +public interface ExportAgentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ExportAgentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project that the agent to export is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project that the agent to export is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
    * URI to export the agent to.
@@ -65,13 +38,10 @@ public interface ExportAgentRequestOrBuilder
    * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The agentUri. */ java.lang.String getAgentUri(); /** - * - * *
    * Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
    * URI to export the agent to.
@@ -80,8 +50,8 @@ public interface ExportAgentRequestOrBuilder
    * 
* * string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for agentUri. */ - com.google.protobuf.ByteString getAgentUriBytes(); + com.google.protobuf.ByteString + getAgentUriBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java similarity index 70% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java index 3ddab2cfb..9ff16a1a4 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentResponse} */ -public final class ExportAgentResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportAgentResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ExportAgentResponse) ExportAgentResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportAgentResponse.newBuilder() to construct. private ExportAgentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportAgentResponse() {} + private ExportAgentResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportAgentResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportAgentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,65 +52,58 @@ private ExportAgentResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - agentCase_ = 1; - agent_ = s; - break; - } - case 18: - { - agentCase_ = 2; - agent_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + agentCase_ = 1; + agent_ = s; + break; + } + case 18: { + agentCase_ = 2; + agent_ = input.readBytes(); + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ExportAgentResponse.class, - com.google.cloud.dialogflow.v2.ExportAgentResponse.Builder.class); + com.google.cloud.dialogflow.v2.ExportAgentResponse.class, com.google.cloud.dialogflow.v2.ExportAgentResponse.Builder.class); } private int agentCase_ = 0; private java.lang.Object agent_; - public enum AgentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AGENT_URI(1), AGENT_CONTENT(2), AGENT_NOT_SET(0); private final int value; - private AgentCase(int value) { this.value = value; } @@ -142,52 +119,43 @@ public static AgentCase valueOf(int value) { public static AgentCase forNumber(int value) { switch (value) { - case 1: - return AGENT_URI; - case 2: - return AGENT_CONTENT; - case 0: - return AGENT_NOT_SET; - default: - return null; + case 1: return AGENT_URI; + case 2: return AGENT_CONTENT; + case 0: return AGENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AgentCase getAgentCase() { - return AgentCase.forNumber(agentCase_); + public AgentCase + getAgentCase() { + return AgentCase.forNumber( + agentCase_); } public static final int AGENT_URI_FIELD_NUMBER = 1; /** - * - * *
    * 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; - * * @return Whether the agentUri field is set. */ public boolean hasAgentUri() { return agentCase_ == 1; } /** - * - * *
    * 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; - * * @return The agentUri. */ public java.lang.String getAgentUri() { @@ -198,7 +166,8 @@ public java.lang.String getAgentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (agentCase_ == 1) { agent_ = s; @@ -207,25 +176,24 @@ public java.lang.String getAgentUri() { } } /** - * - * *
    * 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; - * * @return The bytes for agentUri. */ - public com.google.protobuf.ByteString getAgentUriBytes() { + public com.google.protobuf.ByteString + getAgentUriBytes() { java.lang.Object ref = ""; if (agentCase_ == 1) { ref = agent_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (agentCase_ == 1) { agent_ = b; } @@ -237,14 +205,11 @@ public com.google.protobuf.ByteString getAgentUriBytes() { public static final int AGENT_CONTENT_FIELD_NUMBER = 2; /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; - * * @return Whether the agentContent field is set. */ @java.lang.Override @@ -252,14 +217,11 @@ public boolean hasAgentContent() { return agentCase_ == 2; } /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; - * * @return The agentContent. */ @java.lang.Override @@ -271,7 +233,6 @@ public com.google.protobuf.ByteString getAgentContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,12 +244,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (agentCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agent_); } if (agentCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) agent_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) agent_); } unknownFields.writeTo(output); } @@ -303,9 +266,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agent_); } if (agentCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) agent_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) agent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,21 +278,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.ExportAgentResponse)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.ExportAgentResponse other = - (com.google.cloud.dialogflow.v2.ExportAgentResponse) obj; + com.google.cloud.dialogflow.v2.ExportAgentResponse other = (com.google.cloud.dialogflow.v2.ExportAgentResponse) obj; if (!getAgentCase().equals(other.getAgentCase())) return false; switch (agentCase_) { case 1: - if (!getAgentUri().equals(other.getAgentUri())) return false; + if (!getAgentUri() + .equals(other.getAgentUri())) return false; break; case 2: - if (!getAgentContent().equals(other.getAgentContent())) return false; + if (!getAgentContent() + .equals(other.getAgentContent())) return false; break; case 0: default: @@ -363,126 +327,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ExportAgentResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.ExportAgentResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ExportAgentResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ExportAgentResponse) com.google.cloud.dialogflow.v2.ExportAgentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ExportAgentResponse.class, - com.google.cloud.dialogflow.v2.ExportAgentResponse.Builder.class); + com.google.cloud.dialogflow.v2.ExportAgentResponse.class, com.google.cloud.dialogflow.v2.ExportAgentResponse.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.ExportAgentResponse.newBuilder() @@ -490,15 +445,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -508,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ExportAgentResponse_descriptor; } @java.lang.Override @@ -529,8 +485,7 @@ public com.google.cloud.dialogflow.v2.ExportAgentResponse build() { @java.lang.Override public com.google.cloud.dialogflow.v2.ExportAgentResponse buildPartial() { - com.google.cloud.dialogflow.v2.ExportAgentResponse result = - new com.google.cloud.dialogflow.v2.ExportAgentResponse(this); + com.google.cloud.dialogflow.v2.ExportAgentResponse result = new com.google.cloud.dialogflow.v2.ExportAgentResponse(this); if (agentCase_ == 1) { result.agent_ = agent_; } @@ -546,39 +501,38 @@ public com.google.cloud.dialogflow.v2.ExportAgentResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.ExportAgentResponse) { - return mergeFrom((com.google.cloud.dialogflow.v2.ExportAgentResponse) other); + return mergeFrom((com.google.cloud.dialogflow.v2.ExportAgentResponse)other); } else { super.mergeFrom(other); return this; @@ -586,25 +540,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.ExportAgentResponse other) { - if (other == com.google.cloud.dialogflow.v2.ExportAgentResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.ExportAgentResponse.getDefaultInstance()) return this; switch (other.getAgentCase()) { - case AGENT_URI: - { - agentCase_ = 1; - agent_ = other.agent_; - onChanged(); - break; - } - case AGENT_CONTENT: - { - setAgentContent(other.getAgentContent()); - break; - } - case AGENT_NOT_SET: - { - break; - } + case AGENT_URI: { + agentCase_ = 1; + agent_ = other.agent_; + onChanged(); + break; + } + case AGENT_CONTENT: { + setAgentContent(other.getAgentContent()); + break; + } + case AGENT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -625,8 +575,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.ExportAgentResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.ExportAgentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,12 +584,12 @@ public Builder mergeFrom( } return this; } - private int agentCase_ = 0; private java.lang.Object agent_; - - public AgentCase getAgentCase() { - return AgentCase.forNumber(agentCase_); + public AgentCase + getAgentCase() { + return AgentCase.forNumber( + agentCase_); } public Builder clearAgent() { @@ -650,16 +599,14 @@ public Builder clearAgent() { return this; } + /** - * - * *
      * 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; - * * @return Whether the agentUri field is set. */ @java.lang.Override @@ -667,15 +614,12 @@ public boolean hasAgentUri() { return agentCase_ == 1; } /** - * - * *
      * 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; - * * @return The agentUri. */ @java.lang.Override @@ -685,7 +629,8 @@ public java.lang.String getAgentUri() { ref = agent_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (agentCase_ == 1) { agent_ = s; @@ -696,26 +641,25 @@ public java.lang.String getAgentUri() { } } /** - * - * *
      * 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; - * * @return The bytes for agentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getAgentUriBytes() { + public com.google.protobuf.ByteString + getAgentUriBytes() { java.lang.Object ref = ""; if (agentCase_ == 1) { ref = agent_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (agentCase_ == 1) { agent_ = b; } @@ -725,37 +669,32 @@ public com.google.protobuf.ByteString getAgentUriBytes() { } } /** - * - * *
      * 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; - * * @param value The agentUri to set. * @return This builder for chaining. */ - public Builder setAgentUri(java.lang.String value) { + public Builder setAgentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - agentCase_ = 1; + throw new NullPointerException(); + } + agentCase_ = 1; agent_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearAgentUri() { @@ -767,23 +706,21 @@ public Builder clearAgentUri() { return this; } /** - * - * *
      * 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; - * * @param value The bytes for agentUri to set. * @return This builder for chaining. */ - public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { + public Builder setAgentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); agentCase_ = 1; agent_ = value; onChanged(); @@ -791,28 +728,22 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; - * * @return Whether the agentContent field is set. */ public boolean hasAgentContent() { return agentCase_ == 2; } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; - * * @return The agentContent. */ public com.google.protobuf.ByteString getAgentContent() { @@ -822,35 +753,29 @@ public com.google.protobuf.ByteString getAgentContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; - * * @param value The agentContent to set. * @return This builder for chaining. */ public Builder setAgentContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - agentCase_ = 2; + throw new NullPointerException(); + } + agentCase_ = 2; agent_ = value; onChanged(); return this; } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 2; - * * @return This builder for chaining. */ public Builder clearAgentContent() { @@ -861,9 +786,9 @@ public Builder clearAgentContent() { } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ExportAgentResponse) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ExportAgentResponse) private static final com.google.cloud.dialogflow.v2.ExportAgentResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ExportAgentResponse(); } @@ -887,16 +812,16 @@ public static com.google.cloud.dialogflow.v2.ExportAgentResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportAgentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportAgentResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAgentResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportAgentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,4 +836,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.ExportAgentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java index 3ec216fa2..0f92da131 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ExportAgentResponseOrBuilder.java @@ -1,89 +1,59 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface ExportAgentResponseOrBuilder - extends +public interface ExportAgentResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ExportAgentResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * 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; - * * @return Whether the agentUri field is set. */ boolean hasAgentUri(); /** - * - * *
    * 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; - * * @return The agentUri. */ java.lang.String getAgentUri(); /** - * - * *
    * 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; - * * @return The bytes for agentUri. */ - com.google.protobuf.ByteString getAgentUriBytes(); + com.google.protobuf.ByteString + getAgentUriBytes(); /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; - * * @return Whether the agentContent field is set. */ boolean hasAgentContent(); /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 2; - * * @return The agentContent. */ com.google.protobuf.ByteString getAgentContent(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswer.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswer.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswer.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswer.java index 1ccfdc01b..dcfe78249 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswer.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswer.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents answer from "frequently asked questions".
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.FaqAnswer} */ -public final class FaqAnswer extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FaqAnswer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.FaqAnswer) FaqAnswerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FaqAnswer.newBuilder() to construct. private FaqAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FaqAnswer() { answer_ = ""; question_ = ""; @@ -46,15 +28,16 @@ private FaqAnswer() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FaqAnswer(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FaqAnswer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,110 +57,100 @@ private FaqAnswer( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - answer_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + answer_ = s; + break; + } + case 21: { - question_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + confidence_ = input.readFloat(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - source_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + question_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - answerRecord_ = s; - break; + source_ = s; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + answerRecord_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_FaqAnswer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_FaqAnswer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_FaqAnswer_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_FaqAnswer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.FaqAnswer.class, - com.google.cloud.dialogflow.v2.FaqAnswer.Builder.class); + com.google.cloud.dialogflow.v2.FaqAnswer.class, com.google.cloud.dialogflow.v2.FaqAnswer.Builder.class); } public static final int ANSWER_FIELD_NUMBER = 1; private volatile java.lang.Object answer_; /** - * - * *
    * The piece of text from the `source` knowledge base document.
    * 
* * string answer = 1; - * * @return The answer. */ @java.lang.Override @@ -186,29 +159,29 @@ public java.lang.String getAnswer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); answer_ = s; return s; } } /** - * - * *
    * The piece of text from the `source` knowledge base document.
    * 
* * string answer = 1; - * * @return The bytes for answer. */ @java.lang.Override - public com.google.protobuf.ByteString getAnswerBytes() { + public com.google.protobuf.ByteString + getAnswerBytes() { java.lang.Object ref = answer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); answer_ = b; return b; } else { @@ -219,8 +192,6 @@ public com.google.protobuf.ByteString getAnswerBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
    * The system's confidence score that this Knowledge answer is a good match
    * for this conversational query, range from 0.0 (completely uncertain)
@@ -228,7 +199,6 @@ public com.google.protobuf.ByteString getAnswerBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -239,14 +209,11 @@ public float getConfidence() { public static final int QUESTION_FIELD_NUMBER = 3; private volatile java.lang.Object question_; /** - * - * *
    * The corresponding FAQ question.
    * 
* * string question = 3; - * * @return The question. */ @java.lang.Override @@ -255,29 +222,29 @@ public java.lang.String getQuestion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); question_ = s; return s; } } /** - * - * *
    * The corresponding FAQ question.
    * 
* * string question = 3; - * * @return The bytes for question. */ @java.lang.Override - public com.google.protobuf.ByteString getQuestionBytes() { + public com.google.protobuf.ByteString + getQuestionBytes() { java.lang.Object ref = question_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); question_ = b; return b; } else { @@ -288,8 +255,6 @@ public com.google.protobuf.ByteString getQuestionBytes() { public static final int SOURCE_FIELD_NUMBER = 4; private volatile java.lang.Object source_; /** - * - * *
    * Indicates which Knowledge Document this answer was extracted
    * from.
@@ -298,7 +263,6 @@ public com.google.protobuf.ByteString getQuestionBytes() {
    * 
* * string source = 4; - * * @return The source. */ @java.lang.Override @@ -307,15 +271,14 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** - * - * *
    * Indicates which Knowledge Document this answer was extracted
    * from.
@@ -324,15 +287,16 @@ public java.lang.String getSource() {
    * 
* * string source = 4; - * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -341,23 +305,24 @@ public com.google.protobuf.ByteString getSourceBytes() { } public static final int METADATA_FIELD_NUMBER = 5; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_FaqAnswer_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_FaqAnswer_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -366,8 +331,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -375,22 +338,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 5;
    */
+
   @java.lang.Override
-  public boolean containsMetadata(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsMetadata(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /** Use {@link #getMetadataMap()} instead. */
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -399,12 +362,11 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
+
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -413,17 +375,16 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
+
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -432,11 +393,12 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 5;
    */
   @java.lang.Override
-  public java.lang.String getMetadataOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetMetadata().getMap();
+
+  public java.lang.String getMetadataOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -446,8 +408,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
   public static final int ANSWER_RECORD_FIELD_NUMBER = 6;
   private volatile java.lang.Object answerRecord_;
   /**
-   *
-   *
    * 
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -455,7 +415,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
    * 
* * string answer_record = 6; - * * @return The answerRecord. */ @java.lang.Override @@ -464,15 +423,14 @@ public java.lang.String getAnswerRecord() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); answerRecord_ = s; return s; } } /** - * - * *
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -480,15 +438,16 @@ public java.lang.String getAnswerRecord() {
    * 
* * string answer_record = 6; - * * @return The bytes for answerRecord. */ @java.lang.Override - public com.google.protobuf.ByteString getAnswerRecordBytes() { + public com.google.protobuf.ByteString + getAnswerRecordBytes() { java.lang.Object ref = answerRecord_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); answerRecord_ = b; return b; } else { @@ -497,7 +456,6 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,7 +467,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getAnswerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, answer_); } @@ -522,8 +481,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getSourceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, source_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 5); if (!getAnswerRecordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, answerRecord_); } @@ -540,7 +503,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, answer_); } if (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, confidence_); } if (!getQuestionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, question_); @@ -548,15 +512,15 @@ public int getSerializedSize() { if (!getSourceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, source_); } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, metadata__); } if (!getAnswerRecordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, answerRecord_); @@ -569,20 +533,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.FaqAnswer)) { return super.equals(obj); } com.google.cloud.dialogflow.v2.FaqAnswer other = (com.google.cloud.dialogflow.v2.FaqAnswer) obj; - if (!getAnswer().equals(other.getAnswer())) return false; + if (!getAnswer() + .equals(other.getAnswer())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; - if (!getQuestion().equals(other.getQuestion())) return false; - if (!getSource().equals(other.getSource())) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (!getQuestion() + .equals(other.getQuestion())) return false; + if (!getSource() + .equals(other.getSource())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getAnswerRecord() + .equals(other.getAnswerRecord())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -597,7 +567,8 @@ public int hashCode() { hash = (37 * hash) + ANSWER_FIELD_NUMBER; hash = (53 * hash) + getAnswer().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + QUESTION_FIELD_NUMBER; hash = (53 * hash) + getQuestion().hashCode(); hash = (37 * hash) + SOURCE_FIELD_NUMBER; @@ -613,147 +584,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.FaqAnswer parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.FaqAnswer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.FaqAnswer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.FaqAnswer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents answer from "frequently asked questions".
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.FaqAnswer} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.FaqAnswer) com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_FaqAnswer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_FaqAnswer_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_FaqAnswer_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_FaqAnswer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.FaqAnswer.class, - com.google.cloud.dialogflow.v2.FaqAnswer.Builder.class); + com.google.cloud.dialogflow.v2.FaqAnswer.class, com.google.cloud.dialogflow.v2.FaqAnswer.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.FaqAnswer.newBuilder() @@ -761,15 +725,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -788,9 +753,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_FaqAnswer_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_FaqAnswer_descriptor; } @java.lang.Override @@ -809,8 +774,7 @@ public com.google.cloud.dialogflow.v2.FaqAnswer build() { @java.lang.Override public com.google.cloud.dialogflow.v2.FaqAnswer buildPartial() { - com.google.cloud.dialogflow.v2.FaqAnswer result = - new com.google.cloud.dialogflow.v2.FaqAnswer(this); + com.google.cloud.dialogflow.v2.FaqAnswer result = new com.google.cloud.dialogflow.v2.FaqAnswer(this); int from_bitField0_ = bitField0_; result.answer_ = answer_; result.confidence_ = confidence_; @@ -827,39 +791,38 @@ public com.google.cloud.dialogflow.v2.FaqAnswer buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.FaqAnswer) { - return mergeFrom((com.google.cloud.dialogflow.v2.FaqAnswer) other); + return mergeFrom((com.google.cloud.dialogflow.v2.FaqAnswer)other); } else { super.mergeFrom(other); return this; @@ -883,7 +846,8 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.FaqAnswer other) { source_ = other.source_; onChanged(); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); if (!other.getAnswerRecord().isEmpty()) { answerRecord_ = other.answerRecord_; onChanged(); @@ -916,25 +880,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object answer_ = ""; /** - * - * *
      * The piece of text from the `source` knowledge base document.
      * 
* * string answer = 1; - * * @return The answer. */ public java.lang.String getAnswer() { java.lang.Object ref = answer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); answer_ = s; return s; @@ -943,21 +904,20 @@ public java.lang.String getAnswer() { } } /** - * - * *
      * The piece of text from the `source` knowledge base document.
      * 
* * string answer = 1; - * * @return The bytes for answer. */ - public com.google.protobuf.ByteString getAnswerBytes() { + public com.google.protobuf.ByteString + getAnswerBytes() { java.lang.Object ref = answer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); answer_ = b; return b; } else { @@ -965,70 +925,61 @@ public com.google.protobuf.ByteString getAnswerBytes() { } } /** - * - * *
      * The piece of text from the `source` knowledge base document.
      * 
* * string answer = 1; - * * @param value The answer to set. * @return This builder for chaining. */ - public Builder setAnswer(java.lang.String value) { + public Builder setAnswer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + answer_ = value; onChanged(); return this; } /** - * - * *
      * The piece of text from the `source` knowledge base document.
      * 
* * string answer = 1; - * * @return This builder for chaining. */ public Builder clearAnswer() { - + answer_ = getDefaultInstance().getAnswer(); onChanged(); return this; } /** - * - * *
      * The piece of text from the `source` knowledge base document.
      * 
* * string answer = 1; - * * @param value The bytes for answer to set. * @return This builder for chaining. */ - public Builder setAnswerBytes(com.google.protobuf.ByteString value) { + public Builder setAnswerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answer_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The system's confidence score that this Knowledge answer is a good match
      * for this conversational query, range from 0.0 (completely uncertain)
@@ -1036,7 +987,6 @@ public Builder setAnswerBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -1044,8 +994,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The system's confidence score that this Knowledge answer is a good match
      * for this conversational query, range from 0.0 (completely uncertain)
@@ -1053,19 +1001,16 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The system's confidence score that this Knowledge answer is a good match
      * for this conversational query, range from 0.0 (completely uncertain)
@@ -1073,11 +1018,10 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; @@ -1085,20 +1029,18 @@ public Builder clearConfidence() { private java.lang.Object question_ = ""; /** - * - * *
      * The corresponding FAQ question.
      * 
* * string question = 3; - * * @return The question. */ public java.lang.String getQuestion() { java.lang.Object ref = question_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); question_ = s; return s; @@ -1107,21 +1049,20 @@ public java.lang.String getQuestion() { } } /** - * - * *
      * The corresponding FAQ question.
      * 
* * string question = 3; - * * @return The bytes for question. */ - public com.google.protobuf.ByteString getQuestionBytes() { + public com.google.protobuf.ByteString + getQuestionBytes() { java.lang.Object ref = question_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); question_ = b; return b; } else { @@ -1129,61 +1070,54 @@ public com.google.protobuf.ByteString getQuestionBytes() { } } /** - * - * *
      * The corresponding FAQ question.
      * 
* * string question = 3; - * * @param value The question to set. * @return This builder for chaining. */ - public Builder setQuestion(java.lang.String value) { + public Builder setQuestion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + question_ = value; onChanged(); return this; } /** - * - * *
      * The corresponding FAQ question.
      * 
* * string question = 3; - * * @return This builder for chaining. */ public Builder clearQuestion() { - + question_ = getDefaultInstance().getQuestion(); onChanged(); return this; } /** - * - * *
      * The corresponding FAQ question.
      * 
* * string question = 3; - * * @param value The bytes for question to set. * @return This builder for chaining. */ - public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + public Builder setQuestionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; onChanged(); return this; @@ -1191,8 +1125,6 @@ public Builder setQuestionBytes(com.google.protobuf.ByteString value) { private java.lang.Object source_ = ""; /** - * - * *
      * Indicates which Knowledge Document this answer was extracted
      * from.
@@ -1201,13 +1133,13 @@ public Builder setQuestionBytes(com.google.protobuf.ByteString value) {
      * 
* * string source = 4; - * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -1216,8 +1148,6 @@ public java.lang.String getSource() { } } /** - * - * *
      * Indicates which Knowledge Document this answer was extracted
      * from.
@@ -1226,14 +1156,15 @@ public java.lang.String getSource() {
      * 
* * string source = 4; - * * @return The bytes for source. */ - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -1241,8 +1172,6 @@ public com.google.protobuf.ByteString getSourceBytes() { } } /** - * - * *
      * Indicates which Knowledge Document this answer was extracted
      * from.
@@ -1251,22 +1180,20 @@ public com.google.protobuf.ByteString getSourceBytes() {
      * 
* * string source = 4; - * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource(java.lang.String value) { + public Builder setSource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** - * - * *
      * Indicates which Knowledge Document this answer was extracted
      * from.
@@ -1275,18 +1202,15 @@ public Builder setSource(java.lang.String value) {
      * 
* * string source = 4; - * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** - * - * *
      * Indicates which Knowledge Document this answer was extracted
      * from.
@@ -1295,37 +1219,37 @@ public Builder clearSource() {
      * 
* * string source = 4; - * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; } - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; + internalGetMutableMetadata() { + onChanged();; if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -1337,8 +1261,6 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1346,22 +1268,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 5;
      */
+
     @java.lang.Override
-    public boolean containsMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /** Use {@link #getMetadataMap()} instead. */
+    /**
+     * Use {@link #getMetadataMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1370,12 +1292,11 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
+
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1384,17 +1305,16 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
+
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1403,11 +1323,12 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 5;
      */
     @java.lang.Override
-    public java.lang.String getMetadataOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetMetadata().getMap();
+
+    public java.lang.String getMetadataOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1415,12 +1336,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap().clear();
+      internalGetMutableMetadata().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1428,21 +1348,23 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder removeMetadata(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().remove(key);
+
+    public Builder removeMetadata(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMetadata() {
+    public java.util.Map
+    getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1450,19 +1372,16 @@ public java.util.Map getMutableMetadata() {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder putMetadata(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableMetadata().getMutableMap().put(key, value);
+    public Builder putMetadata(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableMetadata().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * A map that contains metadata about the answer and the
      * document from which it originates.
@@ -1470,15 +1389,16 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> metadata = 5;
      */
-    public Builder putAllMetadata(java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap().putAll(values);
+
+    public Builder putAllMetadata(
+        java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object answerRecord_ = "";
     /**
-     *
-     *
      * 
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1486,13 +1406,13 @@ public Builder putAllMetadata(java.util.Map
      * 
* * string answer_record = 6; - * * @return The answerRecord. */ public java.lang.String getAnswerRecord() { java.lang.Object ref = answerRecord_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); answerRecord_ = s; return s; @@ -1501,8 +1421,6 @@ public java.lang.String getAnswerRecord() { } } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1510,14 +1428,15 @@ public java.lang.String getAnswerRecord() {
      * 
* * string answer_record = 6; - * * @return The bytes for answerRecord. */ - public com.google.protobuf.ByteString getAnswerRecordBytes() { + public com.google.protobuf.ByteString + getAnswerRecordBytes() { java.lang.Object ref = answerRecord_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); answerRecord_ = b; return b; } else { @@ -1525,8 +1444,6 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() { } } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1534,22 +1451,20 @@ public com.google.protobuf.ByteString getAnswerRecordBytes() {
      * 
* * string answer_record = 6; - * * @param value The answerRecord to set. * @return This builder for chaining. */ - public Builder setAnswerRecord(java.lang.String value) { + public Builder setAnswerRecord( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + answerRecord_ = value; onChanged(); return this; } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1557,18 +1472,15 @@ public Builder setAnswerRecord(java.lang.String value) {
      * 
* * string answer_record = 6; - * * @return This builder for chaining. */ public Builder clearAnswerRecord() { - + answerRecord_ = getDefaultInstance().getAnswerRecord(); onChanged(); return this; } /** - * - * *
      * The name of answer record, in the format of
      * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -1576,23 +1488,23 @@ public Builder clearAnswerRecord() {
      * 
* * string answer_record = 6; - * * @param value The bytes for answerRecord to set. * @return This builder for chaining. */ - public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + public Builder setAnswerRecordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1602,12 +1514,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.FaqAnswer) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.FaqAnswer) private static final com.google.cloud.dialogflow.v2.FaqAnswer DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.FaqAnswer(); } @@ -1616,16 +1528,16 @@ public static com.google.cloud.dialogflow.v2.FaqAnswer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaqAnswer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FaqAnswer(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaqAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FaqAnswer(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1640,4 +1552,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.FaqAnswer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswerOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswerOrBuilder.java similarity index 71% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswerOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswerOrBuilder.java index f64df048b..584ee5710 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswerOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FaqAnswerOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; -public interface FaqAnswerOrBuilder - extends +public interface FaqAnswerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.FaqAnswer) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The piece of text from the `source` knowledge base document.
    * 
* * string answer = 1; - * * @return The answer. */ java.lang.String getAnswer(); /** - * - * *
    * The piece of text from the `source` knowledge base document.
    * 
* * string answer = 1; - * * @return The bytes for answer. */ - com.google.protobuf.ByteString getAnswerBytes(); + com.google.protobuf.ByteString + getAnswerBytes(); /** - * - * *
    * The system's confidence score that this Knowledge answer is a good match
    * for this conversational query, range from 0.0 (completely uncertain)
@@ -58,39 +35,31 @@ public interface FaqAnswerOrBuilder
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * The corresponding FAQ question.
    * 
* * string question = 3; - * * @return The question. */ java.lang.String getQuestion(); /** - * - * *
    * The corresponding FAQ question.
    * 
* * string question = 3; - * * @return The bytes for question. */ - com.google.protobuf.ByteString getQuestionBytes(); + com.google.protobuf.ByteString + getQuestionBytes(); /** - * - * *
    * Indicates which Knowledge Document this answer was extracted
    * from.
@@ -99,13 +68,10 @@ public interface FaqAnswerOrBuilder
    * 
* * string source = 4; - * * @return The source. */ java.lang.String getSource(); /** - * - * *
    * Indicates which Knowledge Document this answer was extracted
    * from.
@@ -114,14 +80,12 @@ public interface FaqAnswerOrBuilder
    * 
* * string source = 4; - * * @return The bytes for source. */ - com.google.protobuf.ByteString getSourceBytes(); + com.google.protobuf.ByteString + getSourceBytes(); /** - * - * *
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -131,8 +95,6 @@ public interface FaqAnswerOrBuilder
    */
   int getMetadataCount();
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -140,13 +102,15 @@ public interface FaqAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  boolean containsMetadata(java.lang.String key);
-  /** Use {@link #getMetadataMap()} instead. */
+  boolean containsMetadata(
+      java.lang.String key);
+  /**
+   * Use {@link #getMetadataMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMetadata();
+  java.util.Map
+  getMetadata();
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -154,10 +118,9 @@ public interface FaqAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.util.Map getMetadataMap();
+  java.util.Map
+  getMetadataMap();
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -165,10 +128,11 @@ public interface FaqAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getMetadataOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * A map that contains metadata about the answer and the
    * document from which it originates.
@@ -176,11 +140,11 @@ public interface FaqAnswerOrBuilder
    *
    * map<string, string> metadata = 5;
    */
-  java.lang.String getMetadataOrThrow(java.lang.String key);
+
+  java.lang.String getMetadataOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -188,13 +152,10 @@ public interface FaqAnswerOrBuilder
    * 
* * string answer_record = 6; - * * @return The answerRecord. */ java.lang.String getAnswerRecord(); /** - * - * *
    * The name of answer record, in the format of
    * "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
@@ -202,8 +163,8 @@ public interface FaqAnswerOrBuilder
    * 
* * string answer_record = 6; - * * @return The bytes for answerRecord. */ - com.google.protobuf.ByteString getAnswerRecordBytes(); + com.google.protobuf.ByteString + getAnswerRecordBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Fulfillment.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Fulfillment.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Fulfillment.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Fulfillment.java index 1acb3c2a2..097379e97 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Fulfillment.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Fulfillment.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/fulfillment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * By default, your agent responds to a matched intent with a static response.
  * As an alternative, you can provide a more dynamic response by using
@@ -35,16 +18,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.Fulfillment}
  */
-public final class Fulfillment extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Fulfillment extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Fulfillment)
     FulfillmentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Fulfillment.newBuilder() to construct.
   private Fulfillment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Fulfillment() {
     name_ = "";
     displayName_ = "";
@@ -53,15 +35,16 @@ private Fulfillment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Fulfillment();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Fulfillment(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -81,72 +64,60 @@ private Fulfillment(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder subBuilder =
-                  null;
-              if (fulfillmentCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_)
-                        .toBuilder();
-              }
-              fulfillment_ =
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_);
-                fulfillment_ = subBuilder.buildPartial();
-              }
-              fulfillmentCase_ = 3;
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder subBuilder = null;
+            if (fulfillmentCase_ == 3) {
+              subBuilder = ((com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_).toBuilder();
             }
-          case 32:
-            {
-              enabled_ = input.readBool();
-              break;
+            fulfillment_ =
+                input.readMessage(com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_);
+              fulfillment_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                features_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              features_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Fulfillment.Feature.parser(),
-                      extensionRegistry));
-              break;
+            fulfillmentCase_ = 3;
+            break;
+          }
+          case 32: {
+
+            enabled_ = input.readBool();
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              features_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            features_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.Fulfillment.Feature.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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         features_ = java.util.Collections.unmodifiableList(features_);
@@ -155,172 +126,140 @@ private Fulfillment(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.FulfillmentProto
-        .internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.FulfillmentProto
-        .internal_static_google_cloud_dialogflow_v2_Fulfillment_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.Fulfillment.class,
-            com.google.cloud.dialogflow.v2.Fulfillment.Builder.class);
+            com.google.cloud.dialogflow.v2.Fulfillment.class, com.google.cloud.dialogflow.v2.Fulfillment.Builder.class);
   }
 
-  public interface GenericWebServiceOrBuilder
-      extends
+  public interface GenericWebServiceOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Fulfillment.GenericWebService)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. The fulfillment URI for receiving POST requests.
      * It must use https protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
      * Required. The fulfillment URI for receiving POST requests.
      * It must use https protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
      * Optional. The user name for HTTP Basic authentication.
      * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
      * Optional. The user name for HTTP Basic authentication.
      * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
      * Optional. The password for HTTP Basic authentication.
      * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
      * Optional. The password for HTTP Basic authentication.
      * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getRequestHeadersCount(); /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsRequestHeaders( + java.lang.String key); + /** + * Use {@link #getRequestHeadersMap()} instead. */ - boolean containsRequestHeaders(java.lang.String key); - /** Use {@link #getRequestHeadersMap()} instead. */ @java.lang.Deprecated - java.util.Map getRequestHeaders(); + java.util.Map + getRequestHeaders(); /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getRequestHeadersMap(); + java.util.Map + getRequestHeadersMap(); /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + java.lang.String getRequestHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue); + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getRequestHeadersOrThrow(java.lang.String key); + + java.lang.String getRequestHeadersOrThrow( + java.lang.String key); /** - * - * *
      * Optional. Indicates if generic web service is created through Cloud Functions
      * integration. Defaults to false.
@@ -328,18 +267,12 @@ java.lang.String getRequestHeadersOrDefault(
      * its uri as a regular web service now.
      * 
* - * - * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The isCloudFunction. */ - @java.lang.Deprecated - boolean getIsCloudFunction(); + @java.lang.Deprecated boolean getIsCloudFunction(); } /** - * - * *
    * Represents configuration for a generic web service.
    * Dialogflow supports two mechanisms for authentications:
@@ -351,16 +284,15 @@ java.lang.String getRequestHeadersOrDefault(
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Fulfillment.GenericWebService}
    */
-  public static final class GenericWebService extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class GenericWebService extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Fulfillment.GenericWebService)
       GenericWebServiceOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use GenericWebService.newBuilder() to construct.
     private GenericWebService(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private GenericWebService() {
       uri_ = "";
       username_ = "";
@@ -369,15 +301,16 @@ private GenericWebService() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new GenericWebService();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private GenericWebService(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -397,106 +330,95 @@ private GenericWebService(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                uri_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              uri_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                username_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              username_ = s;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                password_ = s;
-                break;
-              }
-            case 34:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  requestHeaders_ =
-                      com.google.protobuf.MapField.newMapField(
-                          RequestHeadersDefaultEntryHolder.defaultEntry);
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                com.google.protobuf.MapEntry requestHeaders__ =
-                    input.readMessage(
-                        RequestHeadersDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                requestHeaders_
-                    .getMutableMap()
-                    .put(requestHeaders__.getKey(), requestHeaders__.getValue());
-                break;
-              }
-            case 40:
-              {
-                isCloudFunction_ = input.readBool();
-                break;
+              password_ = s;
+              break;
+            }
+            case 34: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requestHeaders_ = com.google.protobuf.MapField.newMapField(
+                    RequestHeadersDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              com.google.protobuf.MapEntry
+              requestHeaders__ = input.readMessage(
+                  RequestHeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              requestHeaders_.getMutableMap().put(
+                  requestHeaders__.getKey(), requestHeaders__.getValue());
+              break;
+            }
+            case 40: {
+
+              isCloudFunction_ = 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.FulfillmentProto
-          .internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
     @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetRequestHeaders();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.FulfillmentProto
-          .internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.class,
-              com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder.class);
+              com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.class, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder.class);
     }
 
     public static final int URI_FIELD_NUMBER = 1;
     private volatile java.lang.Object uri_;
     /**
-     *
-     *
      * 
      * Required. The fulfillment URI for receiving POST requests.
      * It must use https protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -505,30 +427,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
      * Required. The fulfillment URI for receiving POST requests.
      * It must use https protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -539,14 +461,11 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int USERNAME_FIELD_NUMBER = 2; private volatile java.lang.Object username_; /** - * - * *
      * Optional. The user name for HTTP Basic authentication.
      * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The username. */ @java.lang.Override @@ -555,29 +474,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
      * Optional. The user name for HTTP Basic authentication.
      * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -588,14 +507,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 3; private volatile java.lang.Object password_; /** - * - * *
      * Optional. The password for HTTP Basic authentication.
      * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The password. */ @java.lang.Override @@ -604,29 +520,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
      * Optional. The password for HTTP Basic authentication.
      * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -635,22 +551,21 @@ public com.google.protobuf.ByteString getPasswordBytes() { } public static final int REQUEST_HEADERS_FIELD_NUMBER = 4; - private static final class RequestHeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_RequestHeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField requestHeaders_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_RequestHeadersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> requestHeaders_; private com.google.protobuf.MapField - internalGetRequestHeaders() { + internalGetRequestHeaders() { if (requestHeaders_ == null) { return com.google.protobuf.MapField.emptyMapField( RequestHeadersDefaultEntryHolder.defaultEntry); @@ -662,81 +577,70 @@ public int getRequestHeadersCount() { return internalGetRequestHeaders().getMap().size(); } /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsRequestHeaders(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsRequestHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetRequestHeaders().getMap().containsKey(key); } - /** Use {@link #getRequestHeadersMap()} instead. */ + /** + * Use {@link #getRequestHeadersMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRequestHeaders() { return getRequestHeadersMap(); } /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getRequestHeadersMap() { return internalGetRequestHeaders().getMap(); } /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getRequestHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetRequestHeaders().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRequestHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. The HTTP request headers to send together with fulfillment requests.
      * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetRequestHeaders().getMap(); + + public java.lang.String getRequestHeadersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRequestHeaders().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -746,8 +650,6 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { public static final int IS_CLOUD_FUNCTION_FIELD_NUMBER = 5; private boolean isCloudFunction_; /** - * - * *
      * Optional. Indicates if generic web service is created through Cloud Functions
      * integration. Defaults to false.
@@ -755,20 +657,15 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) {
      * its uri as a regular web service now.
      * 
* - * - * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The isCloudFunction. */ @java.lang.Override - @java.lang.Deprecated - public boolean getIsCloudFunction() { + @java.lang.Deprecated public boolean getIsCloudFunction() { return isCloudFunction_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -780,7 +677,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -790,8 +688,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, password_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetRequestHeaders(), RequestHeadersDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRequestHeaders(), + RequestHeadersDefaultEntryHolder.defaultEntry, + 4); if (isCloudFunction_ != false) { output.writeBool(5, isCloudFunction_); } @@ -813,18 +715,19 @@ public int getSerializedSize() { if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, password_); } - for (java.util.Map.Entry entry : - internalGetRequestHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry requestHeaders__ = - RequestHeadersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, requestHeaders__); + for (java.util.Map.Entry entry + : internalGetRequestHeaders().getMap().entrySet()) { + com.google.protobuf.MapEntry + requestHeaders__ = RequestHeadersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, requestHeaders__); } if (isCloudFunction_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isCloudFunction_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isCloudFunction_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -834,19 +737,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService other = - (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) obj; - - if (!getUri().equals(other.getUri())) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!internalGetRequestHeaders().equals(other.internalGetRequestHeaders())) return false; - if (getIsCloudFunction() != other.getIsCloudFunction()) return false; + com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService other = (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!internalGetRequestHeaders().equals( + other.internalGetRequestHeaders())) return false; + if (getIsCloudFunction() + != other.getIsCloudFunction()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -869,101 +776,95 @@ public int hashCode() { hash = (53 * hash) + internalGetRequestHeaders().hashCode(); } hash = (37 * hash) + IS_CLOUD_FUNCTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsCloudFunction()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCloudFunction()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -973,8 +874,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents configuration for a generic web service.
      * Dialogflow supports two mechanisms for authentications:
@@ -986,44 +885,43 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.dialogflow.v2.Fulfillment.GenericWebService}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Fulfillment.GenericWebService)
         com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.dialogflow.v2.FulfillmentProto
-            .internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor;
       }
 
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMapField(
+          int number) {
         switch (number) {
           case 4:
             return internalGetRequestHeaders();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+      protected com.google.protobuf.MapField internalGetMutableMapField(
+          int number) {
         switch (number) {
           case 4:
             return internalGetMutableRequestHeaders();
           default:
-            throw new RuntimeException("Invalid map field number: " + number);
+            throw new RuntimeException(
+                "Invalid map field number: " + number);
         }
       }
-
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.dialogflow.v2.FulfillmentProto
-            .internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_fieldAccessorTable
+        return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.class,
-                com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder.class);
+                com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.class, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder.class);
       }
 
       // Construct using com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.newBuilder()
@@ -1031,15 +929,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1056,14 +955,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.dialogflow.v2.FulfillmentProto
-            .internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService
-          getDefaultInstanceForType() {
+      public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getDefaultInstanceForType() {
         return com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance();
       }
 
@@ -1078,8 +976,7 @@ public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService build() {
 
       @java.lang.Override
       public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService buildPartial() {
-        com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService result =
-            new com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService(this);
+        com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService result = new com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService(this);
         int from_bitField0_ = bitField0_;
         result.uri_ = uri_;
         result.username_ = username_;
@@ -1095,41 +992,38 @@ public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService buildPartial
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) {
-          return mergeFrom((com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) other);
+          return mergeFrom((com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1137,9 +1031,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService other) {
-        if (other
-            == com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance()) return this;
         if (!other.getUri().isEmpty()) {
           uri_ = other.uri_;
           onChanged();
@@ -1152,7 +1044,8 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Fulfillment.GenericWebSe
           password_ = other.password_;
           onChanged();
         }
-        internalGetMutableRequestHeaders().mergeFrom(other.internalGetRequestHeaders());
+        internalGetMutableRequestHeaders().mergeFrom(
+            other.internalGetRequestHeaders());
         if (other.getIsCloudFunction() != false) {
           setIsCloudFunction(other.getIsCloudFunction());
         }
@@ -1175,9 +1068,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1186,26 +1077,23 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object uri_ = "";
       /**
-       *
-       *
        * 
        * Required. The fulfillment URI for receiving POST requests.
        * It must use https protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -1214,22 +1102,21 @@ public java.lang.String getUri() { } } /** - * - * *
        * Required. The fulfillment URI for receiving POST requests.
        * It must use https protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -1237,64 +1124,57 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
        * Required. The fulfillment URI for receiving POST requests.
        * It must use https protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
        * Required. The fulfillment URI for receiving POST requests.
        * It must use https protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
        * Required. The fulfillment URI for receiving POST requests.
        * It must use https protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1302,20 +1182,18 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object username_ = ""; /** - * - * *
        * Optional. The user name for HTTP Basic authentication.
        * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1324,21 +1202,20 @@ public java.lang.String getUsername() { } } /** - * - * *
        * Optional. The user name for HTTP Basic authentication.
        * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1346,61 +1223,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
        * Optional. The user name for HTTP Basic authentication.
        * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The user name for HTTP Basic authentication.
        * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
        * Optional. The user name for HTTP Basic authentication.
        * 
* * string username = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1408,20 +1278,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
        * Optional. The password for HTTP Basic authentication.
        * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1430,21 +1298,20 @@ public java.lang.String getPassword() { } } /** - * - * *
        * Optional. The password for HTTP Basic authentication.
        * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1452,85 +1319,75 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
        * Optional. The password for HTTP Basic authentication.
        * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The password for HTTP Basic authentication.
        * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
        * Optional. The password for HTTP Basic authentication.
        * 
* * string password = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - private com.google.protobuf.MapField requestHeaders_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> requestHeaders_; private com.google.protobuf.MapField - internalGetRequestHeaders() { + internalGetRequestHeaders() { if (requestHeaders_ == null) { return com.google.protobuf.MapField.emptyMapField( RequestHeadersDefaultEntryHolder.defaultEntry); } return requestHeaders_; } - private com.google.protobuf.MapField - internalGetMutableRequestHeaders() { - onChanged(); - ; + internalGetMutableRequestHeaders() { + onChanged();; if (requestHeaders_ == null) { - requestHeaders_ = - com.google.protobuf.MapField.newMapField( - RequestHeadersDefaultEntryHolder.defaultEntry); + requestHeaders_ = com.google.protobuf.MapField.newMapField( + RequestHeadersDefaultEntryHolder.defaultEntry); } if (!requestHeaders_.isMutable()) { requestHeaders_ = requestHeaders_.copy(); @@ -1542,81 +1399,68 @@ public int getRequestHeadersCount() { return internalGetRequestHeaders().getMap().size(); } /** - * - * *
        * Optional. The HTTP request headers to send together with fulfillment requests.
        * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsRequestHeaders(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsRequestHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetRequestHeaders().getMap().containsKey(key); } - /** Use {@link #getRequestHeadersMap()} instead. */ + /** + * Use {@link #getRequestHeadersMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRequestHeaders() { return getRequestHeadersMap(); } /** - * - * *
        * Optional. The HTTP request headers to send together with fulfillment requests.
        * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getRequestHeadersMap() { return internalGetRequestHeaders().getMap(); } /** - * - * *
        * Optional. The HTTP request headers to send together with fulfillment requests.
        * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getRequestHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetRequestHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Optional. The HTTP request headers to send together with fulfillment requests.
        * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + + public java.lang.String getRequestHeadersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetRequestHeaders().getMap(); if (!map.containsKey(key)) { @@ -1626,74 +1470,66 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { } public Builder clearRequestHeaders() { - internalGetMutableRequestHeaders().getMutableMap().clear(); + internalGetMutableRequestHeaders().getMutableMap() + .clear(); return this; } /** - * - * *
        * Optional. The HTTP request headers to send together with fulfillment requests.
        * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeRequestHeaders(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableRequestHeaders().getMutableMap().remove(key); + + public Builder removeRequestHeaders( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRequestHeaders().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableRequestHeaders() { + public java.util.Map + getMutableRequestHeaders() { return internalGetMutableRequestHeaders().getMutableMap(); } /** - * - * *
        * Optional. The HTTP request headers to send together with fulfillment requests.
        * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putRequestHeaders(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableRequestHeaders().getMutableMap().put(key, value); + public Builder putRequestHeaders( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRequestHeaders().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * Optional. The HTTP request headers to send together with fulfillment requests.
        * 
* - * - * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> request_headers = 4 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllRequestHeaders( java.util.Map values) { - internalGetMutableRequestHeaders().getMutableMap().putAll(values); + internalGetMutableRequestHeaders().getMutableMap() + .putAll(values); return this; } - private boolean isCloudFunction_; + private boolean isCloudFunction_ ; /** - * - * *
        * Optional. Indicates if generic web service is created through Cloud Functions
        * integration. Defaults to false.
@@ -1701,20 +1537,14 @@ public Builder putAllRequestHeaders(
        * its uri as a regular web service now.
        * 
* - * - * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The isCloudFunction. */ @java.lang.Override - @java.lang.Deprecated - public boolean getIsCloudFunction() { + @java.lang.Deprecated public boolean getIsCloudFunction() { return isCloudFunction_; } /** - * - * *
        * Optional. Indicates if generic web service is created through Cloud Functions
        * integration. Defaults to false.
@@ -1722,23 +1552,17 @@ public boolean getIsCloudFunction() {
        * its uri as a regular web service now.
        * 
* - * - * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param value The isCloudFunction to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setIsCloudFunction(boolean value) { - + @java.lang.Deprecated public Builder setIsCloudFunction(boolean value) { + isCloudFunction_ = value; onChanged(); return this; } /** - * - * *
        * Optional. Indicates if generic web service is created through Cloud Functions
        * integration. Defaults to false.
@@ -1746,20 +1570,15 @@ public Builder setIsCloudFunction(boolean value) {
        * its uri as a regular web service now.
        * 
* - * - * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool is_cloud_function = 5 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearIsCloudFunction() { - + @java.lang.Deprecated public Builder clearIsCloudFunction() { + isCloudFunction_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1772,32 +1591,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Fulfillment.GenericWebService) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Fulfillment.GenericWebService) - private static final com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService(); } - public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenericWebService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenericWebService(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenericWebService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenericWebService(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1809,76 +1626,67 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FeatureOrBuilder - extends + public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Fulfillment.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The type of the feature that enabled for fulfillment.
      * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * The type of the feature that enabled for fulfillment.
      * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @return The type. */ com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type getType(); } /** - * - * *
    * Whether fulfillment is enabled for the specific feature.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Fulfillment.Feature} */ - public static final class Feature extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Feature extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Fulfillment.Feature) FeatureOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Feature.newBuilder() to construct. private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Feature() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Feature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Feature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1897,60 +1705,54 @@ private Feature( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + type_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_fieldAccessorTable + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Fulfillment.Feature.class, - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder.class); + com.google.cloud.dialogflow.v2.Fulfillment.Feature.class, com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder.class); } /** - * - * *
      * The type of the feature.
      * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Fulfillment.Feature.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Feature type not specified.
        * 
@@ -1959,8 +1761,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
        * Fulfillment is enabled for SmallTalk.
        * 
@@ -1972,8 +1772,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Feature type not specified.
        * 
@@ -1982,8 +1780,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Fulfillment is enabled for SmallTalk.
        * 
@@ -1992,6 +1788,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SMALLTALK_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2016,49 +1813,48 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return SMALLTALK; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return SMALLTALK; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -2078,43 +1874,31 @@ private Type(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** - * - * *
      * The type of the feature that enabled for fulfillment.
      * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of the feature that enabled for fulfillment.
      * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type getType() { + @java.lang.Override public com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type result = - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.valueOf(type_); - return result == null - ? com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type result = com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.valueOf(type_); + return result == null ? com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2126,9 +1910,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } unknownFields.writeTo(output); @@ -2140,9 +1924,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ - != com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + if (type_ != com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2152,13 +1936,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Fulfillment.Feature)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Fulfillment.Feature other = - (com.google.cloud.dialogflow.v2.Fulfillment.Feature) obj; + com.google.cloud.dialogflow.v2.Fulfillment.Feature other = (com.google.cloud.dialogflow.v2.Fulfillment.Feature) obj; if (type_ != other.type_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -2180,93 +1963,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.Fulfillment.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2276,32 +2053,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Whether fulfillment is enabled for the specific feature.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Fulfillment.Feature} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Fulfillment.Feature) com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_fieldAccessorTable + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Fulfillment.Feature.class, - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder.class); + com.google.cloud.dialogflow.v2.Fulfillment.Feature.class, com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Fulfillment.Feature.newBuilder() @@ -2309,15 +2081,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2327,9 +2100,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor; } @java.lang.Override @@ -2348,8 +2121,7 @@ public com.google.cloud.dialogflow.v2.Fulfillment.Feature build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Fulfillment.Feature buildPartial() { - com.google.cloud.dialogflow.v2.Fulfillment.Feature result = - new com.google.cloud.dialogflow.v2.Fulfillment.Feature(this); + com.google.cloud.dialogflow.v2.Fulfillment.Feature result = new com.google.cloud.dialogflow.v2.Fulfillment.Feature(this); result.type_ = type_; onBuilt(); return result; @@ -2359,41 +2131,38 @@ public com.google.cloud.dialogflow.v2.Fulfillment.Feature buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Fulfillment.Feature) { - return mergeFrom((com.google.cloud.dialogflow.v2.Fulfillment.Feature) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Fulfillment.Feature)other); } else { super.mergeFrom(other); return this; @@ -2401,8 +2170,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Fulfillment.Feature other) { - if (other == com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } @@ -2425,8 +2193,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Fulfillment.Feature) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Fulfillment.Feature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2438,67 +2205,51 @@ public Builder mergeFrom( private int type_ = 0; /** - * - * *
        * The type of the feature that enabled for fulfillment.
        * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * The type of the feature that enabled for fulfillment.
        * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * The type of the feature that enabled for fulfillment.
        * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type result = - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.valueOf(type_); - return result == null - ? com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type result = com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.valueOf(type_); + return result == null ? com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type.UNRECOGNIZED : result; } /** - * - * *
        * The type of the feature that enabled for fulfillment.
        * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -2506,29 +2257,25 @@ public Builder setType(com.google.cloud.dialogflow.v2.Fulfillment.Feature.Type v if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The type of the feature that enabled for fulfillment.
        * 
* * .google.cloud.dialogflow.v2.Fulfillment.Feature.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2541,12 +2288,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Fulfillment.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Fulfillment.Feature) private static final com.google.cloud.dialogflow.v2.Fulfillment.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Fulfillment.Feature(); } @@ -2555,16 +2302,16 @@ public static com.google.cloud.dialogflow.v2.Fulfillment.Feature getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2579,19 +2326,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Fulfillment.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int fulfillmentCase_ = 0; private java.lang.Object fulfillment_; - public enum FulfillmentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GENERIC_WEB_SERVICE(3), FULFILLMENT_NOT_SET(0); private final int value; - private FulfillmentCase(int value) { this.value = value; } @@ -2607,29 +2352,25 @@ public static FulfillmentCase valueOf(int value) { public static FulfillmentCase forNumber(int value) { switch (value) { - case 3: - return GENERIC_WEB_SERVICE; - case 0: - return FULFILLMENT_NOT_SET; - default: - return null; + case 3: return GENERIC_WEB_SERVICE; + case 0: return FULFILLMENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FulfillmentCase getFulfillmentCase() { - return FulfillmentCase.forNumber(fulfillmentCase_); + public FulfillmentCase + getFulfillmentCase() { + return FulfillmentCase.forNumber( + fulfillmentCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The unique identifier of the fulfillment.
    * Supported formats:
@@ -2639,7 +2380,6 @@ public FulfillmentCase getFulfillmentCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -2648,15 +2388,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The unique identifier of the fulfillment.
    * Supported formats:
@@ -2666,15 +2405,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2685,15 +2425,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Optional. The human-readable name of the fulfillment, unique within the agent.
    * This field is not used for Fulfillment in an Environment.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -2702,30 +2439,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Optional. The human-readable name of the fulfillment, unique within the agent.
    * This field is not used for Fulfillment in an Environment.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2735,14 +2472,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int GENERIC_WEB_SERVICE_FIELD_NUMBER = 3; /** - * - * *
    * Configuration for a generic web service.
    * 
* * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * * @return Whether the genericWebService field is set. */ @java.lang.Override @@ -2750,26 +2484,21 @@ public boolean hasGenericWebService() { return fulfillmentCase_ == 3; } /** - * - * *
    * Configuration for a generic web service.
    * 
* * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * * @return The genericWebService. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getGenericWebService() { if (fulfillmentCase_ == 3) { - return (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_; + return (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_; } return com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance(); } /** - * - * *
    * Configuration for a generic web service.
    * 
@@ -2777,10 +2506,9 @@ public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getGenericWe * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder - getGenericWebServiceOrBuilder() { + public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder() { if (fulfillmentCase_ == 3) { - return (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_; + return (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_; } return com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance(); } @@ -2788,14 +2516,11 @@ public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getGenericWe public static final int ENABLED_FIELD_NUMBER = 4; private boolean enabled_; /** - * - * *
    * Optional. Whether fulfillment is enabled.
    * 
* * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enabled. */ @java.lang.Override @@ -2806,76 +2531,56 @@ public boolean getEnabled() { public static final int FEATURES_FIELD_NUMBER = 5; private java.util.List features_; /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getFeaturesList() { return features_; } /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getFeaturesOrBuilderList() { return features_; } /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getFeaturesCount() { return features_.size(); } /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.Fulfillment.Feature getFeatures(int index) { return features_.get(index); } /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder getFeaturesOrBuilder( @@ -2884,7 +2589,6 @@ public com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder getFeaturesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2896,7 +2600,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2904,8 +2609,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (fulfillmentCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_); + output.writeMessage(3, (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_); } if (enabled_ != false) { output.writeBool(4, enabled_); @@ -2929,15 +2633,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (fulfillmentCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_); } if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enabled_); } for (int i = 0; i < features_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, features_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, features_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2947,22 +2652,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Fulfillment)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Fulfillment other = - (com.google.cloud.dialogflow.v2.Fulfillment) obj; + com.google.cloud.dialogflow.v2.Fulfillment other = (com.google.cloud.dialogflow.v2.Fulfillment) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getEnabled() != other.getEnabled()) return false; - if (!getFeaturesList().equals(other.getFeaturesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getEnabled() + != other.getEnabled()) return false; + if (!getFeaturesList() + .equals(other.getFeaturesList())) return false; if (!getFulfillmentCase().equals(other.getFulfillmentCase())) return false; switch (fulfillmentCase_) { case 3: - if (!getGenericWebService().equals(other.getGenericWebService())) return false; + if (!getGenericWebService() + .equals(other.getGenericWebService())) return false; break; case 0: default: @@ -2983,7 +2692,8 @@ public int hashCode() { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); if (getFeaturesCount() > 0) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + getFeaturesList().hashCode(); @@ -3001,104 +2711,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Fulfillment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Fulfillment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Fulfillment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.Fulfillment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * By default, your agent responds to a matched intent with a static response.
    * As an alternative, you can provide a more dynamic response by using
@@ -3113,23 +2816,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Fulfillment}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Fulfillment)
       com.google.cloud.dialogflow.v2.FulfillmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.FulfillmentProto
-          .internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.FulfillmentProto
-          .internal_static_google_cloud_dialogflow_v2_Fulfillment_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Fulfillment.class,
-              com.google.cloud.dialogflow.v2.Fulfillment.Builder.class);
+              com.google.cloud.dialogflow.v2.Fulfillment.class, com.google.cloud.dialogflow.v2.Fulfillment.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.Fulfillment.newBuilder()
@@ -3137,17 +2838,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getFeaturesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3169,9 +2870,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.FulfillmentProto
-          .internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor;
     }
 
     @java.lang.Override
@@ -3190,8 +2891,7 @@ public com.google.cloud.dialogflow.v2.Fulfillment build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.Fulfillment buildPartial() {
-      com.google.cloud.dialogflow.v2.Fulfillment result =
-          new com.google.cloud.dialogflow.v2.Fulfillment(this);
+      com.google.cloud.dialogflow.v2.Fulfillment result = new com.google.cloud.dialogflow.v2.Fulfillment(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -3221,39 +2921,38 @@ public com.google.cloud.dialogflow.v2.Fulfillment buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.Fulfillment) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.Fulfillment) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.Fulfillment)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3291,25 +2990,22 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Fulfillment other) {
             featuresBuilder_ = null;
             features_ = other.features_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            featuresBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFeaturesFieldBuilder()
-                    : null;
+            featuresBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFeaturesFieldBuilder() : null;
           } else {
             featuresBuilder_.addAllMessages(other.features_);
           }
         }
       }
       switch (other.getFulfillmentCase()) {
-        case GENERIC_WEB_SERVICE:
-          {
-            mergeGenericWebService(other.getGenericWebService());
-            break;
-          }
-        case FULFILLMENT_NOT_SET:
-          {
-            break;
-          }
+        case GENERIC_WEB_SERVICE: {
+          mergeGenericWebService(other.getGenericWebService());
+          break;
+        }
+        case FULFILLMENT_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -3339,12 +3035,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int fulfillmentCase_ = 0;
     private java.lang.Object fulfillment_;
-
-    public FulfillmentCase getFulfillmentCase() {
-      return FulfillmentCase.forNumber(fulfillmentCase_);
+    public FulfillmentCase
+        getFulfillmentCase() {
+      return FulfillmentCase.forNumber(
+          fulfillmentCase_);
     }
 
     public Builder clearFulfillment() {
@@ -3358,8 +3054,6 @@ public Builder clearFulfillment() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The unique identifier of the fulfillment.
      * Supported formats:
@@ -3369,13 +3063,13 @@ public Builder clearFulfillment() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3384,8 +3078,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The unique identifier of the fulfillment.
      * Supported formats:
@@ -3395,14 +3087,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3410,8 +3103,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The unique identifier of the fulfillment.
      * Supported formats:
@@ -3421,22 +3112,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The unique identifier of the fulfillment.
      * Supported formats:
@@ -3446,18 +3135,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The unique identifier of the fulfillment.
      * Supported formats:
@@ -3467,16 +3153,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3484,21 +3170,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. The human-readable name of the fulfillment, unique within the agent.
      * This field is not used for Fulfillment in an Environment.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3507,22 +3191,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. The human-readable name of the fulfillment, unique within the agent.
      * This field is not used for Fulfillment in an Environment.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3530,84 +3213,70 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. The human-readable name of the fulfillment, unique within the agent.
      * This field is not used for Fulfillment in an Environment.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The human-readable name of the fulfillment, unique within the agent.
      * This field is not used for Fulfillment in an Environment.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Optional. The human-readable name of the fulfillment, unique within the agent.
      * This field is not used for Fulfillment in an Environment.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService, - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder, - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder> - genericWebServiceBuilder_; + com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder> genericWebServiceBuilder_; /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; * @return Whether the genericWebService field is set. */ @java.lang.Override @@ -3615,15 +3284,11 @@ public boolean hasGenericWebService() { return fulfillmentCase_ == 3; } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; * @return The genericWebService. */ @java.lang.Override @@ -3641,17 +3306,13 @@ public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getGenericWe } } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ - public Builder setGenericWebService( - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService value) { + public Builder setGenericWebService(com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService value) { if (genericWebServiceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3665,14 +3326,11 @@ public Builder setGenericWebService( return this; } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ public Builder setGenericWebService( com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder builderForValue) { @@ -3686,27 +3344,18 @@ public Builder setGenericWebService( return this; } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ - public Builder mergeGenericWebService( - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService value) { + public Builder mergeGenericWebService(com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService value) { if (genericWebServiceBuilder_ == null) { - if (fulfillmentCase_ == 3 - && fulfillment_ - != com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService - .getDefaultInstance()) { - fulfillment_ = - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.newBuilder( - (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_) - .mergeFrom(value) - .buildPartial(); + if (fulfillmentCase_ == 3 && + fulfillment_ != com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance()) { + fulfillment_ = com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.newBuilder((com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_) + .mergeFrom(value).buildPartial(); } else { fulfillment_ = value; } @@ -3721,14 +3370,11 @@ public Builder mergeGenericWebService( return this; } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ public Builder clearGenericWebService() { if (genericWebServiceBuilder_ == null) { @@ -3747,32 +3393,24 @@ public Builder clearGenericWebService() { return this; } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ - public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder - getGenericWebServiceBuilder() { + public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder getGenericWebServiceBuilder() { return getGenericWebServiceFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder - getGenericWebServiceOrBuilder() { + public com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder() { if ((fulfillmentCase_ == 3) && (genericWebServiceBuilder_ != null)) { return genericWebServiceBuilder_.getMessageOrBuilder(); } else { @@ -3783,51 +3421,38 @@ public Builder clearGenericWebService() { } } /** - * - * *
      * Configuration for a generic web service.
      * 
* - * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * + * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService, - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder, - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder> + com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder> getGenericWebServiceFieldBuilder() { if (genericWebServiceBuilder_ == null) { if (!(fulfillmentCase_ == 3)) { - fulfillment_ = - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance(); + fulfillment_ = com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.getDefaultInstance(); } - genericWebServiceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService, - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder, - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder>( + genericWebServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService.Builder, com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder>( (com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService) fulfillment_, getParentForChildren(), isClean()); fulfillment_ = null; } fulfillmentCase_ = 3; - onChanged(); - ; + onChanged();; return genericWebServiceBuilder_; } - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Optional. Whether fulfillment is enabled.
      * 
* * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enabled. */ @java.lang.Override @@ -3835,68 +3460,53 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Optional. Whether fulfillment is enabled.
      * 
* * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether fulfillment is enabled.
      * 
* * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } private java.util.List features_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - features_ = - new java.util.ArrayList(features_); + features_ = new java.util.ArrayList(features_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment.Feature, - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder, - com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder> - featuresBuilder_; + com.google.cloud.dialogflow.v2.Fulfillment.Feature, com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder, com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder> featuresBuilder_; /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getFeaturesList() { if (featuresBuilder_ == null) { @@ -3906,15 +3516,11 @@ public java.util.List getFea } } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getFeaturesCount() { if (featuresBuilder_ == null) { @@ -3924,15 +3530,11 @@ public int getFeaturesCount() { } } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.Fulfillment.Feature getFeatures(int index) { if (featuresBuilder_ == null) { @@ -3942,15 +3544,11 @@ public com.google.cloud.dialogflow.v2.Fulfillment.Feature getFeatures(int index) } } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFeatures( int index, com.google.cloud.dialogflow.v2.Fulfillment.Feature value) { @@ -3967,15 +3565,11 @@ public Builder setFeatures( return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFeatures( int index, com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder builderForValue) { @@ -3989,15 +3583,11 @@ public Builder setFeatures( return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFeatures(com.google.cloud.dialogflow.v2.Fulfillment.Feature value) { if (featuresBuilder_ == null) { @@ -4013,15 +3603,11 @@ public Builder addFeatures(com.google.cloud.dialogflow.v2.Fulfillment.Feature va return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFeatures( int index, com.google.cloud.dialogflow.v2.Fulfillment.Feature value) { @@ -4038,15 +3624,11 @@ public Builder addFeatures( return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFeatures( com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder builderForValue) { @@ -4060,15 +3642,11 @@ public Builder addFeatures( return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFeatures( int index, com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder builderForValue) { @@ -4082,21 +3660,18 @@ public Builder addFeatures( return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllFeatures( java.lang.Iterable values) { if (featuresBuilder_ == null) { ensureFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, features_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); onChanged(); } else { featuresBuilder_.addAllMessages(values); @@ -4104,15 +3679,11 @@ public Builder addAllFeatures( return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFeatures() { if (featuresBuilder_ == null) { @@ -4125,15 +3696,11 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeFeatures(int index) { if (featuresBuilder_ == null) { @@ -4146,52 +3713,39 @@ public Builder removeFeatures(int index) { return this; } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder getFeaturesBuilder( int index) { return getFeaturesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder getFeaturesOrBuilder( int index) { if (featuresBuilder_ == null) { - return features_.get(index); - } else { + return features_.get(index); } else { return featuresBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getFeaturesOrBuilderList() { + public java.util.List + getFeaturesOrBuilderList() { if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilderList(); } else { @@ -4199,72 +3753,56 @@ public com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder getFeaturesOr } } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder addFeaturesBuilder() { - return getFeaturesFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDefaultInstance()); } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder addFeaturesBuilder( int index) { - return getFeaturesFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDefaultInstance()); + return getFeaturesFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.Fulfillment.Feature.getDefaultInstance()); } /** - * - * *
      * Optional. The field defines whether the fulfillment is enabled for certain features.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getFeaturesBuilderList() { + public java.util.List + getFeaturesBuilderList() { return getFeaturesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment.Feature, - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder, - com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder> + com.google.cloud.dialogflow.v2.Fulfillment.Feature, com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder, com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Fulfillment.Feature, - com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder, - com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder>( - features_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.Fulfillment.Feature, com.google.cloud.dialogflow.v2.Fulfillment.Feature.Builder, com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4274,12 +3812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Fulfillment) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Fulfillment) private static final com.google.cloud.dialogflow.v2.Fulfillment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Fulfillment(); } @@ -4288,16 +3826,16 @@ public static com.google.cloud.dialogflow.v2.Fulfillment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fulfillment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Fulfillment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fulfillment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Fulfillment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4312,4 +3850,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Fulfillment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java similarity index 100% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentName.java diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentOrBuilder.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentOrBuilder.java index 58c6395e4..ab161d4fd 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/fulfillment.proto package com.google.cloud.dialogflow.v2; -public interface FulfillmentOrBuilder - extends +public interface FulfillmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Fulfillment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The unique identifier of the fulfillment.
    * Supported formats:
@@ -35,13 +17,10 @@ public interface FulfillmentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The unique identifier of the fulfillment.
    * Supported formats:
@@ -51,148 +30,113 @@ public interface FulfillmentOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The human-readable name of the fulfillment, unique within the agent.
    * This field is not used for Fulfillment in an Environment.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. The human-readable name of the fulfillment, unique within the agent.
    * This field is not used for Fulfillment in an Environment.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Configuration for a generic web service.
    * 
* * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * * @return Whether the genericWebService field is set. */ boolean hasGenericWebService(); /** - * - * *
    * Configuration for a generic web service.
    * 
* * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; - * * @return The genericWebService. */ com.google.cloud.dialogflow.v2.Fulfillment.GenericWebService getGenericWebService(); /** - * - * *
    * Configuration for a generic web service.
    * 
* * .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; */ - com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder - getGenericWebServiceOrBuilder(); + com.google.cloud.dialogflow.v2.Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder(); /** - * - * *
    * Optional. Whether fulfillment is enabled.
    * 
* * bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getFeaturesList(); + java.util.List + getFeaturesList(); /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dialogflow.v2.Fulfillment.Feature getFeatures(int index); /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getFeaturesCount(); /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getFeaturesOrBuilderList(); /** - * - * *
    * Optional. The field defines whether the fulfillment is enabled for certain features.
    * 
* - * - * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder getFeaturesOrBuilder(int index); + com.google.cloud.dialogflow.v2.Fulfillment.FeatureOrBuilder getFeaturesOrBuilder( + int index); public com.google.cloud.dialogflow.v2.Fulfillment.FulfillmentCase getFulfillmentCase(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentProto.java new file mode 100644 index 000000000..9aab0283e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentProto.java @@ -0,0 +1,174 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/fulfillment.proto + +package com.google.cloud.dialogflow.v2; + +public final class FulfillmentProto { + private FulfillmentProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Fulfillment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_RequestHeadersEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_RequestHeadersEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_UpdateFulfillmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_UpdateFulfillmentRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/dialogflow/v2/fulfillment" + + ".proto\022\032google.cloud.dialogflow.v2\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032 google/pr" + + "otobuf/field_mask.proto\"\251\006\n\013Fulfillment\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014display_name\030\002 \001(\t" + + "B\003\340A\001\022X\n\023generic_web_service\030\003 \001(\01329.goo" + + "gle.cloud.dialogflow.v2.Fulfillment.Gene" + + "ricWebServiceH\000\022\024\n\007enabled\030\004 \001(\010B\003\340A\001\022F\n" + + "\010features\030\005 \003(\0132/.google.cloud.dialogflo" + + "w.v2.Fulfillment.FeatureB\003\340A\001\032\231\002\n\021Generi" + + "cWebService\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\025\n\010usernam" + + "e\030\002 \001(\tB\003\340A\001\022\025\n\010password\030\003 \001(\tB\003\340A\001\022k\n\017r" + + "equest_headers\030\004 \003(\0132M.google.cloud.dial" + + "ogflow.v2.Fulfillment.GenericWebService." + + "RequestHeadersEntryB\003\340A\001\022 \n\021is_cloud_fun" + + "ction\030\005 \001(\010B\005\030\001\340A\001\0325\n\023RequestHeadersEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032z\n\007Fea" + + "ture\022B\n\004type\030\001 \001(\01624.google.cloud.dialog" + + "flow.v2.Fulfillment.Feature.Type\"+\n\004Type" + + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tSMALLTALK\020\001:\214\001" + + "\352A\210\001\n%dialogflow.googleapis.com/Fulfillm" + + "ent\022$projects/{project}/agent/fulfillmen" + + "t\0229projects/{project}/locations/{locatio" + + "n}/agent/fulfillmentB\r\n\013fulfillment\"T\n\025G" + + "etFulfillmentRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372" + + "A\'\n%dialogflow.googleapis.com/Fulfillmen" + + "t\"\223\001\n\030UpdateFulfillmentRequest\022A\n\013fulfil" + + "lment\030\001 \001(\0132\'.google.cloud.dialogflow.v2" + + ".FulfillmentB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\0022\221\005\n\014Fulf" + + "illments\022\333\001\n\016GetFulfillment\0221.google.clo" + + "ud.dialogflow.v2.GetFulfillmentRequest\032\'" + + ".google.cloud.dialogflow.v2.Fulfillment\"" + + "m\202\323\344\223\002`\022\'/v2/{name=projects/*/agent/fulf" + + "illment}Z5\0223/v2/{name=projects/*/locatio" + + "ns/*/agent/fulfillment}\332A\004name\022\250\002\n\021Updat" + + "eFulfillment\0224.google.cloud.dialogflow.v" + + "2.UpdateFulfillmentRequest\032\'.google.clou" + + "d.dialogflow.v2.Fulfillment\"\263\001\202\323\344\223\002\222\00123/" + + "v2/{fulfillment.name=projects/*/agent/fu" + + "lfillment}:\013fulfillmentZN2?/v2/{fulfillm" + + "ent.name=projects/*/locations/*/agent/fu" + + "lfillment}:\013fulfillment\332A\027fulfillment,up" + + "date_mask\032x\312A\031dialogflow.googleapis.com\322" + + "AYhttps://www.googleapis.com/auth/cloud-" + + "platform,https://www.googleapis.com/auth" + + "/dialogflowB\237\001\n\036com.google.cloud.dialogf" + + "low.v2B\020FulfillmentProtoP\001ZDgoogle.golan" + + "g.org/genproto/googleapis/cloud/dialogfl" + + "ow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud." + + "Dialogflow.V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_v2_Fulfillment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor, + new java.lang.String[] { "Name", "DisplayName", "GenericWebService", "Enabled", "Features", "Fulfillment", }); + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor = + internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor, + new java.lang.String[] { "Uri", "Username", "Password", "RequestHeaders", "IsCloudFunction", }); + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_RequestHeadersEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_RequestHeadersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Fulfillment_GenericWebService_RequestHeadersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor = + internal_static_google_cloud_dialogflow_v2_Fulfillment_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_Fulfillment_Feature_descriptor, + new java.lang.String[] { "Type", }); + internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_dialogflow_v2_UpdateFulfillmentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dialogflow_v2_UpdateFulfillmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_UpdateFulfillmentRequest_descriptor, + new java.lang.String[] { "Fulfillment", "UpdateMask", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GcsProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GcsProto.java new file mode 100644 index 000000000..56e970308 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GcsProto.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/gcs.proto + +package com.google.cloud.dialogflow.v2; + +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); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n$google/cloud/dialogflow/v2/gcs.proto\022\032" + + "google.cloud.dialogflow.v2\032\037google/api/f" + + "ield_behavior.proto\032\034google/api/annotati" + + "ons.protoB\227\001\n\036com.google.cloud.dialogflo" + + "w.v2B\010GcsProtoP\001ZDgoogle.golang.org/genp" + + "roto/googleapis/cloud/dialogflow/v2;dial" + + "ogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow" + + ".V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java index 454bf714b..b0105f06e 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetAgentRequest} */ -public final class GetAgentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAgentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetAgentRequest) GetAgentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAgentRequest.newBuilder() to construct. private GetAgentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAgentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAgentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAgentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetAgentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetAgentRequest.class, - com.google.cloud.dialogflow.v2.GetAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetAgentRequest.class, com.google.cloud.dialogflow.v2.GetAgentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project that the agent to fetch is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 to fetch is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetAgentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetAgentRequest other = - (com.google.cloud.dialogflow.v2.GetAgentRequest) obj; + com.google.cloud.dialogflow.v2.GetAgentRequest other = (com.google.cloud.dialogflow.v2.GetAgentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetAgentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetAgentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetAgentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetAgentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetAgentRequest) com.google.cloud.dialogflow.v2.GetAgentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetAgentRequest.class, - com.google.cloud.dialogflow.v2.GetAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetAgentRequest.class, com.google.cloud.dialogflow.v2.GetAgentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetAgentRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetAgentRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.dialogflow.v2.GetAgentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetAgentRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetAgentRequest result = - new com.google.cloud.dialogflow.v2.GetAgentRequest(this); + com.google.cloud.dialogflow.v2.GetAgentRequest result = new com.google.cloud.dialogflow.v2.GetAgentRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.dialogflow.v2.GetAgentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetAgentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetAgentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetAgentRequest)other); } else { super.mergeFrom(other); return this; @@ -484,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project that the agent to fetch is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -509,24 +468,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project that the agent to fetch is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -534,77 +490,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project that the agent to fetch is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to fetch is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to fetch is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetAgentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetAgentRequest) private static final com.google.cloud.dialogflow.v2.GetAgentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetAgentRequest(); } @@ -628,16 +571,16 @@ public static com.google.cloud.dialogflow.v2.GetAgentRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAgentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAgentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAgentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetAgentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java new file mode 100644 index 000000000..e6b8d6f3b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetAgentRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/agent.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetAgentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project that the agent to fetch is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project that the agent to fetch is associated with.
+   * Format: `projects/<Project ID>`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java index 731ebb301..c4e264258 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetContextRequest} */ -public final class GetContextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetContextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetContextRequest) GetContextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetContextRequest.newBuilder() to construct. private GetContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetContextRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetContextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetContextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GetContextRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_GetContextRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_GetContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetContextRequest.class, - com.google.cloud.dialogflow.v2.GetContextRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetContextRequest.class, com.google.cloud.dialogflow.v2.GetContextRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -155,18 +129,17 @@ public java.lang.String getName() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,7 +148,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -211,15 +184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetContextRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetContextRequest other = - (com.google.cloud.dialogflow.v2.GetContextRequest) obj; + com.google.cloud.dialogflow.v2.GetContextRequest other = (com.google.cloud.dialogflow.v2.GetContextRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,127 +211,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetContextRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetContextRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetContextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetContextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetContextRequest) com.google.cloud.dialogflow.v2.GetContextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_GetContextRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_GetContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetContextRequest.class, - com.google.cloud.dialogflow.v2.GetContextRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetContextRequest.class, com.google.cloud.dialogflow.v2.GetContextRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetContextRequest.newBuilder() @@ -366,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ContextProto - .internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ContextProto.internal_static_google_cloud_dialogflow_v2_GetContextRequest_descriptor; } @java.lang.Override @@ -405,8 +370,7 @@ public com.google.cloud.dialogflow.v2.GetContextRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetContextRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetContextRequest result = - new com.google.cloud.dialogflow.v2.GetContextRequest(this); + com.google.cloud.dialogflow.v2.GetContextRequest result = new com.google.cloud.dialogflow.v2.GetContextRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,39 +380,38 @@ public com.google.cloud.dialogflow.v2.GetContextRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetContextRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetContextRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetContextRequest)other); } else { super.mergeFrom(other); return this; @@ -456,8 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetContextRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetContextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetContextRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -493,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -504,16 +464,14 @@ public Builder mergeFrom(
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,8 +480,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -533,17 +489,16 @@ public java.lang.String getName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -551,8 +506,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -562,25 +515,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -590,21 +539,16 @@ public Builder setName(java.lang.String value) {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the context. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -614,26 +558,24 @@ public Builder clearName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -643,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetContextRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetContextRequest) private static final com.google.cloud.dialogflow.v2.GetContextRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetContextRequest(); } @@ -657,16 +599,16 @@ public static com.google.cloud.dialogflow.v2.GetContextRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetContextRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetContextRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetContextRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetContextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java index 767a340af..215007ed7 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetContextRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface GetContextRequestOrBuilder - extends +public interface GetContextRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetContextRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -35,16 +17,11 @@ public interface GetContextRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the context. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
@@ -54,11 +31,9 @@ public interface GetContextRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequest.java index 820165714..3c6388abf 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [ConversationProfiles.GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetConversationProfileRequest} */ -public final class GetConversationProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConversationProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetConversationProfileRequest) GetConversationProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConversationProfileRequest.newBuilder() to construct. private GetConversationProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConversationProfileRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConversationProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetConversationProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private GetConversationProfileRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest.class, - com.google.cloud.dialogflow.v2.GetConversationProfileRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetConversationProfileRequest.class, com.google.cloud.dialogflow.v2.GetConversationProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the conversation profile.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the conversation profile.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/conversationProfiles/<Conversation Profile ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetConversationProfileRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetConversationProfileRequest other = - (com.google.cloud.dialogflow.v2.GetConversationProfileRequest) obj; + com.google.cloud.dialogflow.v2.GetConversationProfileRequest other = (com.google.cloud.dialogflow.v2.GetConversationProfileRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetConversationProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [ConversationProfiles.GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetConversationProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetConversationProfileRequest) com.google.cloud.dialogflow.v2.GetConversationProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetConversationProfileRequest.class, - com.google.cloud.dialogflow.v2.GetConversationProfileRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetConversationProfileRequest.class, com.google.cloud.dialogflow.v2.GetConversationProfileRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetConversationProfileRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_GetConversationProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.GetConversationProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.GetConversationProfileRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.GetConversationProfileRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.dialogflow.v2.GetConversationProfileRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetConversationProfileRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetConversationProfileRequest result = - new com.google.cloud.dialogflow.v2.GetConversationProfileRequest(this); + com.google.cloud.dialogflow.v2.GetConversationProfileRequest result = new com.google.cloud.dialogflow.v2.GetConversationProfileRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.dialogflow.v2.GetConversationProfileRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetConversationProfileRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetConversationProfileRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetConversationProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetConversationProfileRequest other) { - if (other - == com.google.cloud.dialogflow.v2.GetConversationProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetConversationProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetConversationProfileRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetConversationProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the conversation profile.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/conversationProfiles/<Conversation Profile ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,13 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetConversationProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetConversationProfileRequest) - private static final com.google.cloud.dialogflow.v2.GetConversationProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.GetConversationProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetConversationProfileRequest(); } @@ -641,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.GetConversationProfileRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConversationProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConversationProfileRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversationProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConversationProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,4 +602,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.dialogflow.v2.GetConversationProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequestOrBuilder.java new file mode 100644 index 000000000..23684bc7c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationProfileRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation_profile.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetConversationProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetConversationProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the conversation profile.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversationProfiles/<Conversation Profile ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the conversation profile.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/conversationProfiles/<Conversation Profile ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequest.java index 4af8e27ce..1112d9342 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Conversations.GetConversation][google.cloud.dialogflow.v2.Conversations.GetConversation].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetConversationRequest} */ -public final class GetConversationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConversationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetConversationRequest) GetConversationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConversationRequest.newBuilder() to construct. private GetConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConversationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConversationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetConversationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private GetConversationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_GetConversationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_GetConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetConversationRequest.class, - com.google.cloud.dialogflow.v2.GetConversationRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetConversationRequest.class, com.google.cloud.dialogflow.v2.GetConversationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the conversation. Format:
    * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
    * ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the conversation. Format:
    * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
    * ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetConversationRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetConversationRequest other = - (com.google.cloud.dialogflow.v2.GetConversationRequest) obj; + com.google.cloud.dialogflow.v2.GetConversationRequest other = (com.google.cloud.dialogflow.v2.GetConversationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetConversationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetConversationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.GetConversationRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetConversationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Conversations.GetConversation][google.cloud.dialogflow.v2.Conversations.GetConversation].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetConversationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetConversationRequest) com.google.cloud.dialogflow.v2.GetConversationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_GetConversationRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_GetConversationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetConversationRequest.class, - com.google.cloud.dialogflow.v2.GetConversationRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetConversationRequest.class, com.google.cloud.dialogflow.v2.GetConversationRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetConversationRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProto - .internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProto.internal_static_google_cloud_dialogflow_v2_GetConversationRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.dialogflow.v2.GetConversationRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetConversationRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetConversationRequest result = - new com.google.cloud.dialogflow.v2.GetConversationRequest(this); + com.google.cloud.dialogflow.v2.GetConversationRequest result = new com.google.cloud.dialogflow.v2.GetConversationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.dialogflow.v2.GetConversationRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetConversationRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetConversationRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetConversationRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetConversationRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetConversationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetConversationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetConversationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetConversationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the conversation. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -515,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the conversation. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -541,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the conversation. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the conversation. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the conversation. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -624,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetConversationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetConversationRequest) private static final com.google.cloud.dialogflow.v2.GetConversationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetConversationRequest(); } @@ -638,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.GetConversationRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConversationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConversationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConversationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetConversationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequestOrBuilder.java new file mode 100644 index 000000000..2464970f9 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetConversationRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetConversationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the conversation. Format:
+   * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
+   * ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the conversation. Format:
+   * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
+   * ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequest.java index 16acb193f..c476e5183 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/document.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Request message for [Documents.GetDocument][google.cloud.dialogflow.v2.Documents.GetDocument].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetDocumentRequest} */ -public final class GetDocumentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDocumentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetDocumentRequest) GetDocumentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDocumentRequest.newBuilder() to construct. private GetDocumentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDocumentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private GetDocumentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetDocumentRequest.class, - com.google.cloud.dialogflow.v2.GetDocumentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetDocumentRequest.class, com.google.cloud.dialogflow.v2.GetDocumentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the document to retrieve.
    * Format `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the document to retrieve.
    * Format `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetDocumentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetDocumentRequest other = - (com.google.cloud.dialogflow.v2.GetDocumentRequest) obj; + com.google.cloud.dialogflow.v2.GetDocumentRequest other = (com.google.cloud.dialogflow.v2.GetDocumentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetDocumentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetDocumentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [Documents.GetDocument][google.cloud.dialogflow.v2.Documents.GetDocument].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetDocumentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetDocumentRequest) com.google.cloud.dialogflow.v2.GetDocumentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetDocumentRequest.class, - com.google.cloud.dialogflow.v2.GetDocumentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetDocumentRequest.class, com.google.cloud.dialogflow.v2.GetDocumentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetDocumentRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.DocumentProto - .internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.DocumentProto.internal_static_google_cloud_dialogflow_v2_GetDocumentRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.dialogflow.v2.GetDocumentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetDocumentRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetDocumentRequest result = - new com.google.cloud.dialogflow.v2.GetDocumentRequest(this); + com.google.cloud.dialogflow.v2.GetDocumentRequest result = new com.google.cloud.dialogflow.v2.GetDocumentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.dialogflow.v2.GetDocumentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetDocumentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetDocumentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetDocumentRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetDocumentRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetDocumentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetDocumentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the document to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -540,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the document to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetDocumentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetDocumentRequest) private static final com.google.cloud.dialogflow.v2.GetDocumentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetDocumentRequest(); } @@ -637,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.GetDocumentRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDocumentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDocumentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocumentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDocumentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequestOrBuilder.java new file mode 100644 index 000000000..31b284381 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetDocumentRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/document.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetDocumentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetDocumentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the document to retrieve.
+   * Format `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the document to retrieve.
+   * Format `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java index 34f204770..dd37b8d20 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetEntityTypeRequest} */ -public final class GetEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEntityTypeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetEntityTypeRequest) GetEntityTypeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEntityTypeRequest.newBuilder() to construct. private GetEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEntityTypeRequest() { name_ = ""; languageCode_ = ""; @@ -44,15 +26,16 @@ private GetEntityTypeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEntityTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetEntityTypeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private GetEntityTypeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.GetEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetEntityTypeRequest.class, com.google.cloud.dialogflow.v2.GetEntityTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the entity type.
    * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the entity type.
    * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -188,7 +158,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -197,15 +166,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -215,15 +183,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -232,7 +201,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -274,16 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetEntityTypeRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetEntityTypeRequest other = - (com.google.cloud.dialogflow.v2.GetEntityTypeRequest) obj; + com.google.cloud.dialogflow.v2.GetEntityTypeRequest other = (com.google.cloud.dialogflow.v2.GetEntityTypeRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,126 +275,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetEntityTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetEntityTypeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetEntityTypeRequest) com.google.cloud.dialogflow.v2.GetEntityTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.GetEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetEntityTypeRequest.class, com.google.cloud.dialogflow.v2.GetEntityTypeRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetEntityTypeRequest.newBuilder() @@ -432,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -452,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetEntityTypeRequest_descriptor; } @java.lang.Override @@ -473,8 +435,7 @@ public com.google.cloud.dialogflow.v2.GetEntityTypeRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetEntityTypeRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetEntityTypeRequest result = - new com.google.cloud.dialogflow.v2.GetEntityTypeRequest(this); + com.google.cloud.dialogflow.v2.GetEntityTypeRequest result = new com.google.cloud.dialogflow.v2.GetEntityTypeRequest(this); result.name_ = name_; result.languageCode_ = languageCode_; onBuilt(); @@ -485,39 +446,38 @@ public com.google.cloud.dialogflow.v2.GetEntityTypeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetEntityTypeRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetEntityTypeRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetEntityTypeRequest)other); } else { super.mergeFrom(other); return this; @@ -525,8 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetEntityTypeRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetEntityTypeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetEntityTypeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -554,8 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetEntityTypeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetEntityTypeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -567,23 +525,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the entity type.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -592,24 +546,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the entity type.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -617,70 +568,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the entity type.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the entity type.
      * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -688,8 +626,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -699,13 +635,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -714,8 +650,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -725,14 +659,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -740,8 +675,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -751,22 +684,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -776,18 +707,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -797,23 +725,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetEntityTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetEntityTypeRequest) private static final com.google.cloud.dialogflow.v2.GetEntityTypeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetEntityTypeRequest(); } @@ -837,16 +765,16 @@ public static com.google.cloud.dialogflow.v2.GetEntityTypeRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEntityTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEntityTypeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEntityTypeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,4 +789,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetEntityTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java index 64b12def1..dae706054 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEntityTypeRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface GetEntityTypeRequestOrBuilder - extends +public interface GetEntityTypeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetEntityTypeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the entity type.
    * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the entity type.
    * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -66,13 +39,10 @@ public interface GetEntityTypeRequestOrBuilder
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -82,8 +52,8 @@ public interface GetEntityTypeRequestOrBuilder
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequest.java similarity index 70% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequest.java index 0f2e1dad5..3af4d5d32 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest} */ -public final class GetEnvironmentHistoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEnvironmentHistoryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) GetEnvironmentHistoryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEnvironmentHistoryRequest.newBuilder() to construct. private GetEnvironmentHistoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEnvironmentHistoryRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private GetEnvironmentHistoryRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEnvironmentHistoryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetEnvironmentHistoryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,64 +54,58 @@ private GetEnvironmentHistoryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.class, - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.class, com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the environment to retrieve history for.
    * Supported formats:
@@ -138,10 +115,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * The environment ID for the default environment is `-`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -150,15 +124,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the environment to retrieve history for.
    * Supported formats:
@@ -168,18 +141,17 @@ public java.lang.String getParent() {
    * The environment ID for the default environment is `-`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -190,15 +162,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The maximum number of items to return in a single page. By default 100 and
    * at most 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -209,14 +178,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. The next_page_token value returned from a previous list request.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -225,29 +191,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. The next_page_token value returned from a previous list request.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -256,7 +222,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,7 +257,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -304,17 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest other = - (com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) obj; + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest other = (com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,127 +307,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Environments.GetEnvironmentHistory][google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.class, - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.class, com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.newBuilder() @@ -466,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentHistoryRequest_descriptor; } @java.lang.Override @@ -509,8 +469,7 @@ public com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest result = - new com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest(this); + com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest result = new com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -522,39 +481,38 @@ public com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest)other); } else { super.mergeFrom(other); return this; @@ -562,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,8 +563,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the environment to retrieve history for.
      * Supported formats:
@@ -618,16 +572,14 @@ public Builder mergeFrom(
      * The environment ID for the default environment is `-`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -636,8 +588,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the environment to retrieve history for.
      * Supported formats:
@@ -647,17 +597,16 @@ public java.lang.String getParent() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -665,8 +614,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the environment to retrieve history for.
      * Supported formats:
@@ -676,25 +623,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the environment to retrieve history for.
      * Supported formats:
@@ -704,21 +647,16 @@ public Builder setParent(java.lang.String value) {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the environment to retrieve history for.
      * Supported formats:
@@ -728,35 +666,30 @@ public Builder clearParent() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of items to return in a single page. By default 100 and
      * at most 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -764,38 +697,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of items to return in a single page. By default 100 and
      * at most 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of items to return in a single page. By default 100 and
      * at most 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -803,20 +730,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. The next_page_token value returned from a previous list request.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -825,21 +750,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. The next_page_token value returned from a previous list request.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -847,68 +771,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. The next_page_token value returned from a previous list request.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The next_page_token value returned from a previous list request.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. The next_page_token value returned from a previous list request.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -918,12 +835,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) private static final com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest(); } @@ -932,16 +849,16 @@ public static com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEnvironmentHistoryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEnvironmentHistoryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEnvironmentHistoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEnvironmentHistoryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,4 +873,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequestOrBuilder.java index 30224f3a0..d0f246ad8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentHistoryRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; -public interface GetEnvironmentHistoryRequestOrBuilder - extends +public interface GetEnvironmentHistoryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetEnvironmentHistoryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the environment to retrieve history for.
    * Supported formats:
@@ -35,16 +17,11 @@ public interface GetEnvironmentHistoryRequestOrBuilder
    * The environment ID for the default environment is `-`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the environment to retrieve history for.
    * Supported formats:
@@ -54,50 +31,40 @@ public interface GetEnvironmentHistoryRequestOrBuilder
    * The environment ID for the default environment is `-`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of items to return in a single page. By default 100 and
    * at most 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. The next_page_token value returned from a previous list request.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. The next_page_token value returned from a previous list request.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequest.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequest.java index eca36ecc9..1476725b5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Environments.GetEnvironment][google.cloud.dialogflow.v2.Environments.GetEnvironment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetEnvironmentRequest} */ -public final class GetEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEnvironmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetEnvironmentRequest) GetEnvironmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEnvironmentRequest.newBuilder() to construct. private GetEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEnvironmentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetEnvironmentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GetEnvironmentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetEnvironmentRequest.class, - com.google.cloud.dialogflow.v2.GetEnvironmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetEnvironmentRequest.class, com.google.cloud.dialogflow.v2.GetEnvironmentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the environment.
    * Supported formats:
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the environment.
    * Supported formats:
@@ -155,18 +129,17 @@ public java.lang.String getName() {
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,7 +148,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -211,15 +184,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetEnvironmentRequest other = - (com.google.cloud.dialogflow.v2.GetEnvironmentRequest) obj; + com.google.cloud.dialogflow.v2.GetEnvironmentRequest other = (com.google.cloud.dialogflow.v2.GetEnvironmentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,126 +212,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetEnvironmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Environments.GetEnvironment][google.cloud.dialogflow.v2.Environments.GetEnvironment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetEnvironmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetEnvironmentRequest) com.google.cloud.dialogflow.v2.GetEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetEnvironmentRequest.class, - com.google.cloud.dialogflow.v2.GetEnvironmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetEnvironmentRequest.class, com.google.cloud.dialogflow.v2.GetEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetEnvironmentRequest.newBuilder() @@ -366,15 +330,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.EnvironmentProto - .internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.EnvironmentProto.internal_static_google_cloud_dialogflow_v2_GetEnvironmentRequest_descriptor; } @java.lang.Override @@ -405,8 +370,7 @@ public com.google.cloud.dialogflow.v2.GetEnvironmentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetEnvironmentRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetEnvironmentRequest result = - new com.google.cloud.dialogflow.v2.GetEnvironmentRequest(this); + com.google.cloud.dialogflow.v2.GetEnvironmentRequest result = new com.google.cloud.dialogflow.v2.GetEnvironmentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,39 +380,38 @@ public com.google.cloud.dialogflow.v2.GetEnvironmentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetEnvironmentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetEnvironmentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetEnvironmentRequest)other); } else { super.mergeFrom(other); return this; @@ -456,8 +419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetEnvironmentRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetEnvironmentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetEnvironmentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -481,8 +443,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetEnvironmentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetEnvironmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,8 +455,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the environment.
      * Supported formats:
@@ -505,16 +464,14 @@ public Builder mergeFrom(
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,8 +480,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the environment.
      * Supported formats:
@@ -534,17 +489,16 @@ public java.lang.String getName() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -552,8 +506,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the environment.
      * Supported formats:
@@ -563,25 +515,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the environment.
      * Supported formats:
@@ -591,21 +539,16 @@ public Builder setName(java.lang.String value) {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the environment.
      * Supported formats:
@@ -615,26 +558,24 @@ public Builder clearName() {
      * The environment ID for the default environment is `-`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -644,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetEnvironmentRequest) private static final com.google.cloud.dialogflow.v2.GetEnvironmentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetEnvironmentRequest(); } @@ -658,16 +599,16 @@ public static com.google.cloud.dialogflow.v2.GetEnvironmentRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEnvironmentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEnvironmentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,4 +623,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequestOrBuilder.java index 9516fa633..57e3b593d 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetEnvironmentRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/environment.proto package com.google.cloud.dialogflow.v2; -public interface GetEnvironmentRequestOrBuilder - extends +public interface GetEnvironmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the environment.
    * Supported formats:
@@ -35,16 +17,11 @@ public interface GetEnvironmentRequestOrBuilder
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the environment.
    * Supported formats:
@@ -54,11 +31,9 @@ public interface GetEnvironmentRequestOrBuilder
    * The environment ID for the default environment is `-`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequest.java index 4e8aa5aac..748c081a6 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/fulfillment.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Fulfillments.GetFulfillment][google.cloud.dialogflow.v2.Fulfillments.GetFulfillment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetFulfillmentRequest} */ -public final class GetFulfillmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFulfillmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetFulfillmentRequest) GetFulfillmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFulfillmentRequest.newBuilder() to construct. private GetFulfillmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFulfillmentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFulfillmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFulfillmentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetFulfillmentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetFulfillmentRequest.class, - com.google.cloud.dialogflow.v2.GetFulfillmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetFulfillmentRequest.class, com.google.cloud.dialogflow.v2.GetFulfillmentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the fulfillment.
    * Format: `projects/<Project ID>/agent/fulfillment`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the fulfillment.
    * Format: `projects/<Project ID>/agent/fulfillment`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetFulfillmentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetFulfillmentRequest other = - (com.google.cloud.dialogflow.v2.GetFulfillmentRequest) obj; + com.google.cloud.dialogflow.v2.GetFulfillmentRequest other = (com.google.cloud.dialogflow.v2.GetFulfillmentRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetFulfillmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Fulfillments.GetFulfillment][google.cloud.dialogflow.v2.Fulfillments.GetFulfillment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetFulfillmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetFulfillmentRequest) com.google.cloud.dialogflow.v2.GetFulfillmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetFulfillmentRequest.class, - com.google.cloud.dialogflow.v2.GetFulfillmentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetFulfillmentRequest.class, com.google.cloud.dialogflow.v2.GetFulfillmentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetFulfillmentRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.FulfillmentProto - .internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.FulfillmentProto.internal_static_google_cloud_dialogflow_v2_GetFulfillmentRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.dialogflow.v2.GetFulfillmentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetFulfillmentRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetFulfillmentRequest result = - new com.google.cloud.dialogflow.v2.GetFulfillmentRequest(this); + com.google.cloud.dialogflow.v2.GetFulfillmentRequest result = new com.google.cloud.dialogflow.v2.GetFulfillmentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.dialogflow.v2.GetFulfillmentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetFulfillmentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetFulfillmentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetFulfillmentRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetFulfillmentRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetFulfillmentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetFulfillmentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -473,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetFulfillmentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetFulfillmentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the fulfillment.
      * Format: `projects/<Project ID>/agent/fulfillment`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,24 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the fulfillment.
      * Format: `projects/<Project ID>/agent/fulfillment`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -536,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the fulfillment.
      * Format: `projects/<Project ID>/agent/fulfillment`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the fulfillment.
      * Format: `projects/<Project ID>/agent/fulfillment`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the fulfillment.
      * Format: `projects/<Project ID>/agent/fulfillment`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -616,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetFulfillmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetFulfillmentRequest) private static final com.google.cloud.dialogflow.v2.GetFulfillmentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetFulfillmentRequest(); } @@ -630,16 +571,16 @@ public static com.google.cloud.dialogflow.v2.GetFulfillmentRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFulfillmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFulfillmentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFulfillmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFulfillmentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetFulfillmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequestOrBuilder.java new file mode 100644 index 000000000..551ec9bbd --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetFulfillmentRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/fulfillment.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetFulfillmentRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetFulfillmentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the fulfillment.
+   * Format: `projects/<Project ID>/agent/fulfillment`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the fulfillment.
+   * Format: `projects/<Project ID>/agent/fulfillment`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java index d71c60842..bf21b4a6c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetIntentRequest} */ -public final class GetIntentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetIntentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetIntentRequest) GetIntentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetIntentRequest.newBuilder() to construct. private GetIntentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetIntentRequest() { name_ = ""; languageCode_ = ""; @@ -45,15 +27,16 @@ private GetIntentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetIntentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetIntentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,75 +55,65 @@ private GetIntentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + languageCode_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - intentView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + intentView_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_GetIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_GetIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_GetIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_GetIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetIntentRequest.class, - com.google.cloud.dialogflow.v2.GetIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetIntentRequest.class, com.google.cloud.dialogflow.v2.GetIntentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the intent.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -149,32 +122,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the intent.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -185,8 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -196,7 +165,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -205,15 +173,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -223,15 +190,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -242,45 +210,31 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int INTENT_VIEW_FIELD_NUMBER = 3; private int intentView_; /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ - @java.lang.Override - public int getIntentViewValue() { + @java.lang.Override public int getIntentViewValue() { return intentView_; } /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.IntentView getIntentView() { + @java.lang.Override public com.google.cloud.dialogflow.v2.IntentView getIntentView() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.IntentView result = - com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.v2.IntentView result = com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); return result == null ? com.google.cloud.dialogflow.v2.IntentView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,15 +246,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getLanguageCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); } - if (intentView_ - != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { + if (intentView_ != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, intentView_); } unknownFields.writeTo(output); @@ -318,9 +272,9 @@ public int getSerializedSize() { if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); } - if (intentView_ - != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, intentView_); + if (intentView_ != com.google.cloud.dialogflow.v2.IntentView.INTENT_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, intentView_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -330,16 +284,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetIntentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetIntentRequest other = - (com.google.cloud.dialogflow.v2.GetIntentRequest) obj; + com.google.cloud.dialogflow.v2.GetIntentRequest other = (com.google.cloud.dialogflow.v2.GetIntentRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (intentView_ != other.intentView_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -363,127 +318,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetIntentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetIntentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetIntentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetIntentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetIntentRequest) com.google.cloud.dialogflow.v2.GetIntentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_GetIntentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_GetIntentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_GetIntentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_GetIntentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetIntentRequest.class, - com.google.cloud.dialogflow.v2.GetIntentRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetIntentRequest.class, com.google.cloud.dialogflow.v2.GetIntentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetIntentRequest.newBuilder() @@ -491,15 +437,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -513,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_GetIntentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_GetIntentRequest_descriptor; } @java.lang.Override @@ -534,8 +481,7 @@ public com.google.cloud.dialogflow.v2.GetIntentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetIntentRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetIntentRequest result = - new com.google.cloud.dialogflow.v2.GetIntentRequest(this); + com.google.cloud.dialogflow.v2.GetIntentRequest result = new com.google.cloud.dialogflow.v2.GetIntentRequest(this); result.name_ = name_; result.languageCode_ = languageCode_; result.intentView_ = intentView_; @@ -547,39 +493,38 @@ public com.google.cloud.dialogflow.v2.GetIntentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetIntentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetIntentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetIntentRequest)other); } else { super.mergeFrom(other); return this; @@ -587,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetIntentRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetIntentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetIntentRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -631,23 +575,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the intent.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -656,24 +596,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the intent.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -681,70 +618,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the intent.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the intent.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the intent.
      * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -752,8 +676,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -763,13 +685,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -778,8 +700,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -789,14 +709,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -804,8 +725,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -815,22 +734,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -840,18 +757,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The language used to access language-specific data.
      * If not specified, the agent's default language is used.
@@ -861,16 +775,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -878,73 +792,51 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private int intentView_ = 0; /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ - @java.lang.Override - public int getIntentViewValue() { + @java.lang.Override public int getIntentViewValue() { return intentView_; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for intentView to set. * @return This builder for chaining. */ public Builder setIntentViewValue(int value) { - + intentView_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ @java.lang.Override public com.google.cloud.dialogflow.v2.IntentView getIntentView() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.IntentView result = - com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.v2.IntentView result = com.google.cloud.dialogflow.v2.IntentView.valueOf(intentView_); return result == null ? com.google.cloud.dialogflow.v2.IntentView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The intentView to set. * @return This builder for chaining. */ @@ -952,33 +844,28 @@ public Builder setIntentView(com.google.cloud.dialogflow.v2.IntentView value) { if (value == null) { throw new NullPointerException(); } - + intentView_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The resource view to apply to the returned intent.
      * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearIntentView() { - + intentView_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -988,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetIntentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetIntentRequest) private static final com.google.cloud.dialogflow.v2.GetIntentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetIntentRequest(); } @@ -1002,16 +889,16 @@ public static com.google.cloud.dialogflow.v2.GetIntentRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetIntentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetIntentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetIntentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetIntentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,4 +913,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetIntentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java index 8299d951c..e7ed9d086 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetIntentRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface GetIntentRequestOrBuilder - extends +public interface GetIntentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetIntentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the intent.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the intent.
    * Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -66,13 +39,10 @@ public interface GetIntentRequestOrBuilder
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The language used to access language-specific data.
    * If not specified, the agent's default language is used.
@@ -82,36 +52,26 @@ public interface GetIntentRequestOrBuilder
    * 
* * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for intentView. */ int getIntentViewValue(); /** - * - * *
    * Optional. The resource view to apply to the returned intent.
    * 
* - * - * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The intentView. */ com.google.cloud.dialogflow.v2.IntentView getIntentView(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequest.java similarity index 65% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequest.java index fcd29fdc2..9bd77d293 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/knowledge_base.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Request message for [KnowledgeBases.GetKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetKnowledgeBaseRequest} */ -public final class GetKnowledgeBaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetKnowledgeBaseRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) GetKnowledgeBaseRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetKnowledgeBaseRequest.newBuilder() to construct. private GetKnowledgeBaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetKnowledgeBaseRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetKnowledgeBaseRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetKnowledgeBaseRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private GetKnowledgeBaseRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.class, - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the knowledge base to retrieve.
    * Format `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the knowledge base to retrieve.
    * Format `projects/<Project ID>/locations/<Location
    * ID>/knowledgeBases/<Knowledge Base ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest other = - (com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) obj; + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest other = (com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [KnowledgeBases.GetKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetKnowledgeBaseRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.class, - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.class, com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.KnowledgeBaseProto - .internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.KnowledgeBaseProto.internal_static_google_cloud_dialogflow_v2_GetKnowledgeBaseRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest result = - new com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest(this); + com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest result = new com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the knowledge base to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -515,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the knowledge base to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -541,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the knowledge base to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the knowledge base to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the knowledge base to retrieve.
      * Format `projects/<Project ID>/locations/<Location
      * ID>/knowledgeBases/<Knowledge Base ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -624,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) private static final com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest(); } @@ -638,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetKnowledgeBaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetKnowledgeBaseRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetKnowledgeBaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetKnowledgeBaseRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetKnowledgeBaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequestOrBuilder.java new file mode 100644 index 000000000..9c70a26ba --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetKnowledgeBaseRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/knowledge_base.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetKnowledgeBaseRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetKnowledgeBaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the knowledge base to retrieve.
+   * Format `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the knowledge base to retrieve.
+   * Format `projects/<Project ID>/locations/<Location
+   * ID>/knowledgeBases/<Knowledge Base ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java similarity index 66% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java index 28718e84c..8e78a3688 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/participant.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetParticipantRequest} */ -public final class GetParticipantRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetParticipantRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetParticipantRequest) GetParticipantRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetParticipantRequest.newBuilder() to construct. private GetParticipantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetParticipantRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetParticipantRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetParticipantRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,54 @@ private GetParticipantRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetParticipantRequest.class, - com.google.cloud.dialogflow.v2.GetParticipantRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetParticipantRequest.class, com.google.cloud.dialogflow.v2.GetParticipantRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the participant. Format:
    * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
    * ID>/participants/<Participant ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -134,33 +109,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the participant. Format:
    * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
    * ID>/participants/<Participant ID>`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetParticipantRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetParticipantRequest other = - (com.google.cloud.dialogflow.v2.GetParticipantRequest) obj; + com.google.cloud.dialogflow.v2.GetParticipantRequest other = (com.google.cloud.dialogflow.v2.GetParticipantRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetParticipantRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetParticipantRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetParticipantRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetParticipantRequest) com.google.cloud.dialogflow.v2.GetParticipantRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetParticipantRequest.class, - com.google.cloud.dialogflow.v2.GetParticipantRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetParticipantRequest.class, com.google.cloud.dialogflow.v2.GetParticipantRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetParticipantRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto.internal_static_google_cloud_dialogflow_v2_GetParticipantRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.dialogflow.v2.GetParticipantRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetParticipantRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetParticipantRequest result = - new com.google.cloud.dialogflow.v2.GetParticipantRequest(this); + com.google.cloud.dialogflow.v2.GetParticipantRequest result = new com.google.cloud.dialogflow.v2.GetParticipantRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.dialogflow.v2.GetParticipantRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetParticipantRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetParticipantRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetParticipantRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetParticipantRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetParticipantRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetParticipantRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetParticipantRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetParticipantRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,24 +449,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the participant. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>/participants/<Participant ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,25 +471,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the participant. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>/participants/<Participant ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -540,80 +494,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the participant. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>/participants/<Participant ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the participant. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>/participants/<Participant ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the participant. Format:
      * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
      * ID>/participants/<Participant ID>`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetParticipantRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetParticipantRequest) private static final com.google.cloud.dialogflow.v2.GetParticipantRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetParticipantRequest(); } @@ -637,16 +578,16 @@ public static com.google.cloud.dialogflow.v2.GetParticipantRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetParticipantRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetParticipantRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetParticipantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetParticipantRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetParticipantRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequestOrBuilder.java new file mode 100644 index 000000000..d58a91e9b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetParticipantRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/participant.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetParticipantRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetParticipantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the participant. Format:
+   * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
+   * ID>/participants/<Participant ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the participant. Format:
+   * `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
+   * ID>/participants/<Participant ID>`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java similarity index 70% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java index ee0caaa05..f343c901c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetSessionEntityTypeRequest} */ -public final class GetSessionEntityTypeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSessionEntityTypeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) GetSessionEntityTypeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSessionEntityTypeRequest.newBuilder() to construct. private GetSessionEntityTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSessionEntityTypeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSessionEntityTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSessionEntityTypeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GetSessionEntityTypeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.class, com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the session entity type. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -126,10 +104,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -138,15 +113,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the session entity type. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -157,18 +131,17 @@ public java.lang.String getName() {
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +161,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -213,15 +186,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest other = - (com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) obj; + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest other = (com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -241,127 +214,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetSessionEntityTypeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.class, - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.class, com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.newBuilder() @@ -369,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.SessionEntityTypeProto - .internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.SessionEntityTypeProto.internal_static_google_cloud_dialogflow_v2_GetSessionEntityTypeRequest_descriptor; } @java.lang.Override @@ -408,8 +372,7 @@ public com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest result = - new com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest(this); + com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest result = new com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -419,39 +382,38 @@ public com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest)other); } else { super.mergeFrom(other); return this; @@ -459,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,8 +445,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,8 +457,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the session entity type. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -509,16 +467,14 @@ public Builder mergeFrom(
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -527,8 +483,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the session entity type. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -539,17 +493,16 @@ public java.lang.String getName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -557,8 +510,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the session entity type. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -569,25 +520,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the session entity type. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -598,21 +545,16 @@ public Builder setName(java.lang.String value) {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the session entity type. Format:
      * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -623,26 +565,24 @@ public Builder clearName() {
      * environment. If `User ID` is not specified, we assume default '-' user.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -652,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) private static final com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest(); } @@ -666,16 +606,16 @@ public static com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSessionEntityTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSessionEntityTypeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSessionEntityTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSessionEntityTypeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -690,4 +630,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java index 29eb323f5..ea4d77ce5 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetSessionEntityTypeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface GetSessionEntityTypeRequestOrBuilder - extends +public interface GetSessionEntityTypeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the session entity type. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -36,16 +18,11 @@ public interface GetSessionEntityTypeRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the session entity type. Format:
    * `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
@@ -56,11 +33,9 @@ public interface GetSessionEntityTypeRequestOrBuilder
    * environment. If `User ID` is not specified, we assume default '-' user.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequest.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequest.java index b15407648..7d9117724 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetValidationResultRequest} */ -public final class GetValidationResultRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetValidationResultRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetValidationResultRequest) GetValidationResultRequestOrBuilder { - private static final long serialVersionUID = 0L; +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_ = ""; @@ -44,15 +26,16 @@ private GetValidationResultRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetValidationResultRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetValidationResultRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private GetValidationResultRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 26: - { - 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; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetValidationResultRequest.class, - com.google.cloud.dialogflow.v2.GetValidationResultRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetValidationResultRequest.class, com.google.cloud.dialogflow.v2.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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getParentBytes() { 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
@@ -188,7 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -197,15 +166,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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
@@ -215,15 +183,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -232,7 +201,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,16 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetValidationResultRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetValidationResultRequest other = - (com.google.cloud.dialogflow.v2.GetValidationResultRequest) obj; + com.google.cloud.dialogflow.v2.GetValidationResultRequest other = (com.google.cloud.dialogflow.v2.GetValidationResultRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.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.v2.GetValidationResultRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetValidationResultRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.GetValidationResultRequest prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetValidationResultRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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.v2.Agents.GetValidationResult].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetValidationResultRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetValidationResultRequest) com.google.cloud.dialogflow.v2.GetValidationResultRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetValidationResultRequest.class, - com.google.cloud.dialogflow.v2.GetValidationResultRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetValidationResultRequest.class, com.google.cloud.dialogflow.v2.GetValidationResultRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetValidationResultRequest.newBuilder() @@ -433,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_GetValidationResultRequest_descriptor; } @java.lang.Override @@ -474,8 +435,7 @@ public com.google.cloud.dialogflow.v2.GetValidationResultRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetValidationResultRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetValidationResultRequest result = - new com.google.cloud.dialogflow.v2.GetValidationResultRequest(this); + com.google.cloud.dialogflow.v2.GetValidationResultRequest result = new com.google.cloud.dialogflow.v2.GetValidationResultRequest(this); result.parent_ = parent_; result.languageCode_ = languageCode_; onBuilt(); @@ -486,39 +446,38 @@ public com.google.cloud.dialogflow.v2.GetValidationResultRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetValidationResultRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetValidationResultRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetValidationResultRequest)other); } else { super.mergeFrom(other); return this; @@ -526,8 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetValidationResultRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetValidationResultRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetValidationResultRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -555,8 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.GetValidationResultRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.GetValidationResultRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -568,23 +525,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project that the agent is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -593,24 +546,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project that the agent is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -618,70 +568,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project that the agent is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project that the agent is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -689,8 +626,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -700,13 +635,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -715,8 +650,6 @@ public 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
@@ -726,14 +659,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -741,8 +675,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The language for which you want a validation result. If not
      * specified, the agent's default language is used. [Many
@@ -752,22 +684,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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
@@ -777,18 +707,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ 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
@@ -798,23 +725,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -824,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetValidationResultRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetValidationResultRequest) private static final com.google.cloud.dialogflow.v2.GetValidationResultRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetValidationResultRequest(); } @@ -838,16 +765,16 @@ public static com.google.cloud.dialogflow.v2.GetValidationResultRequest getDefau 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); - } - }; + 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; @@ -862,4 +789,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.GetValidationResultRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequestOrBuilder.java index ef7e253bd..2267d6e67 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetValidationResultRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface GetValidationResultRequestOrBuilder - extends +public interface GetValidationResultRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetValidationResultRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project that the agent is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project that the agent is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + 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
@@ -66,13 +39,10 @@ public interface GetValidationResultRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ 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
@@ -82,8 +52,8 @@ public interface GetValidationResultRequestOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequest.java similarity index 67% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequest.java index 178e5865a..d550d5b55 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/version.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Versions.GetVersion][google.cloud.dialogflow.v2.Versions.GetVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetVersionRequest} */ -public final class GetVersionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.GetVersionRequest) GetVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetVersionRequest.newBuilder() to construct. private GetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetVersionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetVersionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private GetVersionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_GetVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_GetVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_GetVersionRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_GetVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetVersionRequest.class, - com.google.cloud.dialogflow.v2.GetVersionRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetVersionRequest.class, com.google.cloud.dialogflow.v2.GetVersionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the version.
    * Supported formats:
@@ -124,10 +102,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   ID>`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the version.
    * Supported formats:
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    *   ID>`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.GetVersionRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.GetVersionRequest other = - (com.google.cloud.dialogflow.v2.GetVersionRequest) obj; + com.google.cloud.dialogflow.v2.GetVersionRequest other = (com.google.cloud.dialogflow.v2.GetVersionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,127 +209,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.GetVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.GetVersionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.GetVersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Versions.GetVersion][google.cloud.dialogflow.v2.Versions.GetVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.GetVersionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.GetVersionRequest) com.google.cloud.dialogflow.v2.GetVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_GetVersionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_GetVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_GetVersionRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_GetVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.GetVersionRequest.class, - com.google.cloud.dialogflow.v2.GetVersionRequest.Builder.class); + com.google.cloud.dialogflow.v2.GetVersionRequest.class, com.google.cloud.dialogflow.v2.GetVersionRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.GetVersionRequest.newBuilder() @@ -364,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.VersionProto - .internal_static_google_cloud_dialogflow_v2_GetVersionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.VersionProto.internal_static_google_cloud_dialogflow_v2_GetVersionRequest_descriptor; } @java.lang.Override @@ -403,8 +368,7 @@ public com.google.cloud.dialogflow.v2.GetVersionRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.GetVersionRequest buildPartial() { - com.google.cloud.dialogflow.v2.GetVersionRequest result = - new com.google.cloud.dialogflow.v2.GetVersionRequest(this); + com.google.cloud.dialogflow.v2.GetVersionRequest result = new com.google.cloud.dialogflow.v2.GetVersionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +378,38 @@ public com.google.cloud.dialogflow.v2.GetVersionRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.GetVersionRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.GetVersionRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.GetVersionRequest)other); } else { super.mergeFrom(other); return this; @@ -454,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.GetVersionRequest other) { - if (other == com.google.cloud.dialogflow.v2.GetVersionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.GetVersionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -491,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the version.
      * Supported formats:
@@ -501,16 +461,14 @@ public Builder mergeFrom(
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -519,8 +477,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the version.
      * Supported formats:
@@ -529,17 +485,16 @@ public java.lang.String getName() {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,8 +502,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the version.
      * Supported formats:
@@ -557,25 +510,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the version.
      * Supported formats:
@@ -584,21 +533,16 @@ public Builder setName(java.lang.String value) {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the version.
      * Supported formats:
@@ -607,26 +551,24 @@ public Builder clearName() {
      *   ID>`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.GetVersionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetVersionRequest) private static final com.google.cloud.dialogflow.v2.GetVersionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.GetVersionRequest(); } @@ -650,16 +592,16 @@ public static com.google.cloud.dialogflow.v2.GetVersionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVersionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVersionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -674,4 +616,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.GetVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequestOrBuilder.java new file mode 100644 index 000000000..9784004ce --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/GetVersionRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/version.proto + +package com.google.cloud.dialogflow.v2; + +public interface GetVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.GetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the version.
+   * Supported formats:
+   * - `projects/<Project ID>/agent/versions/<Version ID>`
+   * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
+   *   ID>`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the version.
+   * Supported formats:
+   * - `projects/<Project ID>/agent/versions/<Version ID>`
+   * - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
+   *   ID>`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java similarity index 59% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java index efacc6816..2c39ddeb8 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Defines the Human Agent Assist to connect to a conversation.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig} */ -public final class HumanAgentAssistantConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HumanAgentAssistantConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig) HumanAgentAssistantConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HumanAgentAssistantConfig.newBuilder() to construct. private HumanAgentAssistantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HumanAgentAssistantConfig() {} + private HumanAgentAssistantConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HumanAgentAssistantConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HumanAgentAssistantConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,179 +52,146 @@ private HumanAgentAssistantConfig( case 0: done = true; break; - case 18: - { - com.google.cloud.dialogflow.v2.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.NotificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.dialogflow.v2.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - subBuilder = null; - if (humanAgentSuggestionConfig_ != null) { - subBuilder = humanAgentSuggestionConfig_.toBuilder(); - } - humanAgentSuggestionConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(humanAgentSuggestionConfig_); - humanAgentSuggestionConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder subBuilder = null; + if (humanAgentSuggestionConfig_ != null) { + subBuilder = humanAgentSuggestionConfig_.toBuilder(); + } + humanAgentSuggestionConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(humanAgentSuggestionConfig_); + humanAgentSuggestionConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - subBuilder = null; - if (endUserSuggestionConfig_ != null) { - subBuilder = endUserSuggestionConfig_.toBuilder(); - } - endUserSuggestionConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endUserSuggestionConfig_); - endUserSuggestionConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder subBuilder = null; + if (endUserSuggestionConfig_ != null) { + subBuilder = endUserSuggestionConfig_.toBuilder(); + } + endUserSuggestionConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endUserSuggestionConfig_); + endUserSuggestionConfig_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder - subBuilder = null; - if (messageAnalysisConfig_ != null) { - subBuilder = messageAnalysisConfig_.toBuilder(); - } - messageAnalysisConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageAnalysisConfig_); - messageAnalysisConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 42: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder subBuilder = null; + if (messageAnalysisConfig_ != null) { + subBuilder = messageAnalysisConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + messageAnalysisConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageAnalysisConfig_); + messageAnalysisConfig_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder.class); } - public interface SuggestionTriggerSettingsOrBuilder - extends + public interface SuggestionTriggerSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Do not trigger if last utterance is small talk.
      * 
* * bool no_smalltalk = 1; - * * @return The noSmalltalk. */ boolean getNoSmalltalk(); /** - * - * *
      * Only trigger suggestion if participant role of last utterance is
      * END_USER.
      * 
* * bool only_end_user = 2; - * * @return The onlyEndUser. */ boolean getOnlyEndUser(); } /** - * - * *
    * Settings of suggestion trigger.
    * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings} */ - public static final class SuggestionTriggerSettings extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SuggestionTriggerSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) SuggestionTriggerSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuggestionTriggerSettings.newBuilder() to construct. private SuggestionTriggerSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SuggestionTriggerSettings() {} + private SuggestionTriggerSettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SuggestionTriggerSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SuggestionTriggerSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -259,63 +210,56 @@ private SuggestionTriggerSettings( case 0: done = true; break; - case 8: - { - noSmalltalk_ = input.readBool(); - break; - } - case 16: - { - onlyEndUser_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + noSmalltalk_ = input.readBool(); + break; + } + case 16: { + + onlyEndUser_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder.class); } public static final int NO_SMALLTALK_FIELD_NUMBER = 1; private boolean noSmalltalk_; /** - * - * *
      * Do not trigger if last utterance is small talk.
      * 
* * bool no_smalltalk = 1; - * * @return The noSmalltalk. */ @java.lang.Override @@ -326,15 +270,12 @@ public boolean getNoSmalltalk() { public static final int ONLY_END_USER_FIELD_NUMBER = 2; private boolean onlyEndUser_; /** - * - * *
      * Only trigger suggestion if participant role of last utterance is
      * END_USER.
      * 
* * bool only_end_user = 2; - * * @return The onlyEndUser. */ @java.lang.Override @@ -343,7 +284,6 @@ public boolean getOnlyEndUser() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (noSmalltalk_ != false) { output.writeBool(1, noSmalltalk_); } @@ -372,10 +313,12 @@ public int getSerializedSize() { size = 0; if (noSmalltalk_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, noSmalltalk_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, noSmalltalk_); } if (onlyEndUser_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, onlyEndUser_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, onlyEndUser_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,18 +328,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) obj; - if (getNoSmalltalk() != other.getNoSmalltalk()) return false; - if (getOnlyEndUser() != other.getOnlyEndUser()) return false; + if (getNoSmalltalk() + != other.getNoSmalltalk()) return false; + if (getOnlyEndUser() + != other.getOnlyEndUser()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -409,110 +351,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NO_SMALLTALK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoSmalltalk()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNoSmalltalk()); hash = (37 * hash) + ONLY_END_USER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOnlyEndUser()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOnlyEndUser()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -522,53 +452,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Settings of suggestion trigger.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -580,23 +501,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionTriggerSettings_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings result = - buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -604,11 +521,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings( - this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings(this); result.noSmalltalk_ = noSmalltalk_; result.onlyEndUser_ = onlyEndUser_; onBuilt(); @@ -619,57 +533,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.getDefaultInstance()) return this; if (other.getNoSmalltalk() != false) { setNoSmalltalk(other.getNoSmalltalk()); } @@ -691,14 +594,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -708,16 +608,13 @@ public Builder mergeFrom( return this; } - private boolean noSmalltalk_; + private boolean noSmalltalk_ ; /** - * - * *
        * Do not trigger if last utterance is small talk.
        * 
* * bool no_smalltalk = 1; - * * @return The noSmalltalk. */ @java.lang.Override @@ -725,52 +622,43 @@ public boolean getNoSmalltalk() { return noSmalltalk_; } /** - * - * *
        * Do not trigger if last utterance is small talk.
        * 
* * bool no_smalltalk = 1; - * * @param value The noSmalltalk to set. * @return This builder for chaining. */ public Builder setNoSmalltalk(boolean value) { - + noSmalltalk_ = value; onChanged(); return this; } /** - * - * *
        * Do not trigger if last utterance is small talk.
        * 
* * bool no_smalltalk = 1; - * * @return This builder for chaining. */ public Builder clearNoSmalltalk() { - + noSmalltalk_ = false; onChanged(); return this; } - private boolean onlyEndUser_; + private boolean onlyEndUser_ ; /** - * - * *
        * Only trigger suggestion if participant role of last utterance is
        * END_USER.
        * 
* * bool only_end_user = 2; - * * @return The onlyEndUser. */ @java.lang.Override @@ -778,43 +666,36 @@ public boolean getOnlyEndUser() { return onlyEndUser_; } /** - * - * *
        * Only trigger suggestion if participant role of last utterance is
        * END_USER.
        * 
* * bool only_end_user = 2; - * * @param value The onlyEndUser to set. * @return This builder for chaining. */ public Builder setOnlyEndUser(boolean value) { - + onlyEndUser_ = value; onChanged(); return this; } /** - * - * *
        * Only trigger suggestion if participant role of last utterance is
        * END_USER.
        * 
* * bool only_end_user = 2; - * * @return This builder for chaining. */ public Builder clearOnlyEndUser() { - + onlyEndUser_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -827,34 +708,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestionTriggerSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SuggestionTriggerSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionTriggerSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SuggestionTriggerSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,44 +743,35 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SuggestionFeatureConfigOrBuilder - extends + public interface SuggestionFeatureConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The suggestion feature.
      * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; - * * @return Whether the suggestionFeature field is set. */ boolean hasSuggestionFeature(); /** - * - * *
      * The suggestion feature.
      * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; - * * @return The suggestionFeature. */ com.google.cloud.dialogflow.v2.SuggestionFeature getSuggestionFeature(); /** - * - * *
      * The suggestion feature.
      * 
@@ -913,8 +781,6 @@ public interface SuggestionFeatureConfigOrBuilder com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder getSuggestionFeatureOrBuilder(); /** - * - * *
      * Automatically iterates all participants and tries to compile
      * suggestions.
@@ -922,175 +788,125 @@ public interface SuggestionFeatureConfigOrBuilder
      * 
* * bool enable_event_based_suggestion = 3; - * * @return The enableEventBasedSuggestion. */ boolean getEnableEventBasedSuggestion(); /** - * - * *
      * Settings of suggestion trigger.
      * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; * @return Whether the suggestionTriggerSettings field is set. */ boolean hasSuggestionTriggerSettings(); /** - * - * *
      * Settings of suggestion trigger.
      * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; * @return The suggestionTriggerSettings. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - getSuggestionTriggerSettings(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings getSuggestionTriggerSettings(); /** - * - * *
      * Settings of suggestion trigger.
      * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder - getSuggestionTriggerSettingsOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder getSuggestionTriggerSettingsOrBuilder(); /** - * - * *
      * Configs of query.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; * @return Whether the queryConfig field is set. */ boolean hasQueryConfig(); /** - * - * *
      * Configs of query.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; * @return The queryConfig. */ com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig getQueryConfig(); /** - * - * *
      * Configs of query.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder - getQueryConfigOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder getQueryConfigOrBuilder(); /** - * - * *
      * Configs of custom conversation model.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; * @return Whether the conversationModelConfig field is set. */ boolean hasConversationModelConfig(); /** - * - * *
      * Configs of custom conversation model.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; * @return The conversationModelConfig. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig getConversationModelConfig(); /** - * - * *
      * Configs of custom conversation model.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder getConversationModelConfigOrBuilder(); } /** - * - * *
    * Config for suggestion features.
    * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig} */ - public static final class SuggestionFeatureConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SuggestionFeatureConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) SuggestionFeatureConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuggestionFeatureConfig.newBuilder() to construct. private SuggestionFeatureConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SuggestionFeatureConfig() {} + private SuggestionFeatureConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SuggestionFeatureConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SuggestionFeatureConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1109,135 +925,103 @@ private SuggestionFeatureConfig( case 0: done = true; break; - case 24: - { - enableEventBasedSuggestion_ = input.readBool(); - break; - } - case 42: - { - com.google.cloud.dialogflow.v2.SuggestionFeature.Builder subBuilder = null; - if (suggestionFeature_ != null) { - subBuilder = suggestionFeature_.toBuilder(); - } - suggestionFeature_ = - input.readMessage( - com.google.cloud.dialogflow.v2.SuggestionFeature.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(suggestionFeature_); - suggestionFeature_ = subBuilder.buildPartial(); - } + case 24: { - break; + enableEventBasedSuggestion_ = input.readBool(); + break; + } + case 42: { + com.google.cloud.dialogflow.v2.SuggestionFeature.Builder subBuilder = null; + if (suggestionFeature_ != null) { + subBuilder = suggestionFeature_.toBuilder(); + } + suggestionFeature_ = input.readMessage(com.google.cloud.dialogflow.v2.SuggestionFeature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(suggestionFeature_); + suggestionFeature_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .Builder - subBuilder = null; - if (queryConfig_ != null) { - subBuilder = queryConfig_.toBuilder(); - } - queryConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryConfig_); - queryConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 50: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder subBuilder = null; + if (queryConfig_ != null) { + subBuilder = queryConfig_.toBuilder(); + } + queryConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryConfig_); + queryConfig_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .Builder - subBuilder = null; - if (conversationModelConfig_ != null) { - subBuilder = conversationModelConfig_.toBuilder(); - } - conversationModelConfig_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .ConversationModelConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(conversationModelConfig_); - conversationModelConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 58: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder subBuilder = null; + if (conversationModelConfig_ != null) { + subBuilder = conversationModelConfig_.toBuilder(); + } + conversationModelConfig_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conversationModelConfig_); + conversationModelConfig_ = subBuilder.buildPartial(); } - case 82: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .Builder - subBuilder = null; - if (suggestionTriggerSettings_ != null) { - subBuilder = suggestionTriggerSettings_.toBuilder(); - } - suggestionTriggerSettings_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(suggestionTriggerSettings_); - suggestionTriggerSettings_ = subBuilder.buildPartial(); - } - break; + break; + } + case 82: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder subBuilder = null; + if (suggestionTriggerSettings_ != null) { + subBuilder = suggestionTriggerSettings_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + suggestionTriggerSettings_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(suggestionTriggerSettings_); + suggestionTriggerSettings_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder.class); } public static final int SUGGESTION_FEATURE_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.v2.SuggestionFeature suggestionFeature_; /** - * - * *
      * The suggestion feature.
      * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; - * * @return Whether the suggestionFeature field is set. */ @java.lang.Override @@ -1245,25 +1029,18 @@ public boolean hasSuggestionFeature() { return suggestionFeature_ != null; } /** - * - * *
      * The suggestion feature.
      * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; - * * @return The suggestionFeature. */ @java.lang.Override public com.google.cloud.dialogflow.v2.SuggestionFeature getSuggestionFeature() { - return suggestionFeature_ == null - ? com.google.cloud.dialogflow.v2.SuggestionFeature.getDefaultInstance() - : suggestionFeature_; + return suggestionFeature_ == null ? com.google.cloud.dialogflow.v2.SuggestionFeature.getDefaultInstance() : suggestionFeature_; } /** - * - * *
      * The suggestion feature.
      * 
@@ -1271,16 +1048,13 @@ public com.google.cloud.dialogflow.v2.SuggestionFeature getSuggestionFeature() { * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder - getSuggestionFeatureOrBuilder() { + public com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder getSuggestionFeatureOrBuilder() { return getSuggestionFeature(); } public static final int ENABLE_EVENT_BASED_SUGGESTION_FIELD_NUMBER = 3; private boolean enableEventBasedSuggestion_; /** - * - * *
      * Automatically iterates all participants and tries to compile
      * suggestions.
@@ -1288,7 +1062,6 @@ public com.google.cloud.dialogflow.v2.SuggestionFeature getSuggestionFeature() {
      * 
* * bool enable_event_based_suggestion = 3; - * * @return The enableEventBasedSuggestion. */ @java.lang.Override @@ -1297,20 +1070,14 @@ public boolean getEnableEventBasedSuggestion() { } public static final int SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER = 10; - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - suggestionTriggerSettings_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; /** - * - * *
      * Settings of suggestion trigger.
      * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; * @return Whether the suggestionTriggerSettings field is set. */ @java.lang.Override @@ -1318,60 +1085,39 @@ public boolean hasSuggestionTriggerSettings() { return suggestionTriggerSettings_ != null; } /** - * - * *
      * Settings of suggestion trigger.
      * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; * @return The suggestionTriggerSettings. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - getSuggestionTriggerSettings() { - return suggestionTriggerSettings_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .getDefaultInstance() - : suggestionTriggerSettings_; + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings getSuggestionTriggerSettings() { + return suggestionTriggerSettings_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.getDefaultInstance() : suggestionTriggerSettings_; } /** - * - * *
      * Settings of suggestion trigger.
      * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder - getSuggestionTriggerSettingsOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder getSuggestionTriggerSettingsOrBuilder() { return getSuggestionTriggerSettings(); } public static final int QUERY_CONFIG_FIELD_NUMBER = 6; - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - queryConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig queryConfig_; /** - * - * *
      * Configs of query.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; * @return Whether the queryConfig field is set. */ @java.lang.Override @@ -1379,57 +1125,37 @@ public boolean hasQueryConfig() { return queryConfig_ != null; } /** - * - * *
      * Configs of query.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; * @return The queryConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - getQueryConfig() { - return queryConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .getDefaultInstance() - : queryConfig_; + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig getQueryConfig() { + return queryConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.getDefaultInstance() : queryConfig_; } /** - * - * *
      * Configs of query.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder - getQueryConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder getQueryConfigOrBuilder() { return getQueryConfig(); } public static final int CONVERSATION_MODEL_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - conversationModelConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversationModelConfig_; /** - * - * *
      * Configs of custom conversation model.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; * @return Whether the conversationModelConfig field is set. */ @java.lang.Override @@ -1437,45 +1163,30 @@ public boolean hasConversationModelConfig() { return conversationModelConfig_ != null; } /** - * - * *
      * Configs of custom conversation model.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; * @return The conversationModelConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig() { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance() - : conversationModelConfig_; + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig getConversationModelConfig() { + return conversationModelConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.getDefaultInstance() : conversationModelConfig_; } /** - * - * *
      * Configs of custom conversation model.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder getConversationModelConfigOrBuilder() { return getConversationModelConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1487,7 +1198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableEventBasedSuggestion_ != false) { output.writeBool(3, enableEventBasedSuggestion_); } @@ -1513,24 +1225,24 @@ public int getSerializedSize() { size = 0; if (enableEventBasedSuggestion_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableEventBasedSuggestion_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableEventBasedSuggestion_); } if (suggestionFeature_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSuggestionFeature()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSuggestionFeature()); } if (queryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQueryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getQueryConfig()); } if (conversationModelConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, getConversationModelConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getConversationModelConfig()); } if (suggestionTriggerSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getSuggestionTriggerSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSuggestionTriggerSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1540,33 +1252,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) obj; if (hasSuggestionFeature() != other.hasSuggestionFeature()) return false; if (hasSuggestionFeature()) { - if (!getSuggestionFeature().equals(other.getSuggestionFeature())) return false; + if (!getSuggestionFeature() + .equals(other.getSuggestionFeature())) return false; } - if (getEnableEventBasedSuggestion() != other.getEnableEventBasedSuggestion()) return false; + if (getEnableEventBasedSuggestion() + != other.getEnableEventBasedSuggestion()) return false; if (hasSuggestionTriggerSettings() != other.hasSuggestionTriggerSettings()) return false; if (hasSuggestionTriggerSettings()) { - if (!getSuggestionTriggerSettings().equals(other.getSuggestionTriggerSettings())) - return false; + if (!getSuggestionTriggerSettings() + .equals(other.getSuggestionTriggerSettings())) return false; } if (hasQueryConfig() != other.hasQueryConfig()) return false; if (hasQueryConfig()) { - if (!getQueryConfig().equals(other.getQueryConfig())) return false; + if (!getQueryConfig() + .equals(other.getQueryConfig())) return false; } if (hasConversationModelConfig() != other.hasConversationModelConfig()) return false; if (hasConversationModelConfig()) { - if (!getConversationModelConfig().equals(other.getConversationModelConfig())) return false; + if (!getConversationModelConfig() + .equals(other.getConversationModelConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1584,8 +1297,8 @@ public int hashCode() { hash = (53 * hash) + getSuggestionFeature().hashCode(); } hash = (37 * hash) + ENABLE_EVENT_BASED_SUGGESTION_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEventBasedSuggestion()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableEventBasedSuggestion()); if (hasSuggestionTriggerSettings()) { hash = (37 * hash) + SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSuggestionTriggerSettings().hashCode(); @@ -1603,102 +1316,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1708,52 +1407,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Config for suggestion features.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1787,23 +1478,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionFeatureConfig_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig result = - buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1811,11 +1498,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig( - this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig(this); if (suggestionFeatureBuilder_ == null) { result.suggestionFeature_ = suggestionFeature_; } else { @@ -1845,56 +1529,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.getDefaultInstance()) return this; if (other.hasSuggestionFeature()) { mergeSuggestionFeature(other.getSuggestionFeature()); } @@ -1925,14 +1599,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1944,47 +1615,34 @@ public Builder mergeFrom( private com.google.cloud.dialogflow.v2.SuggestionFeature suggestionFeature_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionFeature, - com.google.cloud.dialogflow.v2.SuggestionFeature.Builder, - com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder> - suggestionFeatureBuilder_; + com.google.cloud.dialogflow.v2.SuggestionFeature, com.google.cloud.dialogflow.v2.SuggestionFeature.Builder, com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder> suggestionFeatureBuilder_; /** - * - * *
        * The suggestion feature.
        * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; - * * @return Whether the suggestionFeature field is set. */ public boolean hasSuggestionFeature() { return suggestionFeatureBuilder_ != null || suggestionFeature_ != null; } /** - * - * *
        * The suggestion feature.
        * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; - * * @return The suggestionFeature. */ public com.google.cloud.dialogflow.v2.SuggestionFeature getSuggestionFeature() { if (suggestionFeatureBuilder_ == null) { - return suggestionFeature_ == null - ? com.google.cloud.dialogflow.v2.SuggestionFeature.getDefaultInstance() - : suggestionFeature_; + return suggestionFeature_ == null ? com.google.cloud.dialogflow.v2.SuggestionFeature.getDefaultInstance() : suggestionFeature_; } else { return suggestionFeatureBuilder_.getMessage(); } } /** - * - * *
        * The suggestion feature.
        * 
@@ -2005,8 +1663,6 @@ public Builder setSuggestionFeature(com.google.cloud.dialogflow.v2.SuggestionFea return this; } /** - * - * *
        * The suggestion feature.
        * 
@@ -2025,22 +1681,17 @@ public Builder setSuggestionFeature( return this; } /** - * - * *
        * The suggestion feature.
        * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; */ - public Builder mergeSuggestionFeature( - com.google.cloud.dialogflow.v2.SuggestionFeature value) { + public Builder mergeSuggestionFeature(com.google.cloud.dialogflow.v2.SuggestionFeature value) { if (suggestionFeatureBuilder_ == null) { if (suggestionFeature_ != null) { suggestionFeature_ = - com.google.cloud.dialogflow.v2.SuggestionFeature.newBuilder(suggestionFeature_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.SuggestionFeature.newBuilder(suggestionFeature_).mergeFrom(value).buildPartial(); } else { suggestionFeature_ = value; } @@ -2052,8 +1703,6 @@ public Builder mergeSuggestionFeature( return this; } /** - * - * *
        * The suggestion feature.
        * 
@@ -2072,42 +1721,33 @@ public Builder clearSuggestionFeature() { return this; } /** - * - * *
        * The suggestion feature.
        * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; */ - public com.google.cloud.dialogflow.v2.SuggestionFeature.Builder - getSuggestionFeatureBuilder() { - + public com.google.cloud.dialogflow.v2.SuggestionFeature.Builder getSuggestionFeatureBuilder() { + onChanged(); return getSuggestionFeatureFieldBuilder().getBuilder(); } /** - * - * *
        * The suggestion feature.
        * 
* * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; */ - public com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder - getSuggestionFeatureOrBuilder() { + public com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder getSuggestionFeatureOrBuilder() { if (suggestionFeatureBuilder_ != null) { return suggestionFeatureBuilder_.getMessageOrBuilder(); } else { - return suggestionFeature_ == null - ? com.google.cloud.dialogflow.v2.SuggestionFeature.getDefaultInstance() - : suggestionFeature_; + return suggestionFeature_ == null ? + com.google.cloud.dialogflow.v2.SuggestionFeature.getDefaultInstance() : suggestionFeature_; } } /** - * - * *
        * The suggestion feature.
        * 
@@ -2115,26 +1755,21 @@ public Builder clearSuggestionFeature() { * .google.cloud.dialogflow.v2.SuggestionFeature suggestion_feature = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionFeature, - com.google.cloud.dialogflow.v2.SuggestionFeature.Builder, - com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder> + com.google.cloud.dialogflow.v2.SuggestionFeature, com.google.cloud.dialogflow.v2.SuggestionFeature.Builder, com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder> getSuggestionFeatureFieldBuilder() { if (suggestionFeatureBuilder_ == null) { - suggestionFeatureBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionFeature, - com.google.cloud.dialogflow.v2.SuggestionFeature.Builder, - com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder>( - getSuggestionFeature(), getParentForChildren(), isClean()); + suggestionFeatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.SuggestionFeature, com.google.cloud.dialogflow.v2.SuggestionFeature.Builder, com.google.cloud.dialogflow.v2.SuggestionFeatureOrBuilder>( + getSuggestionFeature(), + getParentForChildren(), + isClean()); suggestionFeature_ = null; } return suggestionFeatureBuilder_; } - private boolean enableEventBasedSuggestion_; + private boolean enableEventBasedSuggestion_ ; /** - * - * *
        * Automatically iterates all participants and tries to compile
        * suggestions.
@@ -2142,7 +1777,6 @@ public Builder clearSuggestionFeature() {
        * 
* * bool enable_event_based_suggestion = 3; - * * @return The enableEventBasedSuggestion. */ @java.lang.Override @@ -2150,8 +1784,6 @@ public boolean getEnableEventBasedSuggestion() { return enableEventBasedSuggestion_; } /** - * - * *
        * Automatically iterates all participants and tries to compile
        * suggestions.
@@ -2159,19 +1791,16 @@ public boolean getEnableEventBasedSuggestion() {
        * 
* * bool enable_event_based_suggestion = 3; - * * @param value The enableEventBasedSuggestion to set. * @return This builder for chaining. */ public Builder setEnableEventBasedSuggestion(boolean value) { - + enableEventBasedSuggestion_ = value; onChanged(); return this; } /** - * - * *
        * Automatically iterates all participants and tries to compile
        * suggestions.
@@ -2179,82 +1808,55 @@ public Builder setEnableEventBasedSuggestion(boolean value) {
        * 
* * bool enable_event_based_suggestion = 3; - * * @return This builder for chaining. */ public Builder clearEnableEventBasedSuggestion() { - + enableEventBasedSuggestion_ = false; onChanged(); return this; } - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - suggestionTriggerSettings_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder> - suggestionTriggerSettingsBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder> suggestionTriggerSettingsBuilder_; /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; * @return Whether the suggestionTriggerSettings field is set. */ public boolean hasSuggestionTriggerSettings() { return suggestionTriggerSettingsBuilder_ != null || suggestionTriggerSettings_ != null; } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; * @return The suggestionTriggerSettings. */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - getSuggestionTriggerSettings() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings getSuggestionTriggerSettings() { if (suggestionTriggerSettingsBuilder_ == null) { - return suggestionTriggerSettings_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .getDefaultInstance() - : suggestionTriggerSettings_; + return suggestionTriggerSettings_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.getDefaultInstance() : suggestionTriggerSettings_; } else { return suggestionTriggerSettingsBuilder_.getMessage(); } } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ - public Builder setSuggestionTriggerSettings( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - value) { + public Builder setSuggestionTriggerSettings(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings value) { if (suggestionTriggerSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2268,20 +1870,15 @@ public Builder setSuggestionTriggerSettings( return this; } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ public Builder setSuggestionTriggerSettings( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder builderForValue) { if (suggestionTriggerSettingsBuilder_ == null) { suggestionTriggerSettings_ = builderForValue.build(); onChanged(); @@ -2292,27 +1889,18 @@ public Builder setSuggestionTriggerSettings( return this; } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ - public Builder mergeSuggestionTriggerSettings( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - value) { + public Builder mergeSuggestionTriggerSettings(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings value) { if (suggestionTriggerSettingsBuilder_ == null) { if (suggestionTriggerSettings_ != null) { suggestionTriggerSettings_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .newBuilder(suggestionTriggerSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.newBuilder(suggestionTriggerSettings_).mergeFrom(value).buildPartial(); } else { suggestionTriggerSettings_ = value; } @@ -2324,16 +1912,12 @@ public Builder mergeSuggestionTriggerSettings( return this; } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ public Builder clearSuggestionTriggerSettings() { if (suggestionTriggerSettingsBuilder_ == null) { @@ -2347,144 +1931,93 @@ public Builder clearSuggestionTriggerSettings() { return this; } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .Builder - getSuggestionTriggerSettingsBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder getSuggestionTriggerSettingsBuilder() { + onChanged(); return getSuggestionTriggerSettingsFieldBuilder().getBuilder(); } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder - getSuggestionTriggerSettingsOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder getSuggestionTriggerSettingsOrBuilder() { if (suggestionTriggerSettingsBuilder_ != null) { return suggestionTriggerSettingsBuilder_.getMessageOrBuilder(); } else { - return suggestionTriggerSettings_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .getDefaultInstance() - : suggestionTriggerSettings_; + return suggestionTriggerSettings_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.getDefaultInstance() : suggestionTriggerSettings_; } } /** - * - * *
        * Settings of suggestion trigger.
        * Currently, only ARTICLE_SUGGESTION and FAQ will use this field.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder> getSuggestionTriggerSettingsFieldBuilder() { if (suggestionTriggerSettingsBuilder_ == null) { - suggestionTriggerSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettings, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder>( - getSuggestionTriggerSettings(), getParentForChildren(), isClean()); + suggestionTriggerSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettingsOrBuilder>( + getSuggestionTriggerSettings(), + getParentForChildren(), + isClean()); suggestionTriggerSettings_ = null; } return suggestionTriggerSettingsBuilder_; } - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - queryConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig queryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfigOrBuilder> - queryConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder> queryConfigBuilder_; /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; * @return Whether the queryConfig field is set. */ public boolean hasQueryConfig() { return queryConfigBuilder_ != null || queryConfig_ != null; } /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; * @return The queryConfig. */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - getQueryConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig getQueryConfig() { if (queryConfigBuilder_ == null) { - return queryConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .getDefaultInstance() - : queryConfig_; + return queryConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.getDefaultInstance() : queryConfig_; } else { return queryConfigBuilder_.getMessage(); } } /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ - public Builder setQueryConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig value) { + public Builder setQueryConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig value) { if (queryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2498,19 +2031,14 @@ public Builder setQueryConfig( return this; } /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ public Builder setQueryConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder builderForValue) { if (queryConfigBuilder_ == null) { queryConfig_ = builderForValue.build(); onChanged(); @@ -2521,25 +2049,17 @@ public Builder setQueryConfig( return this; } /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ - public Builder mergeQueryConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig value) { + public Builder mergeQueryConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig value) { if (queryConfigBuilder_ == null) { if (queryConfig_ != null) { queryConfig_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .newBuilder(queryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.newBuilder(queryConfig_).mergeFrom(value).buildPartial(); } else { queryConfig_ = value; } @@ -2551,15 +2071,11 @@ public Builder mergeQueryConfig( return this; } /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ public Builder clearQueryConfig() { if (queryConfigBuilder_ == null) { @@ -2572,139 +2088,91 @@ public Builder clearQueryConfig() { return this; } - /** - * - * + /** *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder - getQueryConfigBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder getQueryConfigBuilder() { + onChanged(); return getQueryConfigFieldBuilder().getBuilder(); } /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder - getQueryConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder getQueryConfigOrBuilder() { if (queryConfigBuilder_ != null) { return queryConfigBuilder_.getMessageOrBuilder(); } else { - return queryConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .getDefaultInstance() - : queryConfig_; + return queryConfig_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.getDefaultInstance() : queryConfig_; } } /** - * - * *
        * Configs of query.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig query_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder> getQueryConfigFieldBuilder() { if (queryConfigBuilder_ == null) { - queryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfigOrBuilder>( - getQueryConfig(), getParentForChildren(), isClean()); + queryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder>( + getQueryConfig(), + getParentForChildren(), + isClean()); queryConfig_ = null; } return queryConfigBuilder_; } - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - conversationModelConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversationModelConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder> - conversationModelConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder> conversationModelConfigBuilder_; /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; * @return Whether the conversationModelConfig field is set. */ public boolean hasConversationModelConfig() { return conversationModelConfigBuilder_ != null || conversationModelConfig_ != null; } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; * @return The conversationModelConfig. */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig getConversationModelConfig() { if (conversationModelConfigBuilder_ == null) { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance() - : conversationModelConfig_; + return conversationModelConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.getDefaultInstance() : conversationModelConfig_; } else { return conversationModelConfigBuilder_.getMessage(); } } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ - public Builder setConversationModelConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig value) { + public Builder setConversationModelConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig value) { if (conversationModelConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2718,19 +2186,14 @@ public Builder setConversationModelConfig( return this; } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ public Builder setConversationModelConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder builderForValue) { if (conversationModelConfigBuilder_ == null) { conversationModelConfig_ = builderForValue.build(); onChanged(); @@ -2741,25 +2204,17 @@ public Builder setConversationModelConfig( return this; } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ - public Builder mergeConversationModelConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig value) { + public Builder mergeConversationModelConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig value) { if (conversationModelConfigBuilder_ == null) { if (conversationModelConfig_ != null) { conversationModelConfig_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .newBuilder(conversationModelConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.newBuilder(conversationModelConfig_).mergeFrom(value).buildPartial(); } else { conversationModelConfig_ = value; } @@ -2771,15 +2226,11 @@ public Builder mergeConversationModelConfig( return this; } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ public Builder clearConversationModelConfig() { if (conversationModelConfigBuilder_ == null) { @@ -2793,78 +2244,52 @@ public Builder clearConversationModelConfig() { return this; } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .Builder - getConversationModelConfigBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder getConversationModelConfigBuilder() { + onChanged(); return getConversationModelConfigFieldBuilder().getBuilder(); } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder getConversationModelConfigOrBuilder() { if (conversationModelConfigBuilder_ != null) { return conversationModelConfigBuilder_.getMessageOrBuilder(); } else { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance() - : conversationModelConfig_; + return conversationModelConfig_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.getDefaultInstance() : conversationModelConfig_; } } /** - * - * *
        * Configs of custom conversation model.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder> getConversationModelConfigFieldBuilder() { if (conversationModelConfigBuilder_ == null) { - conversationModelConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder>( - getConversationModelConfig(), getParentForChildren(), isClean()); + conversationModelConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder>( + getConversationModelConfig(), + getParentForChildren(), + isClean()); conversationModelConfig_ = null; } return conversationModelConfigBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2877,34 +2302,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestionFeatureConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SuggestionFeatureConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionFeatureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SuggestionFeatureConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2916,93 +2337,66 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SuggestionConfigOrBuilder - extends + public interface SuggestionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - java.util.List + java.util.List getFeatureConfigsList(); /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - getFeatureConfigs(int index); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig getFeatureConfigs(int index); /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ int getFeatureConfigsCount(); /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - java.util.List< - ? extends - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfigOrBuilder> + java.util.List getFeatureConfigsOrBuilderList(); /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder - getFeatureConfigsOrBuilder(int index); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder getFeatureConfigsOrBuilder( + int index); /** - * - * *
      * If `group_suggestion_responses` is false, and there are multiple
      * `feature_configs` in `event based suggestion` or
@@ -3016,45 +2410,42 @@ public interface SuggestionConfigOrBuilder
      * 
* * bool group_suggestion_responses = 3; - * * @return The groupSuggestionResponses. */ boolean getGroupSuggestionResponses(); } /** - * - * *
    * Detail human agent assistant config.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig} */ - public static final class SuggestionConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SuggestionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) SuggestionConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuggestionConfig.newBuilder() to construct. private SuggestionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SuggestionConfig() { featureConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SuggestionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SuggestionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3074,40 +2465,34 @@ private SuggestionConfig( case 0: done = true; break; - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - featureConfigs_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfig>(); - mutable_bitField0_ |= 0x00000001; - } - featureConfigs_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfig.parser(), - extensionRegistry)); - break; - } - case 24: - { - groupSuggestionResponses_ = input.readBool(); - break; + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + featureConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + featureConfigs_.add( + input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.parser(), extensionRegistry)); + break; + } + case 24: { + + groupSuggestionResponses_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { featureConfigs_ = java.util.Collections.unmodifiableList(featureConfigs_); @@ -3116,121 +2501,87 @@ private SuggestionConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - .class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder.class); } public static final int FEATURE_CONFIGS_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig> - featureConfigs_; + private java.util.List featureConfigs_; /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ @java.lang.Override - public java.util.List< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig> - getFeatureConfigsList() { + public java.util.List getFeatureConfigsList() { return featureConfigs_; } /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfigOrBuilder> + public java.util.List getFeatureConfigsOrBuilderList() { return featureConfigs_; } /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ @java.lang.Override public int getFeatureConfigsCount() { return featureConfigs_.size(); } /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - getFeatureConfigs(int index) { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig getFeatureConfigs(int index) { return featureConfigs_.get(index); } /** - * - * *
      * Configuration of different suggestion features. One feature can have only
      * one config.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder - getFeatureConfigsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder getFeatureConfigsOrBuilder( + int index) { return featureConfigs_.get(index); } public static final int GROUP_SUGGESTION_RESPONSES_FIELD_NUMBER = 3; private boolean groupSuggestionResponses_; /** - * - * *
      * If `group_suggestion_responses` is false, and there are multiple
      * `feature_configs` in `event based suggestion` or
@@ -3244,7 +2595,6 @@ public int getFeatureConfigsCount() {
      * 
* * bool group_suggestion_responses = 3; - * * @return The groupSuggestionResponses. */ @java.lang.Override @@ -3253,7 +2603,6 @@ public boolean getGroupSuggestionResponses() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3265,7 +2614,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < featureConfigs_.size(); i++) { output.writeMessage(2, featureConfigs_.get(i)); } @@ -3282,10 +2632,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < featureConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, featureConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, featureConfigs_.get(i)); } if (groupSuggestionResponses_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, groupSuggestionResponses_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, groupSuggestionResponses_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3295,17 +2647,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) obj; - if (!getFeatureConfigsList().equals(other.getFeatureConfigsList())) return false; - if (getGroupSuggestionResponses() != other.getGroupSuggestionResponses()) return false; + if (!getFeatureConfigsList() + .equals(other.getFeatureConfigsList())) return false; + if (getGroupSuggestionResponses() + != other.getGroupSuggestionResponses()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3322,107 +2674,95 @@ public int hashCode() { hash = (53 * hash) + getFeatureConfigsList().hashCode(); } hash = (37 * hash) + GROUP_SUGGESTION_RESPONSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGroupSuggestionResponses()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGroupSuggestionResponses()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3432,52 +2772,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Detail human agent assistant config.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - .class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFeatureConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3493,22 +2826,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionConfig_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig result = - buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3516,10 +2846,8 @@ public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig(this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig(this); int from_bitField0_ = bitField0_; if (featureConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -3539,54 +2867,46 @@ public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance()) return this; if (featureConfigsBuilder_ == null) { if (!other.featureConfigs_.isEmpty()) { if (featureConfigs_.isEmpty()) { @@ -3605,10 +2925,9 @@ public Builder mergeFrom( featureConfigsBuilder_ = null; featureConfigs_ = other.featureConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - featureConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeatureConfigsFieldBuilder() - : null; + featureConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeatureConfigsFieldBuilder() : null; } else { featureConfigsBuilder_.addAllMessages(other.featureConfigs_); } @@ -3632,14 +2951,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parsedMessage = - null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3648,46 +2964,29 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig> - featureConfigs_ = java.util.Collections.emptyList(); - + private java.util.List featureConfigs_ = + java.util.Collections.emptyList(); private void ensureFeatureConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - featureConfigs_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig>( - featureConfigs_); + featureConfigs_ = new java.util.ArrayList(featureConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfigOrBuilder> - featureConfigsBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder> featureConfigsBuilder_; /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public java.util.List< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig> - getFeatureConfigsList() { + public java.util.List getFeatureConfigsList() { if (featureConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(featureConfigs_); } else { @@ -3695,16 +2994,12 @@ private void ensureFeatureConfigsIsMutable() { } } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public int getFeatureConfigsCount() { if (featureConfigsBuilder_ == null) { @@ -3714,19 +3009,14 @@ public int getFeatureConfigsCount() { } } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - getFeatureConfigs(int index) { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig getFeatureConfigs(int index) { if (featureConfigsBuilder_ == null) { return featureConfigs_.get(index); } else { @@ -3734,20 +3024,15 @@ public int getFeatureConfigsCount() { } } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder setFeatureConfigs( - int index, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig value) { + int index, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig value) { if (featureConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3761,21 +3046,15 @@ public Builder setFeatureConfigs( return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder setFeatureConfigs( - int index, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder - builderForValue) { + int index, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue) { if (featureConfigsBuilder_ == null) { ensureFeatureConfigsIsMutable(); featureConfigs_.set(index, builderForValue.build()); @@ -3786,19 +3065,14 @@ public Builder setFeatureConfigs( return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public Builder addFeatureConfigs( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig value) { + public Builder addFeatureConfigs(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig value) { if (featureConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3812,20 +3086,15 @@ public Builder addFeatureConfigs( return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder addFeatureConfigs( - int index, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig value) { + int index, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig value) { if (featureConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3839,20 +3108,15 @@ public Builder addFeatureConfigs( return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder addFeatureConfigs( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue) { if (featureConfigsBuilder_ == null) { ensureFeatureConfigsIsMutable(); featureConfigs_.add(builderForValue.build()); @@ -3863,21 +3127,15 @@ public Builder addFeatureConfigs( return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder addFeatureConfigs( - int index, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder - builderForValue) { + int index, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder builderForValue) { if (featureConfigsBuilder_ == null) { ensureFeatureConfigsIsMutable(); featureConfigs_.add(index, builderForValue.build()); @@ -3888,26 +3146,19 @@ public Builder addFeatureConfigs( return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder addAllFeatureConfigs( - java.lang.Iterable< - ? extends - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfig> - values) { + java.lang.Iterable values) { if (featureConfigsBuilder_ == null) { ensureFeatureConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, featureConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, featureConfigs_); onChanged(); } else { featureConfigsBuilder_.addAllMessages(values); @@ -3915,16 +3166,12 @@ public Builder addAllFeatureConfigs( return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder clearFeatureConfigs() { if (featureConfigsBuilder_ == null) { @@ -3937,16 +3184,12 @@ public Builder clearFeatureConfigs() { return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ public Builder removeFeatureConfigs(int index) { if (featureConfigsBuilder_ == null) { @@ -3959,60 +3202,42 @@ public Builder removeFeatureConfigs(int index) { return this; } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder - getFeatureConfigsBuilder(int index) { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder getFeatureConfigsBuilder( + int index) { return getFeatureConfigsFieldBuilder().getBuilder(index); } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfigOrBuilder - getFeatureConfigsOrBuilder(int index) { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder getFeatureConfigsOrBuilder( + int index) { if (featureConfigsBuilder_ == null) { - return featureConfigs_.get(index); - } else { + return featureConfigs_.get(index); } else { return featureConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfigOrBuilder> - getFeatureConfigsOrBuilderList() { + public java.util.List + getFeatureConfigsOrBuilderList() { if (featureConfigsBuilder_ != null) { return featureConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -4020,80 +3245,48 @@ public Builder removeFeatureConfigs(int index) { } } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder - addFeatureConfigsBuilder() { - return getFeatureConfigsFieldBuilder() - .addBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .getDefaultInstance()); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder addFeatureConfigsBuilder() { + return getFeatureConfigsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.getDefaultInstance()); } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder - addFeatureConfigsBuilder(int index) { - return getFeatureConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .getDefaultInstance()); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder addFeatureConfigsBuilder( + int index) { + return getFeatureConfigsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.getDefaultInstance()); } /** - * - * *
        * Configuration of different suggestion features. One feature can have only
        * one config.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; - * + * repeated .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig feature_configs = 2; */ - public java.util.List< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder> - getFeatureConfigsBuilderList() { + public java.util.List + getFeatureConfigsBuilderList() { return getFeatureConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder> getFeatureConfigsFieldBuilder() { if (featureConfigsBuilder_ == null) { - featureConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionFeatureConfigOrBuilder>( + featureConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfigOrBuilder>( featureConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4103,10 +3296,8 @@ public Builder removeFeatureConfigs(int index) { return featureConfigsBuilder_; } - private boolean groupSuggestionResponses_; + private boolean groupSuggestionResponses_ ; /** - * - * *
        * If `group_suggestion_responses` is false, and there are multiple
        * `feature_configs` in `event based suggestion` or
@@ -4120,7 +3311,6 @@ public Builder removeFeatureConfigs(int index) {
        * 
* * bool group_suggestion_responses = 3; - * * @return The groupSuggestionResponses. */ @java.lang.Override @@ -4128,8 +3318,6 @@ public boolean getGroupSuggestionResponses() { return groupSuggestionResponses_; } /** - * - * *
        * If `group_suggestion_responses` is false, and there are multiple
        * `feature_configs` in `event based suggestion` or
@@ -4143,19 +3331,16 @@ public boolean getGroupSuggestionResponses() {
        * 
* * bool group_suggestion_responses = 3; - * * @param value The groupSuggestionResponses to set. * @return This builder for chaining. */ public Builder setGroupSuggestionResponses(boolean value) { - + groupSuggestionResponses_ = value; onChanged(); return this; } /** - * - * *
        * If `group_suggestion_responses` is false, and there are multiple
        * `feature_configs` in `event based suggestion` or
@@ -4169,16 +3354,14 @@ public Builder setGroupSuggestionResponses(boolean value) {
        * 
* * bool group_suggestion_responses = 3; - * * @return This builder for chaining. */ public Builder clearGroupSuggestionResponses() { - + groupSuggestionResponses_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4191,33 +3374,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SuggestionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SuggestionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4229,175 +3409,115 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SuggestionQueryConfigOrBuilder - extends + public interface SuggestionQueryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Query from knowledgebase. It is used by:
      * ARTICLE_SUGGESTION, FAQ.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; * @return Whether the knowledgeBaseQuerySource field is set. */ boolean hasKnowledgeBaseQuerySource(); /** - * - * *
      * Query from knowledgebase. It is used by:
      * ARTICLE_SUGGESTION, FAQ.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; * @return The knowledgeBaseQuerySource. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - getKnowledgeBaseQuerySource(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource getKnowledgeBaseQuerySource(); /** - * - * *
      * Query from knowledgebase. It is used by:
      * ARTICLE_SUGGESTION, FAQ.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySourceOrBuilder - getKnowledgeBaseQuerySourceOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder getKnowledgeBaseQuerySourceOrBuilder(); /** - * - * *
      * Query from knowledge base document. It is used by:
      * SMART_REPLY, SMART_COMPOSE.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; * @return Whether the documentQuerySource field is set. */ boolean hasDocumentQuerySource(); /** - * - * *
      * Query from knowledge base document. It is used by:
      * SMART_REPLY, SMART_COMPOSE.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; * @return The documentQuerySource. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - getDocumentQuerySource(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDocumentQuerySource(); /** - * - * *
      * Query from knowledge base document. It is used by:
      * SMART_REPLY, SMART_COMPOSE.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySourceOrBuilder - getDocumentQuerySourceOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder getDocumentQuerySourceOrBuilder(); /** - * - * *
      * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; * @return Whether the dialogflowQuerySource field is set. */ boolean hasDialogflowQuerySource(); /** - * - * *
      * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; * @return The dialogflowQuerySource. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - getDialogflowQuerySource(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource getDialogflowQuerySource(); /** - * - * *
      * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySourceOrBuilder - getDialogflowQuerySourceOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder getDialogflowQuerySourceOrBuilder(); /** - * - * *
      * Maximum number of results to return. Currently, if unset, defaults to 10.
      * And the max number is 20.
      * 
* * int32 max_results = 4; - * * @return The maxResults. */ int getMaxResults(); /** - * - * *
      * Confidence threshold of query result.
      * Agent Assist gives each suggestion a score in the range [0.0, 1.0], based
@@ -4416,96 +3536,73 @@ public interface SuggestionQueryConfigOrBuilder
      * 
* * float confidence_threshold = 5; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
      * Determines how recent conversation context is filtered when generating
      * suggestions. If unspecified, no messages will be dropped.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; * @return Whether the contextFilterSettings field is set. */ boolean hasContextFilterSettings(); /** - * - * *
      * Determines how recent conversation context is filtered when generating
      * suggestions. If unspecified, no messages will be dropped.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; * @return The contextFilterSettings. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - getContextFilterSettings(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings getContextFilterSettings(); /** - * - * *
      * Determines how recent conversation context is filtered when generating
      * suggestions. If unspecified, no messages will be dropped.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettingsOrBuilder - getContextFilterSettingsOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder getContextFilterSettingsOrBuilder(); - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .QuerySourceCase - getQuerySourceCase(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.QuerySourceCase getQuerySourceCase(); } /** - * - * *
    * Config for suggestion query.
    * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig} */ - public static final class SuggestionQueryConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SuggestionQueryConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) SuggestionQueryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuggestionQueryConfig.newBuilder() to construct. private SuggestionQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SuggestionQueryConfig() {} + private SuggestionQueryConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SuggestionQueryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SuggestionQueryConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4524,160 +3621,108 @@ private SuggestionQueryConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder - subBuilder = null; - if (querySourceCase_ == 1) { - subBuilder = - ((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.KnowledgeBaseQuerySource) - querySource_) - .toBuilder(); - } - querySource_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.KnowledgeBaseQuerySource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.KnowledgeBaseQuerySource) - querySource_); - querySource_ = subBuilder.buildPartial(); - } - querySourceCase_ = 1; - break; + case 10: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder subBuilder = null; + if (querySourceCase_ == 1) { + subBuilder = ((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_).toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder - subBuilder = null; - if (querySourceCase_ == 2) { - subBuilder = - ((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DocumentQuerySource) - querySource_) - .toBuilder(); - } - querySource_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DocumentQuerySource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DocumentQuerySource) - querySource_); - querySource_ = subBuilder.buildPartial(); - } - querySourceCase_ = 2; - break; + querySource_ = + input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_); + querySource_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder - subBuilder = null; - if (querySourceCase_ == 3) { - subBuilder = - ((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DialogflowQuerySource) - querySource_) - .toBuilder(); - } - querySource_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DialogflowQuerySource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DialogflowQuerySource) - querySource_); - querySource_ = subBuilder.buildPartial(); - } - querySourceCase_ = 3; - break; + querySourceCase_ = 1; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder subBuilder = null; + if (querySourceCase_ == 2) { + subBuilder = ((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_).toBuilder(); } - case 32: - { - maxResults_ = input.readInt32(); - break; + querySource_ = + input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_); + querySource_ = subBuilder.buildPartial(); } - case 45: - { - confidenceThreshold_ = input.readFloat(); - break; + querySourceCase_ = 2; + break; + } + case 26: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder subBuilder = null; + if (querySourceCase_ == 3) { + subBuilder = ((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_).toBuilder(); } - case 58: - { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder - subBuilder = null; - if (contextFilterSettings_ != null) { - subBuilder = contextFilterSettings_.toBuilder(); - } - contextFilterSettings_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.ContextFilterSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contextFilterSettings_); - contextFilterSettings_ = subBuilder.buildPartial(); - } + querySource_ = + input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_); + querySource_ = subBuilder.buildPartial(); + } + querySourceCase_ = 3; + break; + } + case 32: { - break; + maxResults_ = input.readInt32(); + break; + } + case 45: { + + confidenceThreshold_ = input.readFloat(); + break; + } + case 58: { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder subBuilder = null; + if (contextFilterSettings_ != null) { + subBuilder = contextFilterSettings_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + contextFilterSettings_ = input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contextFilterSettings_); + contextFilterSettings_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder - .class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder.class); } - public interface KnowledgeBaseQuerySourceOrBuilder - extends + public interface KnowledgeBaseQuerySourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4685,16 +3730,12 @@ public interface KnowledgeBaseQuerySourceOrBuilder
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the knowledgeBases. */ - java.util.List getKnowledgeBasesList(); + java.util.List + getKnowledgeBasesList(); /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4702,16 +3743,11 @@ public interface KnowledgeBaseQuerySourceOrBuilder
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of knowledgeBases. */ int getKnowledgeBasesCount(); /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4719,17 +3755,12 @@ public interface KnowledgeBaseQuerySourceOrBuilder
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The knowledgeBases at the given index. */ java.lang.String getKnowledgeBases(int index); /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4737,52 +3768,46 @@ public interface KnowledgeBaseQuerySourceOrBuilder
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the knowledgeBases at the given index. */ - com.google.protobuf.ByteString getKnowledgeBasesBytes(int index); + com.google.protobuf.ByteString + getKnowledgeBasesBytes(int index); } /** - * - * *
      * Knowledge base source settings.
      * Supported features: ARTICLE_SUGGESTION, FAQ.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource} */ - public static final class KnowledgeBaseQuerySource - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class KnowledgeBaseQuerySource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) KnowledgeBaseQuerySourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use KnowledgeBaseQuerySource.newBuilder() to construct. private KnowledgeBaseQuerySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private KnowledgeBaseQuerySource() { knowledgeBases_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new KnowledgeBaseQuerySource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private KnowledgeBaseQuerySource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4802,30 +3827,29 @@ private KnowledgeBaseQuerySource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - knowledgeBases_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - knowledgeBases_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + knowledgeBases_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + knowledgeBases_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { knowledgeBases_ = knowledgeBases_.getUnmodifiableView(); @@ -4834,29 +3858,22 @@ private KnowledgeBaseQuerySource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder.class); } public static final int KNOWLEDGE_BASES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList knowledgeBases_; /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4864,18 +3881,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the knowledgeBases. */ - public com.google.protobuf.ProtocolStringList getKnowledgeBasesList() { + public com.google.protobuf.ProtocolStringList + getKnowledgeBasesList() { return knowledgeBases_; } /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4883,18 +3896,13 @@ public com.google.protobuf.ProtocolStringList getKnowledgeBasesList() {
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of knowledgeBases. */ public int getKnowledgeBasesCount() { return knowledgeBases_.size(); } /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4902,10 +3910,7 @@ public int getKnowledgeBasesCount() {
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The knowledgeBases at the given index. */ @@ -4913,8 +3918,6 @@ public java.lang.String getKnowledgeBases(int index) { return knowledgeBases_.get(index); } /** - * - * *
        * Required. Knowledge bases to query. Format:
        * `projects/<Project ID>/locations/<Location
@@ -4922,19 +3925,16 @@ public java.lang.String getKnowledgeBases(int index) {
        * bases are supported.
        * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the knowledgeBases at the given index. */ - public com.google.protobuf.ByteString getKnowledgeBasesBytes(int index) { + public com.google.protobuf.ByteString + getKnowledgeBasesBytes(int index) { return knowledgeBases_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4946,7 +3946,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < knowledgeBases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, knowledgeBases_.getRaw(i)); } @@ -4975,22 +3976,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) obj; - if (!getKnowledgeBasesList().equals(other.getKnowledgeBasesList())) return false; + if (!getKnowledgeBasesList() + .equals(other.getKnowledgeBasesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5011,117 +4005,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5131,54 +4096,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Knowledge base source settings.
        * Supported features: ARTICLE_SUGGESTION, FAQ.
        * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5188,26 +4144,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_KnowledgeBaseQuerySource_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - result = buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5215,14 +4164,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource(this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { knowledgeBases_ = knowledgeBases_.getUnmodifiableView(); @@ -5237,60 +4180,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance()) return this; if (!other.knowledgeBases_.isEmpty()) { if (knowledgeBases_.isEmpty()) { knowledgeBases_ = other.knowledgeBases_; @@ -5316,16 +4245,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5334,21 +4258,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList knowledgeBases_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList knowledgeBases_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKnowledgeBasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { knowledgeBases_ = new com.google.protobuf.LazyStringArrayList(knowledgeBases_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5356,18 +4275,14 @@ private void ensureKnowledgeBasesIsMutable() {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the knowledgeBases. */ - public com.google.protobuf.ProtocolStringList getKnowledgeBasesList() { + public com.google.protobuf.ProtocolStringList + getKnowledgeBasesList() { return knowledgeBases_.getUnmodifiableView(); } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5375,18 +4290,13 @@ public com.google.protobuf.ProtocolStringList getKnowledgeBasesList() {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of knowledgeBases. */ public int getKnowledgeBasesCount() { return knowledgeBases_.size(); } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5394,10 +4304,7 @@ public int getKnowledgeBasesCount() {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The knowledgeBases at the given index. */ @@ -5405,8 +4312,6 @@ public java.lang.String getKnowledgeBases(int index) { return knowledgeBases_.get(index); } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5414,19 +4319,15 @@ public java.lang.String getKnowledgeBases(int index) {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the knowledgeBases at the given index. */ - public com.google.protobuf.ByteString getKnowledgeBasesBytes(int index) { + public com.google.protobuf.ByteString + getKnowledgeBasesBytes(int index) { return knowledgeBases_.getByteString(index); } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5434,26 +4335,22 @@ public com.google.protobuf.ByteString getKnowledgeBasesBytes(int index) {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The knowledgeBases to set. * @return This builder for chaining. */ - public Builder setKnowledgeBases(int index, java.lang.String value) { + public Builder setKnowledgeBases( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKnowledgeBasesIsMutable(); + throw new NullPointerException(); + } + ensureKnowledgeBasesIsMutable(); knowledgeBases_.set(index, value); onChanged(); return this; } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5461,25 +4358,21 @@ public Builder setKnowledgeBases(int index, java.lang.String value) {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The knowledgeBases to add. * @return This builder for chaining. */ - public Builder addKnowledgeBases(java.lang.String value) { + public Builder addKnowledgeBases( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKnowledgeBasesIsMutable(); + throw new NullPointerException(); + } + ensureKnowledgeBasesIsMutable(); knowledgeBases_.add(value); onChanged(); return this; } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5487,22 +4380,19 @@ public Builder addKnowledgeBases(java.lang.String value) {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param values The knowledgeBases to add. * @return This builder for chaining. */ - public Builder addAllKnowledgeBases(java.lang.Iterable values) { + public Builder addAllKnowledgeBases( + java.lang.Iterable values) { ensureKnowledgeBasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, knowledgeBases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, knowledgeBases_); onChanged(); return this; } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5510,10 +4400,7 @@ public Builder addAllKnowledgeBases(java.lang.Iterable values)
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKnowledgeBases() { @@ -5523,8 +4410,6 @@ public Builder clearKnowledgeBases() { return this; } /** - * - * *
          * Required. Knowledge bases to query. Format:
          * `projects/<Project ID>/locations/<Location
@@ -5532,24 +4417,21 @@ public Builder clearKnowledgeBases() {
          * bases are supported.
          * 
* - * - * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string knowledge_bases = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes of the knowledgeBases to add. * @return This builder for chaining. */ - public Builder addKnowledgeBasesBytes(com.google.protobuf.ByteString value) { + public Builder addKnowledgeBasesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureKnowledgeBasesIsMutable(); knowledgeBases_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5562,36 +4444,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.KnowledgeBaseQuerySource - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KnowledgeBaseQuerySource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KnowledgeBaseQuerySource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeBaseQuerySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KnowledgeBaseQuerySource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5603,21 +4479,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DocumentQuerySourceOrBuilder - extends + public interface DocumentQuerySourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5625,16 +4497,12 @@ public interface DocumentQuerySourceOrBuilder
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the documents. */ - java.util.List getDocumentsList(); + java.util.List + getDocumentsList(); /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5642,16 +4510,11 @@ public interface DocumentQuerySourceOrBuilder
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of documents. */ int getDocumentsCount(); /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5659,17 +4522,12 @@ public interface DocumentQuerySourceOrBuilder
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The documents at the given index. */ java.lang.String getDocuments(int index); /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5677,51 +4535,46 @@ public interface DocumentQuerySourceOrBuilder
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - com.google.protobuf.ByteString getDocumentsBytes(int index); + com.google.protobuf.ByteString + getDocumentsBytes(int index); } /** - * - * *
      * Document source settings.
      * Supported features: SMART_REPLY, SMART_COMPOSE.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource} */ - public static final class DocumentQuerySource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DocumentQuerySource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) DocumentQuerySourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DocumentQuerySource.newBuilder() to construct. private DocumentQuerySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DocumentQuerySource() { documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DocumentQuerySource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DocumentQuerySource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5741,30 +4594,29 @@ private DocumentQuerySource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - documents_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - documents_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + documents_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + documents_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { documents_ = documents_.getUnmodifiableView(); @@ -5773,29 +4625,22 @@ private DocumentQuerySource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder.class); } public static final int DOCUMENTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList documents_; /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5803,18 +4648,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { return documents_; } /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5822,18 +4663,13 @@ public com.google.protobuf.ProtocolStringList getDocumentsList() {
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5841,10 +4677,7 @@ public int getDocumentsCount() {
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The documents at the given index. */ @@ -5852,8 +4685,6 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
        * Required. Knowledge documents to query from. Format:
        * `projects/<Project ID>/locations/<Location
@@ -5861,19 +4692,16 @@ public java.lang.String getDocuments(int index) {
        * Currently, at most 5 documents are supported.
        * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5885,7 +4713,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < documents_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, documents_.getRaw(i)); } @@ -5914,22 +4743,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) obj; - if (!getDocumentsList().equals(other.getDocumentsList())) return false; + if (!getDocumentsList() + .equals(other.getDocumentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5950,117 +4772,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6070,54 +4863,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Document source settings.
        * Supported features: SMART_REPLY, SMART_COMPOSE.
        * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6127,26 +4911,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DocumentQuerySource_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - result = buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6154,14 +4931,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource(this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { documents_ = documents_.getUnmodifiableView(); @@ -6176,60 +4947,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance()) return this; if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; @@ -6255,16 +5012,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6273,21 +5025,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList documents_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList documents_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDocumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { documents_ = new com.google.protobuf.LazyStringArrayList(documents_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6295,18 +5042,14 @@ private void ensureDocumentsIsMutable() {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the documents. */ - public com.google.protobuf.ProtocolStringList getDocumentsList() { + public com.google.protobuf.ProtocolStringList + getDocumentsList() { return documents_.getUnmodifiableView(); } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6314,18 +5057,13 @@ public com.google.protobuf.ProtocolStringList getDocumentsList() {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of documents. */ public int getDocumentsCount() { return documents_.size(); } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6333,10 +5071,7 @@ public int getDocumentsCount() {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The documents at the given index. */ @@ -6344,8 +5079,6 @@ public java.lang.String getDocuments(int index) { return documents_.get(index); } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6353,19 +5086,15 @@ public java.lang.String getDocuments(int index) {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the documents at the given index. */ - public com.google.protobuf.ByteString getDocumentsBytes(int index) { + public com.google.protobuf.ByteString + getDocumentsBytes(int index) { return documents_.getByteString(index); } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6373,26 +5102,22 @@ public com.google.protobuf.ByteString getDocumentsBytes(int index) {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The documents to set. * @return This builder for chaining. */ - public Builder setDocuments(int index, java.lang.String value) { + public Builder setDocuments( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentsIsMutable(); + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); documents_.set(index, value); onChanged(); return this; } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6400,25 +5125,21 @@ public Builder setDocuments(int index, java.lang.String value) {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The documents to add. * @return This builder for chaining. */ - public Builder addDocuments(java.lang.String value) { + public Builder addDocuments( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDocumentsIsMutable(); + throw new NullPointerException(); + } + ensureDocumentsIsMutable(); documents_.add(value); onChanged(); return this; } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6426,22 +5147,19 @@ public Builder addDocuments(java.lang.String value) {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param values The documents to add. * @return This builder for chaining. */ - public Builder addAllDocuments(java.lang.Iterable values) { + public Builder addAllDocuments( + java.lang.Iterable values) { ensureDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, documents_); onChanged(); return this; } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6449,10 +5167,7 @@ public Builder addAllDocuments(java.lang.Iterable values) {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDocuments() { @@ -6462,8 +5177,6 @@ public Builder clearDocuments() { return this; } /** - * - * *
          * Required. Knowledge documents to query from. Format:
          * `projects/<Project ID>/locations/<Location
@@ -6471,24 +5184,21 @@ public Builder clearDocuments() {
          * Currently, at most 5 documents are supported.
          * 
* - * - * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes of the documents to add. * @return This builder for chaining. */ - public Builder addDocumentsBytes(com.google.protobuf.ByteString value) { + public Builder addDocumentsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDocumentsIsMutable(); documents_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6501,36 +5211,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DocumentQuerySource - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentQuerySource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentQuerySource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentQuerySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentQuerySource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6542,21 +5246,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DialogflowQuerySourceOrBuilder - extends + public interface DialogflowQuerySourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The name of a Dialogflow virtual agent used for end user side intent
        * detection and suggestion. Format: `projects/<Project Number/
@@ -6564,16 +5264,11 @@ public interface DialogflowQuerySourceOrBuilder
        * the same Dialogflow project.
        * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The agent. */ java.lang.String getAgent(); /** - * - * *
        * Required. The name of a Dialogflow virtual agent used for end user side intent
        * detection and suggestion. Format: `projects/<Project Number/
@@ -6581,50 +5276,45 @@ public interface DialogflowQuerySourceOrBuilder
        * the same Dialogflow project.
        * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for agent. */ - com.google.protobuf.ByteString getAgentBytes(); + com.google.protobuf.ByteString + getAgentBytes(); } /** - * - * *
      * Dialogflow source setting.
      * Supported feature: DIALOGFLOW_ASSIST.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource} */ - public static final class DialogflowQuerySource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DialogflowQuerySource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) DialogflowQuerySourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DialogflowQuerySource.newBuilder() to construct. private DialogflowQuerySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DialogflowQuerySource() { agent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DialogflowQuerySource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DialogflowQuerySource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6643,55 +5333,47 @@ private DialogflowQuerySource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - agent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + agent_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder.class); } public static final int AGENT_FIELD_NUMBER = 1; private volatile java.lang.Object agent_; /** - * - * *
        * Required. The name of a Dialogflow virtual agent used for end user side intent
        * detection and suggestion. Format: `projects/<Project Number/
@@ -6699,10 +5381,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * the same Dialogflow project.
        * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The agent. */ @java.lang.Override @@ -6711,15 +5390,14 @@ public java.lang.String getAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agent_ = s; return s; } } /** - * - * *
        * Required. The name of a Dialogflow virtual agent used for end user side intent
        * detection and suggestion. Format: `projects/<Project Number/
@@ -6727,18 +5405,17 @@ public java.lang.String getAgent() {
        * the same Dialogflow project.
        * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for agent. */ @java.lang.Override - public com.google.protobuf.ByteString getAgentBytes() { + public com.google.protobuf.ByteString + getAgentBytes() { java.lang.Object ref = agent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agent_ = b; return b; } else { @@ -6747,7 +5424,6 @@ public com.google.protobuf.ByteString getAgentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6759,7 +5435,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getAgentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agent_); } @@ -6783,22 +5460,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) obj; - if (!getAgent().equals(other.getAgent())) return false; + if (!getAgent() + .equals(other.getAgent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6817,117 +5487,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6937,54 +5578,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Dialogflow source setting.
        * Supported feature: DIALOGFLOW_ASSIST.
        * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6994,26 +5626,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_DialogflowQuerySource_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - result = buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7021,14 +5646,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource(this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource(this); result.agent_ = agent_; onBuilt(); return result; @@ -7038,60 +5657,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance()) return this; if (!other.getAgent().isEmpty()) { agent_ = other.agent_; onChanged(); @@ -7111,16 +5716,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7132,8 +5732,6 @@ public Builder mergeFrom( private java.lang.Object agent_ = ""; /** - * - * *
          * Required. The name of a Dialogflow virtual agent used for end user side intent
          * detection and suggestion. Format: `projects/<Project Number/
@@ -7141,16 +5739,14 @@ public Builder mergeFrom(
          * the same Dialogflow project.
          * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The agent. */ public java.lang.String getAgent() { java.lang.Object ref = agent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agent_ = s; return s; @@ -7159,8 +5755,6 @@ public java.lang.String getAgent() { } } /** - * - * *
          * Required. The name of a Dialogflow virtual agent used for end user side intent
          * detection and suggestion. Format: `projects/<Project Number/
@@ -7168,17 +5762,16 @@ public java.lang.String getAgent() {
          * the same Dialogflow project.
          * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for agent. */ - public com.google.protobuf.ByteString getAgentBytes() { + public com.google.protobuf.ByteString + getAgentBytes() { java.lang.Object ref = agent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); agent_ = b; return b; } else { @@ -7186,8 +5779,6 @@ public com.google.protobuf.ByteString getAgentBytes() { } } /** - * - * *
          * Required. The name of a Dialogflow virtual agent used for end user side intent
          * detection and suggestion. Format: `projects/<Project Number/
@@ -7195,25 +5786,21 @@ public com.google.protobuf.ByteString getAgentBytes() {
          * the same Dialogflow project.
          * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The agent to set. * @return This builder for chaining. */ - public Builder setAgent(java.lang.String value) { + public Builder setAgent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + agent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of a Dialogflow virtual agent used for end user side intent
          * detection and suggestion. Format: `projects/<Project Number/
@@ -7221,21 +5808,16 @@ public Builder setAgent(java.lang.String value) {
          * the same Dialogflow project.
          * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAgent() { - + agent_ = getDefaultInstance().getAgent(); onChanged(); return this; } /** - * - * *
          * Required. The name of a Dialogflow virtual agent used for end user side intent
          * detection and suggestion. Format: `projects/<Project Number/
@@ -7243,24 +5825,21 @@ public Builder clearAgent() {
          * the same Dialogflow project.
          * 
* - * - * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for agent to set. * @return This builder for chaining. */ - public Builder setAgentBytes(com.google.protobuf.ByteString value) { + public Builder setAgentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agent_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7273,36 +5852,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DialogflowQuerySource - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DialogflowQuerySource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DialogflowQuerySource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DialogflowQuerySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DialogflowQuerySource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7314,92 +5887,79 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ContextFilterSettingsOrBuilder - extends + public interface ContextFilterSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * If set to true, the last message from virtual agent (hand off message)
        * and the message before it (trigger message of hand off) are dropped.
        * 
* * bool drop_handoff_messages = 1; - * * @return The dropHandoffMessages. */ boolean getDropHandoffMessages(); /** - * - * *
        * If set to true, all messages from virtual agent are dropped.
        * 
* * bool drop_virtual_agent_messages = 2; - * * @return The dropVirtualAgentMessages. */ boolean getDropVirtualAgentMessages(); /** - * - * *
        * If set to true, all messages from ivr stage are dropped.
        * 
* * bool drop_ivr_messages = 3; - * * @return The dropIvrMessages. */ boolean getDropIvrMessages(); } /** - * - * *
      * Settings that determine how to filter recent conversation context when
      * generating suggestions.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings} */ - public static final class ContextFilterSettings extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ContextFilterSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) ContextFilterSettingsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContextFilterSettings.newBuilder() to construct. private ContextFilterSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ContextFilterSettings() {} + private ContextFilterSettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContextFilterSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ContextFilterSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7418,70 +5978,62 @@ private ContextFilterSettings( case 0: done = true; break; - case 8: - { - dropHandoffMessages_ = input.readBool(); - break; - } - case 16: - { - dropVirtualAgentMessages_ = input.readBool(); - break; - } - case 24: - { - dropIvrMessages_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + dropHandoffMessages_ = input.readBool(); + break; + } + case 16: { + + dropVirtualAgentMessages_ = input.readBool(); + break; + } + case 24: { + + dropIvrMessages_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder.class); } public static final int DROP_HANDOFF_MESSAGES_FIELD_NUMBER = 1; private boolean dropHandoffMessages_; /** - * - * *
        * If set to true, the last message from virtual agent (hand off message)
        * and the message before it (trigger message of hand off) are dropped.
        * 
* * bool drop_handoff_messages = 1; - * * @return The dropHandoffMessages. */ @java.lang.Override @@ -7492,14 +6044,11 @@ public boolean getDropHandoffMessages() { public static final int DROP_VIRTUAL_AGENT_MESSAGES_FIELD_NUMBER = 2; private boolean dropVirtualAgentMessages_; /** - * - * *
        * If set to true, all messages from virtual agent are dropped.
        * 
* * bool drop_virtual_agent_messages = 2; - * * @return The dropVirtualAgentMessages. */ @java.lang.Override @@ -7510,14 +6059,11 @@ public boolean getDropVirtualAgentMessages() { public static final int DROP_IVR_MESSAGES_FIELD_NUMBER = 3; private boolean dropIvrMessages_; /** - * - * *
        * If set to true, all messages from ivr stage are dropped.
        * 
* * bool drop_ivr_messages = 3; - * * @return The dropIvrMessages. */ @java.lang.Override @@ -7526,7 +6072,6 @@ public boolean getDropIvrMessages() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7538,7 +6083,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dropHandoffMessages_ != false) { output.writeBool(1, dropHandoffMessages_); } @@ -7558,14 +6104,16 @@ public int getSerializedSize() { size = 0; if (dropHandoffMessages_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, dropHandoffMessages_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, dropHandoffMessages_); } if (dropVirtualAgentMessages_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, dropVirtualAgentMessages_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, dropVirtualAgentMessages_); } if (dropIvrMessages_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, dropIvrMessages_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, dropIvrMessages_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7575,24 +6123,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings) - obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) obj; - if (getDropHandoffMessages() != other.getDropHandoffMessages()) return false; - if (getDropVirtualAgentMessages() != other.getDropVirtualAgentMessages()) return false; - if (getDropIvrMessages() != other.getDropIvrMessages()) return false; + if (getDropHandoffMessages() + != other.getDropHandoffMessages()) return false; + if (getDropVirtualAgentMessages() + != other.getDropVirtualAgentMessages()) return false; + if (getDropIvrMessages() + != other.getDropIvrMessages()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7605,128 +6148,101 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DROP_HANDOFF_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDropHandoffMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDropHandoffMessages()); hash = (37 * hash) + DROP_VIRTUAL_AGENT_MESSAGES_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDropVirtualAgentMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDropVirtualAgentMessages()); hash = (37 * hash) + DROP_IVR_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDropIvrMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDropIvrMessages()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7736,54 +6252,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Settings that determine how to filter recent conversation context when
        * generating suggestions.
        * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7797,26 +6304,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_ContextFilterSettings_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - result = buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7824,14 +6324,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings(this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings(this); result.dropHandoffMessages_ = dropHandoffMessages_; result.dropVirtualAgentMessages_ = dropVirtualAgentMessages_; result.dropIvrMessages_ = dropIvrMessages_; @@ -7843,60 +6337,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.getDefaultInstance()) return this; if (other.getDropHandoffMessages() != false) { setDropHandoffMessages(other.getDropHandoffMessages()); } @@ -7921,16 +6401,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7940,17 +6415,14 @@ public Builder mergeFrom( return this; } - private boolean dropHandoffMessages_; + private boolean dropHandoffMessages_ ; /** - * - * *
          * If set to true, the last message from virtual agent (hand off message)
          * and the message before it (trigger message of hand off) are dropped.
          * 
* * bool drop_handoff_messages = 1; - * * @return The dropHandoffMessages. */ @java.lang.Override @@ -7958,53 +6430,44 @@ public boolean getDropHandoffMessages() { return dropHandoffMessages_; } /** - * - * *
          * If set to true, the last message from virtual agent (hand off message)
          * and the message before it (trigger message of hand off) are dropped.
          * 
* * bool drop_handoff_messages = 1; - * * @param value The dropHandoffMessages to set. * @return This builder for chaining. */ public Builder setDropHandoffMessages(boolean value) { - + dropHandoffMessages_ = value; onChanged(); return this; } /** - * - * *
          * If set to true, the last message from virtual agent (hand off message)
          * and the message before it (trigger message of hand off) are dropped.
          * 
* * bool drop_handoff_messages = 1; - * * @return This builder for chaining. */ public Builder clearDropHandoffMessages() { - + dropHandoffMessages_ = false; onChanged(); return this; } - private boolean dropVirtualAgentMessages_; + private boolean dropVirtualAgentMessages_ ; /** - * - * *
          * If set to true, all messages from virtual agent are dropped.
          * 
* * bool drop_virtual_agent_messages = 2; - * * @return The dropVirtualAgentMessages. */ @java.lang.Override @@ -8012,51 +6475,42 @@ public boolean getDropVirtualAgentMessages() { return dropVirtualAgentMessages_; } /** - * - * *
          * If set to true, all messages from virtual agent are dropped.
          * 
* * bool drop_virtual_agent_messages = 2; - * * @param value The dropVirtualAgentMessages to set. * @return This builder for chaining. */ public Builder setDropVirtualAgentMessages(boolean value) { - + dropVirtualAgentMessages_ = value; onChanged(); return this; } /** - * - * *
          * If set to true, all messages from virtual agent are dropped.
          * 
* * bool drop_virtual_agent_messages = 2; - * * @return This builder for chaining. */ public Builder clearDropVirtualAgentMessages() { - + dropVirtualAgentMessages_ = false; onChanged(); return this; } - private boolean dropIvrMessages_; + private boolean dropIvrMessages_ ; /** - * - * *
          * If set to true, all messages from ivr stage are dropped.
          * 
* * bool drop_ivr_messages = 3; - * * @return The dropIvrMessages. */ @java.lang.Override @@ -8064,41 +6518,34 @@ public boolean getDropIvrMessages() { return dropIvrMessages_; } /** - * - * *
          * If set to true, all messages from ivr stage are dropped.
          * 
* * bool drop_ivr_messages = 3; - * * @param value The dropIvrMessages to set. * @return This builder for chaining. */ public Builder setDropIvrMessages(boolean value) { - + dropIvrMessages_ = value; onChanged(); return this; } /** - * - * *
          * If set to true, all messages from ivr stage are dropped.
          * 
* * bool drop_ivr_messages = 3; - * * @return This builder for chaining. */ public Builder clearDropIvrMessages() { - + dropIvrMessages_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8111,36 +6558,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.ContextFilterSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContextFilterSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContextFilterSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContextFilterSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContextFilterSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8152,26 +6593,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int querySourceCase_ = 0; private java.lang.Object querySource_; - public enum QuerySourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { KNOWLEDGE_BASE_QUERY_SOURCE(1), DOCUMENT_QUERY_SOURCE(2), DIALOGFLOW_QUERY_SOURCE(3), QUERYSOURCE_NOT_SET(0); private final int value; - private QuerySourceCase(int value) { this.value = value; } @@ -8187,41 +6624,32 @@ public static QuerySourceCase valueOf(int value) { public static QuerySourceCase forNumber(int value) { switch (value) { - case 1: - return KNOWLEDGE_BASE_QUERY_SOURCE; - case 2: - return DOCUMENT_QUERY_SOURCE; - case 3: - return DIALOGFLOW_QUERY_SOURCE; - case 0: - return QUERYSOURCE_NOT_SET; - default: - return null; + case 1: return KNOWLEDGE_BASE_QUERY_SOURCE; + case 2: return DOCUMENT_QUERY_SOURCE; + case 3: return DIALOGFLOW_QUERY_SOURCE; + case 0: return QUERYSOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public QuerySourceCase getQuerySourceCase() { - return QuerySourceCase.forNumber(querySourceCase_); + public QuerySourceCase + getQuerySourceCase() { + return QuerySourceCase.forNumber( + querySourceCase_); } public static final int KNOWLEDGE_BASE_QUERY_SOURCE_FIELD_NUMBER = 1; /** - * - * *
      * Query from knowledgebase. It is used by:
      * ARTICLE_SUGGESTION, FAQ.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; * @return Whether the knowledgeBaseQuerySource field is set. */ @java.lang.Override @@ -8229,69 +6657,45 @@ public boolean hasKnowledgeBaseQuerySource() { return querySourceCase_ == 1; } /** - * - * *
      * Query from knowledgebase. It is used by:
      * ARTICLE_SUGGESTION, FAQ.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; * @return The knowledgeBaseQuerySource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - getKnowledgeBaseQuerySource() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource getKnowledgeBaseQuerySource() { if (querySourceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance(); } /** - * - * *
      * Query from knowledgebase. It is used by:
      * ARTICLE_SUGGESTION, FAQ.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySourceOrBuilder - getKnowledgeBaseQuerySourceOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder getKnowledgeBaseQuerySourceOrBuilder() { if (querySourceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance(); } public static final int DOCUMENT_QUERY_SOURCE_FIELD_NUMBER = 2; /** - * - * *
      * Query from knowledge base document. It is used by:
      * SMART_REPLY, SMART_COMPOSE.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; * @return Whether the documentQuerySource field is set. */ @java.lang.Override @@ -8299,68 +6703,44 @@ public boolean hasDocumentQuerySource() { return querySourceCase_ == 2; } /** - * - * *
      * Query from knowledge base document. It is used by:
      * SMART_REPLY, SMART_COMPOSE.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; * @return The documentQuerySource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - getDocumentQuerySource() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDocumentQuerySource() { if (querySourceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance(); } /** - * - * *
      * Query from knowledge base document. It is used by:
      * SMART_REPLY, SMART_COMPOSE.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySourceOrBuilder - getDocumentQuerySourceOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder getDocumentQuerySourceOrBuilder() { if (querySourceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance(); } public static final int DIALOGFLOW_QUERY_SOURCE_FIELD_NUMBER = 3; /** - * - * *
      * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; * @return Whether the dialogflowQuerySource field is set. */ @java.lang.Override @@ -8368,66 +6748,44 @@ public boolean hasDialogflowQuerySource() { return querySourceCase_ == 3; } /** - * - * *
      * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; * @return The dialogflowQuerySource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - getDialogflowQuerySource() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource getDialogflowQuerySource() { if (querySourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance(); } /** - * - * *
      * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySourceOrBuilder - getDialogflowQuerySourceOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder getDialogflowQuerySourceOrBuilder() { if (querySourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance(); } public static final int MAX_RESULTS_FIELD_NUMBER = 4; private int maxResults_; /** - * - * *
      * Maximum number of results to return. Currently, if unset, defaults to 10.
      * And the max number is 20.
      * 
* * int32 max_results = 4; - * * @return The maxResults. */ @java.lang.Override @@ -8438,8 +6796,6 @@ public int getMaxResults() { public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 5; private float confidenceThreshold_; /** - * - * *
      * Confidence threshold of query result.
      * Agent Assist gives each suggestion a score in the range [0.0, 1.0], based
@@ -8458,7 +6814,6 @@ public int getMaxResults() {
      * 
* * float confidence_threshold = 5; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -8467,21 +6822,14 @@ public float getConfidenceThreshold() { } public static final int CONTEXT_FILTER_SETTINGS_FIELD_NUMBER = 7; - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - contextFilterSettings_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings contextFilterSettings_; /** - * - * *
      * Determines how recent conversation context is filtered when generating
      * suggestions. If unspecified, no messages will be dropped.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; * @return Whether the contextFilterSettings field is set. */ @java.lang.Override @@ -8489,49 +6837,32 @@ public boolean hasContextFilterSettings() { return contextFilterSettings_ != null; } /** - * - * *
      * Determines how recent conversation context is filtered when generating
      * suggestions. If unspecified, no messages will be dropped.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; * @return The contextFilterSettings. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - getContextFilterSettings() { - return contextFilterSettings_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.getDefaultInstance() - : contextFilterSettings_; + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings getContextFilterSettings() { + return contextFilterSettings_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.getDefaultInstance() : contextFilterSettings_; } /** - * - * *
      * Determines how recent conversation context is filtered when generating
      * suggestions. If unspecified, no messages will be dropped.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettingsOrBuilder - getContextFilterSettingsOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder getContextFilterSettingsOrBuilder() { return getContextFilterSettings(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8543,27 +6874,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (querySourceCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - querySource_); + output.writeMessage(1, (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_); } if (querySourceCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - querySource_); + output.writeMessage(2, (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_); } if (querySourceCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - querySource_); + output.writeMessage(3, (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_); } if (maxResults_ != 0) { output.writeInt32(4, maxResults_); @@ -8584,38 +6904,28 @@ public int getSerializedSize() { size = 0; if (querySourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - querySource_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_); } if (querySourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - querySource_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_); } if (querySourceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - querySource_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_); } if (maxResults_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxResults_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxResults_); } if (confidenceThreshold_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, confidenceThreshold_); } if (contextFilterSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getContextFilterSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getContextFilterSettings()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8625,34 +6935,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) obj; - if (getMaxResults() != other.getMaxResults()) return false; + if (getMaxResults() + != other.getMaxResults()) return false; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) - != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidenceThreshold())) return false; if (hasContextFilterSettings() != other.hasContextFilterSettings()) return false; if (hasContextFilterSettings()) { - if (!getContextFilterSettings().equals(other.getContextFilterSettings())) return false; + if (!getContextFilterSettings() + .equals(other.getContextFilterSettings())) return false; } if (!getQuerySourceCase().equals(other.getQuerySourceCase())) return false; switch (querySourceCase_) { case 1: - if (!getKnowledgeBaseQuerySource().equals(other.getKnowledgeBaseQuerySource())) - return false; + if (!getKnowledgeBaseQuerySource() + .equals(other.getKnowledgeBaseQuerySource())) return false; break; case 2: - if (!getDocumentQuerySource().equals(other.getDocumentQuerySource())) return false; + if (!getDocumentQuerySource() + .equals(other.getDocumentQuerySource())) return false; break; case 3: - if (!getDialogflowQuerySource().equals(other.getDialogflowQuerySource())) return false; + if (!getDialogflowQuerySource() + .equals(other.getDialogflowQuerySource())) return false; break; case 0: default: @@ -8671,7 +6983,8 @@ public int hashCode() { hash = (37 * hash) + MAX_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getMaxResults(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidenceThreshold()); if (hasContextFilterSettings()) { hash = (37 * hash) + CONTEXT_FILTER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getContextFilterSettings().hashCode(); @@ -8697,101 +7010,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8801,52 +7101,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Config for suggestion query.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -8866,23 +7158,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_SuggestionQueryConfig_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig result = - buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8890,11 +7178,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig( - this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig(this); if (querySourceCase_ == 1) { if (knowledgeBaseQuerySourceBuilder_ == null) { result.querySource_ = querySource_; @@ -8932,56 +7217,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.getDefaultInstance()) return this; if (other.getMaxResults() != 0) { setMaxResults(other.getMaxResults()); } @@ -8992,25 +7267,21 @@ public Builder mergeFrom( mergeContextFilterSettings(other.getContextFilterSettings()); } switch (other.getQuerySourceCase()) { - case KNOWLEDGE_BASE_QUERY_SOURCE: - { - mergeKnowledgeBaseQuerySource(other.getKnowledgeBaseQuerySource()); - break; - } - case DOCUMENT_QUERY_SOURCE: - { - mergeDocumentQuerySource(other.getDocumentQuerySource()); - break; - } - case DIALOGFLOW_QUERY_SOURCE: - { - mergeDialogflowQuerySource(other.getDialogflowQuerySource()); - break; - } - case QUERYSOURCE_NOT_SET: - { - break; - } + case KNOWLEDGE_BASE_QUERY_SOURCE: { + mergeKnowledgeBaseQuerySource(other.getKnowledgeBaseQuerySource()); + break; + } + case DOCUMENT_QUERY_SOURCE: { + mergeDocumentQuerySource(other.getDocumentQuerySource()); + break; + } + case DIALOGFLOW_QUERY_SOURCE: { + mergeDialogflowQuerySource(other.getDialogflowQuerySource()); + break; + } + case QUERYSOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -9027,14 +7298,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9043,12 +7311,12 @@ public Builder mergeFrom( } return this; } - private int querySourceCase_ = 0; private java.lang.Object querySource_; - - public QuerySourceCase getQuerySourceCase() { - return QuerySourceCase.forNumber(querySourceCase_); + public QuerySourceCase + getQuerySourceCase() { + return QuerySourceCase.forNumber( + querySourceCase_); } public Builder clearQuerySource() { @@ -9058,26 +7326,16 @@ public Builder clearQuerySource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySourceOrBuilder> - knowledgeBaseQuerySourceBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder> knowledgeBaseQuerySourceBuilder_; /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; * @return Whether the knowledgeBaseQuerySource field is set. */ @java.lang.Override @@ -9085,55 +7343,37 @@ public boolean hasKnowledgeBaseQuerySource() { return querySourceCase_ == 1; } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; * @return The knowledgeBaseQuerySource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - getKnowledgeBaseQuerySource() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource getKnowledgeBaseQuerySource() { if (knowledgeBaseQuerySourceBuilder_ == null) { if (querySourceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance(); } else { if (querySourceCase_ == 1) { return knowledgeBaseQuerySourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance(); } } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ - public Builder setKnowledgeBaseQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - value) { + public Builder setKnowledgeBaseQuerySource(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource value) { if (knowledgeBaseQuerySourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9147,21 +7387,15 @@ public Builder setKnowledgeBaseQuerySource( return this; } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ public Builder setKnowledgeBaseQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder builderForValue) { if (knowledgeBaseQuerySourceBuilder_ == null) { querySource_ = builderForValue.build(); onChanged(); @@ -9172,34 +7406,19 @@ public Builder setKnowledgeBaseQuerySource( return this; } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ - public Builder mergeKnowledgeBaseQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource - value) { + public Builder mergeKnowledgeBaseQuerySource(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource value) { if (knowledgeBaseQuerySourceBuilder_ == null) { - if (querySourceCase_ == 1 - && querySource_ - != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance()) { - querySource_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.newBuilder( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.KnowledgeBaseQuerySource) - querySource_) - .mergeFrom(value) - .buildPartial(); + if (querySourceCase_ == 1 && + querySource_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance()) { + querySource_ = com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.newBuilder((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_) + .mergeFrom(value).buildPartial(); } else { querySource_ = value; } @@ -9214,16 +7433,12 @@ public Builder mergeKnowledgeBaseQuerySource( return this; } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ public Builder clearKnowledgeBaseQuerySource() { if (knowledgeBaseQuerySourceBuilder_ == null) { @@ -9242,117 +7457,71 @@ public Builder clearKnowledgeBaseQuerySource() { return this; } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder - getKnowledgeBaseQuerySourceBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder getKnowledgeBaseQuerySourceBuilder() { return getKnowledgeBaseQuerySourceFieldBuilder().getBuilder(); } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySourceOrBuilder - getKnowledgeBaseQuerySourceOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder getKnowledgeBaseQuerySourceOrBuilder() { if ((querySourceCase_ == 1) && (knowledgeBaseQuerySourceBuilder_ != null)) { return knowledgeBaseQuerySourceBuilder_.getMessageOrBuilder(); } else { if (querySourceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance(); } } /** - * - * *
        * Query from knowledgebase. It is used by:
        * ARTICLE_SUGGESTION, FAQ.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySourceOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder> getKnowledgeBaseQuerySourceFieldBuilder() { if (knowledgeBaseQuerySourceBuilder_ == null) { if (!(querySourceCase_ == 1)) { - querySource_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.getDefaultInstance(); + querySource_ = com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.getDefaultInstance(); } - knowledgeBaseQuerySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySourceOrBuilder>( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .KnowledgeBaseQuerySource) - querySource_, + knowledgeBaseQuerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder>( + (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource) querySource_, getParentForChildren(), isClean()); querySource_ = null; } querySourceCase_ = 1; - onChanged(); - ; + onChanged();; return knowledgeBaseQuerySourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySourceOrBuilder> - documentQuerySourceBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder> documentQuerySourceBuilder_; /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; * @return Whether the documentQuerySource field is set. */ @java.lang.Override @@ -9360,55 +7529,37 @@ public boolean hasDocumentQuerySource() { return querySourceCase_ == 2; } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; * @return The documentQuerySource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - getDocumentQuerySource() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDocumentQuerySource() { if (documentQuerySourceBuilder_ == null) { if (querySourceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance(); } else { if (querySourceCase_ == 2) { return documentQuerySourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance(); } } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ - public Builder setDocumentQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - value) { + public Builder setDocumentQuerySource(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource value) { if (documentQuerySourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9422,21 +7573,15 @@ public Builder setDocumentQuerySource( return this; } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ public Builder setDocumentQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder builderForValue) { if (documentQuerySourceBuilder_ == null) { querySource_ = builderForValue.build(); onChanged(); @@ -9447,34 +7592,19 @@ public Builder setDocumentQuerySource( return this; } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ - public Builder mergeDocumentQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource - value) { + public Builder mergeDocumentQuerySource(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource value) { if (documentQuerySourceBuilder_ == null) { - if (querySourceCase_ == 2 - && querySource_ - != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance()) { - querySource_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.newBuilder( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DocumentQuerySource) - querySource_) - .mergeFrom(value) - .buildPartial(); + if (querySourceCase_ == 2 && + querySource_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance()) { + querySource_ = com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.newBuilder((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_) + .mergeFrom(value).buildPartial(); } else { querySource_ = value; } @@ -9489,16 +7619,12 @@ public Builder mergeDocumentQuerySource( return this; } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ public Builder clearDocumentQuerySource() { if (documentQuerySourceBuilder_ == null) { @@ -9517,116 +7643,70 @@ public Builder clearDocumentQuerySource() { return this; } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder - getDocumentQuerySourceBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder getDocumentQuerySourceBuilder() { return getDocumentQuerySourceFieldBuilder().getBuilder(); } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySourceOrBuilder - getDocumentQuerySourceOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder getDocumentQuerySourceOrBuilder() { if ((querySourceCase_ == 2) && (documentQuerySourceBuilder_ != null)) { return documentQuerySourceBuilder_.getMessageOrBuilder(); } else { if (querySourceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance(); } } /** - * - * *
        * Query from knowledge base document. It is used by:
        * SMART_REPLY, SMART_COMPOSE.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySourceOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder> getDocumentQuerySourceFieldBuilder() { if (documentQuerySourceBuilder_ == null) { if (!(querySourceCase_ == 2)) { - querySource_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.getDefaultInstance(); + querySource_ = com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.getDefaultInstance(); } - documentQuerySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySourceOrBuilder>( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DocumentQuerySource) - querySource_, + documentQuerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder>( + (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource) querySource_, getParentForChildren(), isClean()); querySource_ = null; } querySourceCase_ = 2; - onChanged(); - ; + onChanged();; return documentQuerySourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySourceOrBuilder> - dialogflowQuerySourceBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder> dialogflowQuerySourceBuilder_; /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; * @return Whether the dialogflowQuerySource field is set. */ @java.lang.Override @@ -9634,53 +7714,35 @@ public boolean hasDialogflowQuerySource() { return querySourceCase_ == 3; } /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; * @return The dialogflowQuerySource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - getDialogflowQuerySource() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource getDialogflowQuerySource() { if (dialogflowQuerySourceBuilder_ == null) { if (querySourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance(); } else { if (querySourceCase_ == 3) { return dialogflowQuerySourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance(); } } - /** - * - * + /** *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ - public Builder setDialogflowQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - value) { + public Builder setDialogflowQuerySource(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource value) { if (dialogflowQuerySourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9694,20 +7756,14 @@ public Builder setDialogflowQuerySource( return this; } /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ public Builder setDialogflowQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder builderForValue) { if (dialogflowQuerySourceBuilder_ == null) { querySource_ = builderForValue.build(); onChanged(); @@ -9718,33 +7774,18 @@ public Builder setDialogflowQuerySource( return this; } /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ - public Builder mergeDialogflowQuerySource( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource - value) { + public Builder mergeDialogflowQuerySource(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource value) { if (dialogflowQuerySourceBuilder_ == null) { - if (querySourceCase_ == 3 - && querySource_ - != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance()) { - querySource_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.newBuilder( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig.DialogflowQuerySource) - querySource_) - .mergeFrom(value) - .buildPartial(); + if (querySourceCase_ == 3 && + querySource_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance()) { + querySource_ = com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.newBuilder((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_) + .mergeFrom(value).buildPartial(); } else { querySource_ = value; } @@ -9759,15 +7800,11 @@ public Builder mergeDialogflowQuerySource( return this; } /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ public Builder clearDialogflowQuerySource() { if (dialogflowQuerySourceBuilder_ == null) { @@ -9786,105 +7823,67 @@ public Builder clearDialogflowQuerySource() { return this; } /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder - getDialogflowQuerySourceBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder getDialogflowQuerySourceBuilder() { return getDialogflowQuerySourceFieldBuilder().getBuilder(); } /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySourceOrBuilder - getDialogflowQuerySourceOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder getDialogflowQuerySourceOrBuilder() { if ((querySourceCase_ == 3) && (dialogflowQuerySourceBuilder_ != null)) { return dialogflowQuerySourceBuilder_.getMessageOrBuilder(); } else { if (querySourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - querySource_; + return (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_; } - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance(); } } /** - * - * *
        * Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySourceOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder> getDialogflowQuerySourceFieldBuilder() { if (dialogflowQuerySourceBuilder_ == null) { if (!(querySourceCase_ == 3)) { - querySource_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.getDefaultInstance(); + querySource_ = com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.getDefaultInstance(); } - dialogflowQuerySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySourceOrBuilder>( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .DialogflowQuerySource) - querySource_, + dialogflowQuerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder>( + (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource) querySource_, getParentForChildren(), isClean()); querySource_ = null; } querySourceCase_ = 3; - onChanged(); - ; + onChanged();; return dialogflowQuerySourceBuilder_; } - private int maxResults_; + private int maxResults_ ; /** - * - * *
        * Maximum number of results to return. Currently, if unset, defaults to 10.
        * And the max number is 20.
        * 
* * int32 max_results = 4; - * * @return The maxResults. */ @java.lang.Override @@ -9892,47 +7891,39 @@ public int getMaxResults() { return maxResults_; } /** - * - * *
        * Maximum number of results to return. Currently, if unset, defaults to 10.
        * And the max number is 20.
        * 
* * int32 max_results = 4; - * * @param value The maxResults to set. * @return This builder for chaining. */ public Builder setMaxResults(int value) { - + maxResults_ = value; onChanged(); return this; } /** - * - * *
        * Maximum number of results to return. Currently, if unset, defaults to 10.
        * And the max number is 20.
        * 
* * int32 max_results = 4; - * * @return This builder for chaining. */ public Builder clearMaxResults() { - + maxResults_ = 0; onChanged(); return this; } - private float confidenceThreshold_; + private float confidenceThreshold_ ; /** - * - * *
        * Confidence threshold of query result.
        * Agent Assist gives each suggestion a score in the range [0.0, 1.0], based
@@ -9951,7 +7942,6 @@ public Builder clearMaxResults() {
        * 
* * float confidence_threshold = 5; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -9959,8 +7949,6 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } /** - * - * *
        * Confidence threshold of query result.
        * Agent Assist gives each suggestion a score in the range [0.0, 1.0], based
@@ -9979,19 +7967,16 @@ public float getConfidenceThreshold() {
        * 
* * float confidence_threshold = 5; - * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ public Builder setConfidenceThreshold(float value) { - + confidenceThreshold_ = value; onChanged(); return this; } /** - * - * *
        * Confidence threshold of query result.
        * Agent Assist gives each suggestion a score in the range [0.0, 1.0], based
@@ -10010,86 +7995,55 @@ public Builder setConfidenceThreshold(float value) {
        * 
* * float confidence_threshold = 5; - * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { - + confidenceThreshold_ = 0F; onChanged(); return this; } - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - contextFilterSettings_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings contextFilterSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettingsOrBuilder> - contextFilterSettingsBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder> contextFilterSettingsBuilder_; /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; * @return Whether the contextFilterSettings field is set. */ public boolean hasContextFilterSettings() { return contextFilterSettingsBuilder_ != null || contextFilterSettings_ != null; } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; * @return The contextFilterSettings. */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - getContextFilterSettings() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings getContextFilterSettings() { if (contextFilterSettingsBuilder_ == null) { - return contextFilterSettings_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.getDefaultInstance() - : contextFilterSettings_; + return contextFilterSettings_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.getDefaultInstance() : contextFilterSettings_; } else { return contextFilterSettingsBuilder_.getMessage(); } } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ - public Builder setContextFilterSettings( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - value) { + public Builder setContextFilterSettings(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings value) { if (contextFilterSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10103,21 +8057,15 @@ public Builder setContextFilterSettings( return this; } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ public Builder setContextFilterSettings( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder builderForValue) { if (contextFilterSettingsBuilder_ == null) { contextFilterSettings_ = builderForValue.build(); onChanged(); @@ -10128,28 +8076,18 @@ public Builder setContextFilterSettings( return this; } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ - public Builder mergeContextFilterSettings( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings - value) { + public Builder mergeContextFilterSettings(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings value) { if (contextFilterSettingsBuilder_ == null) { if (contextFilterSettings_ != null) { contextFilterSettings_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.newBuilder(contextFilterSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.newBuilder(contextFilterSettings_).mergeFrom(value).buildPartial(); } else { contextFilterSettings_ = value; } @@ -10161,16 +8099,12 @@ public Builder mergeContextFilterSettings( return this; } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ public Builder clearContextFilterSettings() { if (contextFilterSettingsBuilder_ == null) { @@ -10184,83 +8118,55 @@ public Builder clearContextFilterSettings() { return this; } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder - getContextFilterSettingsBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder getContextFilterSettingsBuilder() { + onChanged(); return getContextFilterSettingsFieldBuilder().getBuilder(); } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettingsOrBuilder - getContextFilterSettingsOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder getContextFilterSettingsOrBuilder() { if (contextFilterSettingsBuilder_ != null) { return contextFilterSettingsBuilder_.getMessageOrBuilder(); } else { - return contextFilterSettings_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.getDefaultInstance() - : contextFilterSettings_; + return contextFilterSettings_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.getDefaultInstance() : contextFilterSettings_; } } /** - * - * *
        * Determines how recent conversation context is filtered when generating
        * suggestions. If unspecified, no messages will be dropped.
        * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettingsOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder> getContextFilterSettingsFieldBuilder() { if (contextFilterSettingsBuilder_ == null) { - contextFilterSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettings.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - .ContextFilterSettingsOrBuilder>( - getContextFilterSettings(), getParentForChildren(), isClean()); + contextFilterSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder>( + getContextFilterSettings(), + getParentForChildren(), + isClean()); contextFilterSettings_ = null; } return contextFilterSettingsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10273,34 +8179,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .SuggestionQueryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestionQueryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SuggestionQueryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionQueryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SuggestionQueryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10312,80 +8214,71 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConversationModelConfigOrBuilder - extends + public interface ConversationModelConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Conversation model resource name. Format: `projects/<Project
      * ID>/conversationModels/<Model ID>`.
      * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @return The model. */ java.lang.String getModel(); /** - * - * *
      * Conversation model resource name. Format: `projects/<Project
      * ID>/conversationModels/<Model ID>`.
      * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); } /** - * - * *
    * Custom conversation models used in agent assist feature.
    * Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
    * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig} */ - public static final class ConversationModelConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConversationModelConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) ConversationModelConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConversationModelConfig.newBuilder() to construct. private ConversationModelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConversationModelConfig() { model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConversationModelConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConversationModelConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10404,61 +8297,53 @@ private ConversationModelConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + model_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder.class); } public static final int MODEL_FIELD_NUMBER = 1; private volatile java.lang.Object model_; /** - * - * *
      * Conversation model resource name. Format: `projects/<Project
      * ID>/conversationModels/<Model ID>`.
      * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @return The model. */ @java.lang.Override @@ -10467,30 +8352,30 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
      * Conversation model resource name. Format: `projects/<Project
      * ID>/conversationModels/<Model ID>`.
      * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -10499,7 +8384,6 @@ public com.google.protobuf.ByteString getModelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10511,7 +8395,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getModelBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); } @@ -10535,17 +8420,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) obj; - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -10564,102 +8447,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10669,53 +8538,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Custom conversation models used in agent assist feature.
      * Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -10725,23 +8586,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig result = - buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10749,11 +8606,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig( - this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig(this); result.model_ = model_; onBuilt(); return result; @@ -10763,56 +8617,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig.getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; onChanged(); @@ -10832,14 +8676,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10851,21 +8692,19 @@ public Builder mergeFrom( private java.lang.Object model_ = ""; /** - * - * *
        * Conversation model resource name. Format: `projects/<Project
        * ID>/conversationModels/<Model ID>`.
        * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -10874,22 +8713,21 @@ public java.lang.String getModel() { } } /** - * - * *
        * Conversation model resource name. Format: `projects/<Project
        * ID>/conversationModels/<Model ID>`.
        * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -10897,69 +8735,61 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
        * Conversation model resource name. Format: `projects/<Project
        * ID>/conversationModels/<Model ID>`.
        * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
        * Conversation model resource name. Format: `projects/<Project
        * ID>/conversationModels/<Model ID>`.
        * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
        * Conversation model resource name. Format: `projects/<Project
        * ID>/conversationModels/<Model ID>`.
        * 
* * string model = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10972,34 +8802,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .ConversationModelConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationModelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConversationModelConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationModelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversationModelConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11011,20 +8837,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MessageAnalysisConfigOrBuilder - extends + public interface MessageAnalysisConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Enable entity extraction in conversation messages on [agent assist
      * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11034,14 +8857,11 @@ public interface MessageAnalysisConfigOrBuilder
      * 
* * bool enable_entity_extraction = 2; - * * @return The enableEntityExtraction. */ boolean getEnableEntityExtraction(); /** - * - * *
      * Enable sentiment analysis in conversation messages on [agent assist
      * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11060,44 +8880,41 @@ public interface MessageAnalysisConfigOrBuilder
      * 
* * bool enable_sentiment_analysis = 3; - * * @return The enableSentimentAnalysis. */ boolean getEnableSentimentAnalysis(); } /** - * - * *
    * Configuration for analyses to run on each conversation message.
    * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig} */ - public static final class MessageAnalysisConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class MessageAnalysisConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) MessageAnalysisConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MessageAnalysisConfig.newBuilder() to construct. private MessageAnalysisConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MessageAnalysisConfig() {} + private MessageAnalysisConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MessageAnalysisConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MessageAnalysisConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -11116,56 +8933,51 @@ private MessageAnalysisConfig( case 0: done = true; break; - case 16: - { - enableEntityExtraction_ = input.readBool(); - break; - } - case 24: - { - enableSentimentAnalysis_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 16: { + + enableEntityExtraction_ = input.readBool(); + break; + } + case 24: { + + enableSentimentAnalysis_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder - .class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder.class); } public static final int ENABLE_ENTITY_EXTRACTION_FIELD_NUMBER = 2; private boolean enableEntityExtraction_; /** - * - * *
      * Enable entity extraction in conversation messages on [agent assist
      * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11175,7 +8987,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * bool enable_entity_extraction = 2; - * * @return The enableEntityExtraction. */ @java.lang.Override @@ -11186,8 +8997,6 @@ public boolean getEnableEntityExtraction() { public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER = 3; private boolean enableSentimentAnalysis_; /** - * - * *
      * Enable sentiment analysis in conversation messages on [agent assist
      * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11206,7 +9015,6 @@ public boolean getEnableEntityExtraction() {
      * 
* * bool enable_sentiment_analysis = 3; - * * @return The enableSentimentAnalysis. */ @java.lang.Override @@ -11215,7 +9023,6 @@ public boolean getEnableSentimentAnalysis() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11227,7 +9034,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableEntityExtraction_ != false) { output.writeBool(2, enableEntityExtraction_); } @@ -11244,10 +9052,12 @@ public int getSerializedSize() { size = 0; if (enableEntityExtraction_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableEntityExtraction_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableEntityExtraction_); } if (enableSentimentAnalysis_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableSentimentAnalysis_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableSentimentAnalysis_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -11257,18 +9067,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) obj; - if (getEnableEntityExtraction() != other.getEnableEntityExtraction()) return false; - if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; + if (getEnableEntityExtraction() + != other.getEnableEntityExtraction()) return false; + if (getEnableSentimentAnalysis() + != other.getEnableSentimentAnalysis()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -11281,109 +9090,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_ENTITY_EXTRACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableEntityExtraction()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableEntityExtraction()); hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSentimentAnalysis()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11393,52 +9191,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for analyses to run on each conversation message.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -11450,23 +9240,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - build() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig result = - buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig build() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11474,11 +9260,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig( - this); + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig(this); result.enableEntityExtraction_ = enableEntityExtraction_; result.enableSentimentAnalysis_ = enableSentimentAnalysis_; onBuilt(); @@ -11489,56 +9272,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.getDefaultInstance()) return this; if (other.getEnableEntityExtraction() != false) { setEnableEntityExtraction(other.getEnableEntityExtraction()); } @@ -11560,14 +9333,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -11577,10 +9347,8 @@ public Builder mergeFrom( return this; } - private boolean enableEntityExtraction_; + private boolean enableEntityExtraction_ ; /** - * - * *
        * Enable entity extraction in conversation messages on [agent assist
        * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11590,7 +9358,6 @@ public Builder mergeFrom(
        * 
* * bool enable_entity_extraction = 2; - * * @return The enableEntityExtraction. */ @java.lang.Override @@ -11598,8 +9365,6 @@ public boolean getEnableEntityExtraction() { return enableEntityExtraction_; } /** - * - * *
        * Enable entity extraction in conversation messages on [agent assist
        * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11609,19 +9374,16 @@ public boolean getEnableEntityExtraction() {
        * 
* * bool enable_entity_extraction = 2; - * * @param value The enableEntityExtraction to set. * @return This builder for chaining. */ public Builder setEnableEntityExtraction(boolean value) { - + enableEntityExtraction_ = value; onChanged(); return this; } /** - * - * *
        * Enable entity extraction in conversation messages on [agent assist
        * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11631,20 +9393,17 @@ public Builder setEnableEntityExtraction(boolean value) {
        * 
* * bool enable_entity_extraction = 2; - * * @return This builder for chaining. */ public Builder clearEnableEntityExtraction() { - + enableEntityExtraction_ = false; onChanged(); return this; } - private boolean enableSentimentAnalysis_; + private boolean enableSentimentAnalysis_ ; /** - * - * *
        * Enable sentiment analysis in conversation messages on [agent assist
        * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11663,7 +9422,6 @@ public Builder clearEnableEntityExtraction() {
        * 
* * bool enable_sentiment_analysis = 3; - * * @return The enableSentimentAnalysis. */ @java.lang.Override @@ -11671,8 +9429,6 @@ public boolean getEnableSentimentAnalysis() { return enableSentimentAnalysis_; } /** - * - * *
        * Enable sentiment analysis in conversation messages on [agent assist
        * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11691,19 +9447,16 @@ public boolean getEnableSentimentAnalysis() {
        * 
* * bool enable_sentiment_analysis = 3; - * * @param value The enableSentimentAnalysis to set. * @return This builder for chaining. */ public Builder setEnableSentimentAnalysis(boolean value) { - + enableSentimentAnalysis_ = value; onChanged(); return this; } /** - * - * *
        * Enable sentiment analysis in conversation messages on [agent assist
        * stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
@@ -11722,16 +9475,14 @@ public Builder setEnableSentimentAnalysis(boolean value) {
        * 
* * bool enable_sentiment_analysis = 3; - * * @return This builder for chaining. */ public Builder clearEnableSentimentAnalysis() { - + enableSentimentAnalysis_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11744,34 +9495,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig) - private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .MessageAnalysisConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig(); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageAnalysisConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MessageAnalysisConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageAnalysisConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MessageAnalysisConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11783,23 +9530,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.dialogflow.v2.NotificationConfig notificationConfig_; /** - * - * *
    * Pub/Sub topic on which to publish new agent assistant events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; - * * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -11807,25 +9551,18 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** - * - * *
    * Pub/Sub topic on which to publish new agent assistant events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; - * * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
    * Pub/Sub topic on which to publish new agent assistant events.
    * 
@@ -11833,25 +9570,18 @@ public com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig() * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); } public static final int HUMAN_AGENT_SUGGESTION_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - humanAgentSuggestionConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig humanAgentSuggestionConfig_; /** - * - * *
    * Configuration for agent assistance of human agent participant.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; * @return Whether the humanAgentSuggestionConfig field is set. */ @java.lang.Override @@ -11859,59 +9589,39 @@ public boolean hasHumanAgentSuggestionConfig() { return humanAgentSuggestionConfig_ != null; } /** - * - * *
    * Configuration for agent assistance of human agent participant.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; * @return The humanAgentSuggestionConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getHumanAgentSuggestionConfig() { - return humanAgentSuggestionConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance() - : humanAgentSuggestionConfig_; + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getHumanAgentSuggestionConfig() { + return humanAgentSuggestionConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance() : humanAgentSuggestionConfig_; } /** - * - * *
    * Configuration for agent assistance of human agent participant.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder - getHumanAgentSuggestionConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder getHumanAgentSuggestionConfigOrBuilder() { return getHumanAgentSuggestionConfig(); } public static final int END_USER_SUGGESTION_CONFIG_FIELD_NUMBER = 4; - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - endUserSuggestionConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig endUserSuggestionConfig_; /** - * - * *
    * Configuration for agent assistance of end user participant.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; * @return Whether the endUserSuggestionConfig field is set. */ @java.lang.Override @@ -11919,61 +9629,41 @@ public boolean hasEndUserSuggestionConfig() { return endUserSuggestionConfig_ != null; } /** - * - * *
    * Configuration for agent assistance of end user participant.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; * @return The endUserSuggestionConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getEndUserSuggestionConfig() { - return endUserSuggestionConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance() - : endUserSuggestionConfig_; + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getEndUserSuggestionConfig() { + return endUserSuggestionConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance() : endUserSuggestionConfig_; } /** - * - * *
    * Configuration for agent assistance of end user participant.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder - getEndUserSuggestionConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder getEndUserSuggestionConfigOrBuilder() { return getEndUserSuggestionConfig(); } public static final int MESSAGE_ANALYSIS_CONFIG_FIELD_NUMBER = 5; - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - messageAnalysisConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig messageAnalysisConfig_; /** - * - * *
    * Configuration for message analysis.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; * @return Whether the messageAnalysisConfig field is set. */ @java.lang.Override @@ -11981,45 +9671,30 @@ public boolean hasMessageAnalysisConfig() { return messageAnalysisConfig_ != null; } /** - * - * *
    * Configuration for message analysis.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; * @return The messageAnalysisConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - getMessageAnalysisConfig() { - return messageAnalysisConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .getDefaultInstance() - : messageAnalysisConfig_; + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig getMessageAnalysisConfig() { + return messageAnalysisConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.getDefaultInstance() : messageAnalysisConfig_; } /** - * - * *
    * Configuration for message analysis.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder - getMessageAnalysisConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder getMessageAnalysisConfigOrBuilder() { return getMessageAnalysisConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12031,7 +9706,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (notificationConfig_ != null) { output.writeMessage(2, getNotificationConfig()); } @@ -12054,20 +9730,20 @@ public int getSerializedSize() { size = 0; if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNotificationConfig()); } if (humanAgentSuggestionConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getHumanAgentSuggestionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHumanAgentSuggestionConfig()); } if (endUserSuggestionConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndUserSuggestionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEndUserSuggestionConfig()); } if (messageAnalysisConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMessageAnalysisConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMessageAnalysisConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -12077,30 +9753,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig) obj; if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig() + .equals(other.getNotificationConfig())) return false; } if (hasHumanAgentSuggestionConfig() != other.hasHumanAgentSuggestionConfig()) return false; if (hasHumanAgentSuggestionConfig()) { - if (!getHumanAgentSuggestionConfig().equals(other.getHumanAgentSuggestionConfig())) - return false; + if (!getHumanAgentSuggestionConfig() + .equals(other.getHumanAgentSuggestionConfig())) return false; } if (hasEndUserSuggestionConfig() != other.hasEndUserSuggestionConfig()) return false; if (hasEndUserSuggestionConfig()) { - if (!getEndUserSuggestionConfig().equals(other.getEndUserSuggestionConfig())) return false; + if (!getEndUserSuggestionConfig() + .equals(other.getEndUserSuggestionConfig())) return false; } if (hasMessageAnalysisConfig() != other.hasMessageAnalysisConfig()) return false; if (hasMessageAnalysisConfig()) { - if (!getMessageAnalysisConfig().equals(other.getMessageAnalysisConfig())) return false; + if (!getMessageAnalysisConfig() + .equals(other.getMessageAnalysisConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -12135,127 +9813,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines the Human Agent Assist to connect to a conversation.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantConfig) com.google.cloud.dialogflow.v2.HumanAgentAssistantConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.newBuilder() @@ -12263,15 +9931,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -12303,9 +9972,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantConfig_descriptor; } @java.lang.Override @@ -12324,8 +9993,7 @@ public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig build() { @java.lang.Override public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig(this); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig(this); if (notificationConfigBuilder_ == null) { result.notificationConfig_ = notificationConfig_; } else { @@ -12354,39 +10022,38 @@ public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig) { - return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig) other); + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig)other); } else { super.mergeFrom(other); return this; @@ -12394,8 +10061,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig other) { - if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.getDefaultInstance()) return this; if (other.hasNotificationConfig()) { mergeNotificationConfig(other.getNotificationConfig()); } @@ -12427,8 +10093,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -12440,47 +10105,34 @@ public Builder mergeFrom( private com.google.cloud.dialogflow.v2.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; - * * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; - * * @return The notificationConfig. */ public com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
@@ -12501,8 +10153,6 @@ public Builder setNotificationConfig(com.google.cloud.dialogflow.v2.Notification return this; } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
@@ -12521,22 +10171,17 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; */ - public Builder mergeNotificationConfig( - com.google.cloud.dialogflow.v2.NotificationConfig value) { + public Builder mergeNotificationConfig(com.google.cloud.dialogflow.v2.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.dialogflow.v2.NotificationConfig.newBuilder(notificationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); } else { notificationConfig_ = value; } @@ -12548,8 +10193,6 @@ public Builder mergeNotificationConfig( return this; } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
@@ -12568,42 +10211,33 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; */ - public com.google.cloud.dialogflow.v2.NotificationConfig.Builder - getNotificationConfigBuilder() { - + public com.google.cloud.dialogflow.v2.NotificationConfig.Builder getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; */ - public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.cloud.dialogflow.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
      * Pub/Sub topic on which to publish new agent assistant events.
      * 
@@ -12611,82 +10245,56 @@ public Builder clearNotificationConfig() { * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.NotificationConfig, - com.google.cloud.dialogflow.v2.NotificationConfig.Builder, - com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.NotificationConfig, com.google.cloud.dialogflow.v2.NotificationConfig.Builder, com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; } - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - humanAgentSuggestionConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig humanAgentSuggestionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> - humanAgentSuggestionConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> humanAgentSuggestionConfigBuilder_; /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; * @return Whether the humanAgentSuggestionConfig field is set. */ public boolean hasHumanAgentSuggestionConfig() { return humanAgentSuggestionConfigBuilder_ != null || humanAgentSuggestionConfig_ != null; } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; * @return The humanAgentSuggestionConfig. */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getHumanAgentSuggestionConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getHumanAgentSuggestionConfig() { if (humanAgentSuggestionConfigBuilder_ == null) { - return humanAgentSuggestionConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance() - : humanAgentSuggestionConfig_; + return humanAgentSuggestionConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance() : humanAgentSuggestionConfig_; } else { return humanAgentSuggestionConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ - public Builder setHumanAgentSuggestionConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { + public Builder setHumanAgentSuggestionConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { if (humanAgentSuggestionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12700,19 +10308,14 @@ public Builder setHumanAgentSuggestionConfig( return this; } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ public Builder setHumanAgentSuggestionConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder builderForValue) { if (humanAgentSuggestionConfigBuilder_ == null) { humanAgentSuggestionConfig_ = builderForValue.build(); onChanged(); @@ -12723,25 +10326,17 @@ public Builder setHumanAgentSuggestionConfig( return this; } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ - public Builder mergeHumanAgentSuggestionConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { + public Builder mergeHumanAgentSuggestionConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { if (humanAgentSuggestionConfigBuilder_ == null) { if (humanAgentSuggestionConfig_ != null) { humanAgentSuggestionConfig_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.newBuilder( - humanAgentSuggestionConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.newBuilder(humanAgentSuggestionConfig_).mergeFrom(value).buildPartial(); } else { humanAgentSuggestionConfig_ = value; } @@ -12753,15 +10348,11 @@ public Builder mergeHumanAgentSuggestionConfig( return this; } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ public Builder clearHumanAgentSuggestionConfig() { if (humanAgentSuggestionConfigBuilder_ == null) { @@ -12775,138 +10366,96 @@ public Builder clearHumanAgentSuggestionConfig() { return this; } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - getHumanAgentSuggestionConfigBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder getHumanAgentSuggestionConfigBuilder() { + onChanged(); return getHumanAgentSuggestionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder - getHumanAgentSuggestionConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder getHumanAgentSuggestionConfigOrBuilder() { if (humanAgentSuggestionConfigBuilder_ != null) { return humanAgentSuggestionConfigBuilder_.getMessageOrBuilder(); } else { - return humanAgentSuggestionConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance() - : humanAgentSuggestionConfig_; + return humanAgentSuggestionConfig_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance() : humanAgentSuggestionConfig_; } } /** - * - * *
      * Configuration for agent assistance of human agent participant.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> getHumanAgentSuggestionConfigFieldBuilder() { if (humanAgentSuggestionConfigBuilder_ == null) { - humanAgentSuggestionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder>( - getHumanAgentSuggestionConfig(), getParentForChildren(), isClean()); + humanAgentSuggestionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder>( + getHumanAgentSuggestionConfig(), + getParentForChildren(), + isClean()); humanAgentSuggestionConfig_ = null; } return humanAgentSuggestionConfigBuilder_; } - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - endUserSuggestionConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig endUserSuggestionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> - endUserSuggestionConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> endUserSuggestionConfigBuilder_; /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; * @return Whether the endUserSuggestionConfig field is set. */ public boolean hasEndUserSuggestionConfig() { return endUserSuggestionConfigBuilder_ != null || endUserSuggestionConfig_ != null; } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; * @return The endUserSuggestionConfig. */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getEndUserSuggestionConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getEndUserSuggestionConfig() { if (endUserSuggestionConfigBuilder_ == null) { - return endUserSuggestionConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance() - : endUserSuggestionConfig_; + return endUserSuggestionConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance() : endUserSuggestionConfig_; } else { return endUserSuggestionConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ - public Builder setEndUserSuggestionConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { + public Builder setEndUserSuggestionConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { if (endUserSuggestionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12920,21 +10469,16 @@ public Builder setEndUserSuggestionConfig( return this; } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ public Builder setEndUserSuggestionConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder builderForValue) { if (endUserSuggestionConfigBuilder_ == null) { endUserSuggestionConfig_ = builderForValue.build(); onChanged(); @@ -12945,27 +10489,19 @@ public Builder setEndUserSuggestionConfig( return this; } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ - public Builder mergeEndUserSuggestionConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { + public Builder mergeEndUserSuggestionConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig value) { if (endUserSuggestionConfigBuilder_ == null) { if (endUserSuggestionConfig_ != null) { endUserSuggestionConfig_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.newBuilder( - endUserSuggestionConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.newBuilder(endUserSuggestionConfig_).mergeFrom(value).buildPartial(); } else { endUserSuggestionConfig_ = value; } @@ -12977,17 +10513,13 @@ public Builder mergeEndUserSuggestionConfig( return this; } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ public Builder clearEndUserSuggestionConfig() { if (endUserSuggestionConfigBuilder_ == null) { @@ -13001,138 +10533,96 @@ public Builder clearEndUserSuggestionConfig() { return this; } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder - getEndUserSuggestionConfigBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder getEndUserSuggestionConfigBuilder() { + onChanged(); return getEndUserSuggestionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder - getEndUserSuggestionConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder getEndUserSuggestionConfigOrBuilder() { if (endUserSuggestionConfigBuilder_ != null) { return endUserSuggestionConfigBuilder_.getMessageOrBuilder(); } else { - return endUserSuggestionConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - .getDefaultInstance() - : endUserSuggestionConfig_; + return endUserSuggestionConfig_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.getDefaultInstance() : endUserSuggestionConfig_; } } /** - * - * *
      * Configuration for agent assistance of end user participant.
      * Currently, this feature is not general available, please contact Google
      * to get access.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder> getEndUserSuggestionConfigFieldBuilder() { if (endUserSuggestionConfigBuilder_ == null) { - endUserSuggestionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder>( - getEndUserSuggestionConfig(), getParentForChildren(), isClean()); + endUserSuggestionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder>( + getEndUserSuggestionConfig(), + getParentForChildren(), + isClean()); endUserSuggestionConfig_ = null; } return endUserSuggestionConfigBuilder_; } - private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - messageAnalysisConfig_; + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig messageAnalysisConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder> - messageAnalysisConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder> messageAnalysisConfigBuilder_; /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; * @return Whether the messageAnalysisConfig field is set. */ public boolean hasMessageAnalysisConfig() { return messageAnalysisConfigBuilder_ != null || messageAnalysisConfig_ != null; } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; * @return The messageAnalysisConfig. */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - getMessageAnalysisConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig getMessageAnalysisConfig() { if (messageAnalysisConfigBuilder_ == null) { - return messageAnalysisConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .getDefaultInstance() - : messageAnalysisConfig_; + return messageAnalysisConfig_ == null ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.getDefaultInstance() : messageAnalysisConfig_; } else { return messageAnalysisConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ - public Builder setMessageAnalysisConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig value) { + public Builder setMessageAnalysisConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig value) { if (messageAnalysisConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13146,19 +10636,14 @@ public Builder setMessageAnalysisConfig( return this; } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ public Builder setMessageAnalysisConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder builderForValue) { if (messageAnalysisConfigBuilder_ == null) { messageAnalysisConfig_ = builderForValue.build(); onChanged(); @@ -13169,25 +10654,17 @@ public Builder setMessageAnalysisConfig( return this; } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ - public Builder mergeMessageAnalysisConfig( - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig value) { + public Builder mergeMessageAnalysisConfig(com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig value) { if (messageAnalysisConfigBuilder_ == null) { if (messageAnalysisConfig_ != null) { messageAnalysisConfig_ = - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .newBuilder(messageAnalysisConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.newBuilder(messageAnalysisConfig_).mergeFrom(value).buildPartial(); } else { messageAnalysisConfig_ = value; } @@ -13199,15 +10676,11 @@ public Builder mergeMessageAnalysisConfig( return this; } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ public Builder clearMessageAnalysisConfig() { if (messageAnalysisConfigBuilder_ == null) { @@ -13221,76 +10694,55 @@ public Builder clearMessageAnalysisConfig() { return this; } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder - getMessageAnalysisConfigBuilder() { - + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder getMessageAnalysisConfigBuilder() { + onChanged(); return getMessageAnalysisConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ - public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder - getMessageAnalysisConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder getMessageAnalysisConfigOrBuilder() { if (messageAnalysisConfigBuilder_ != null) { return messageAnalysisConfigBuilder_.getMessageOrBuilder(); } else { - return messageAnalysisConfig_ == null - ? com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .getDefaultInstance() - : messageAnalysisConfig_; + return messageAnalysisConfig_ == null ? + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.getDefaultInstance() : messageAnalysisConfig_; } } /** - * - * *
      * Configuration for message analysis.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder> getMessageAnalysisConfigFieldBuilder() { if (messageAnalysisConfigBuilder_ == null) { - messageAnalysisConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig - .MessageAnalysisConfigOrBuilder>( - getMessageAnalysisConfig(), getParentForChildren(), isClean()); + messageAnalysisConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder>( + getMessageAnalysisConfig(), + getParentForChildren(), + isClean()); messageAnalysisConfig_ = null; } return messageAnalysisConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -13300,12 +10752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantConfig) private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig(); } @@ -13314,16 +10766,16 @@ public static com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HumanAgentAssistantConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HumanAgentAssistantConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HumanAgentAssistantConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HumanAgentAssistantConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13338,4 +10790,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfigOrBuilder.java similarity index 57% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfigOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfigOrBuilder.java index 2c725f31f..91bc232a3 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfigOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/conversation_profile.proto package com.google.cloud.dialogflow.v2; -public interface HumanAgentAssistantConfigOrBuilder - extends +public interface HumanAgentAssistantConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Pub/Sub topic on which to publish new agent assistant events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; - * * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** - * - * *
    * Pub/Sub topic on which to publish new agent assistant events.
    * 
* * .google.cloud.dialogflow.v2.NotificationConfig notification_config = 2; - * * @return The notificationConfig. */ com.google.cloud.dialogflow.v2.NotificationConfig getNotificationConfig(); /** - * - * *
    * Pub/Sub topic on which to publish new agent assistant events.
    * 
@@ -59,137 +35,89 @@ public interface HumanAgentAssistantConfigOrBuilder com.google.cloud.dialogflow.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); /** - * - * *
    * Configuration for agent assistance of human agent participant.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; * @return Whether the humanAgentSuggestionConfig field is set. */ boolean hasHumanAgentSuggestionConfig(); /** - * - * *
    * Configuration for agent assistance of human agent participant.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; * @return The humanAgentSuggestionConfig. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getHumanAgentSuggestionConfig(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getHumanAgentSuggestionConfig(); /** - * - * *
    * Configuration for agent assistance of human agent participant.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig human_agent_suggestion_config = 3; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder - getHumanAgentSuggestionConfigOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder getHumanAgentSuggestionConfigOrBuilder(); /** - * - * *
    * Configuration for agent assistance of end user participant.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; * @return Whether the endUserSuggestionConfig field is set. */ boolean hasEndUserSuggestionConfig(); /** - * - * *
    * Configuration for agent assistance of end user participant.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; * @return The endUserSuggestionConfig. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig - getEndUserSuggestionConfig(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig getEndUserSuggestionConfig(); /** - * - * *
    * Configuration for agent assistance of end user participant.
    * Currently, this feature is not general available, please contact Google
    * to get access.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig end_user_suggestion_config = 4; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder - getEndUserSuggestionConfigOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfigOrBuilder getEndUserSuggestionConfigOrBuilder(); /** - * - * *
    * Configuration for message analysis.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; * @return Whether the messageAnalysisConfig field is set. */ boolean hasMessageAnalysisConfig(); /** - * - * *
    * Configuration for message analysis.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; * @return The messageAnalysisConfig. */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig - getMessageAnalysisConfig(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig getMessageAnalysisConfig(); /** - * - * *
    * Configuration for message analysis.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; - * + * .google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig message_analysis_config = 5; */ - com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder - getMessageAnalysisConfigOrBuilder(); + com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfigOrBuilder getMessageAnalysisConfigOrBuilder(); } diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEvent.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEvent.java similarity index 76% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEvent.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEvent.java index 7e9082957..846c71e6c 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEvent.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEvent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/human_agent_assistant_event.proto package com.google.cloud.dialogflow.v2; /** - * - * *
  * Represents a notification sent to Cloud Pub/Sub subscribers for
  * human agent assistant events in a specific conversation.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantEvent}
  */
-public final class HumanAgentAssistantEvent extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class HumanAgentAssistantEvent extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentAssistantEvent)
     HumanAgentAssistantEventOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use HumanAgentAssistantEvent.newBuilder() to construct.
   private HumanAgentAssistantEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private HumanAgentAssistantEvent() {
     conversation_ = "";
     participant_ = "";
@@ -46,15 +28,16 @@ private HumanAgentAssistantEvent() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new HumanAgentAssistantEvent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private HumanAgentAssistantEvent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,45 +57,41 @@ private HumanAgentAssistantEvent(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              conversation_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            conversation_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              participant_ = s;
-              break;
-            }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                suggestionResults_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              suggestionResults_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.SuggestionResult.parser(), extensionRegistry));
-              break;
+            participant_ = s;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              suggestionResults_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            suggestionResults_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.SuggestionResult.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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         suggestionResults_ = java.util.Collections.unmodifiableList(suggestionResults_);
@@ -121,34 +100,28 @@ private HumanAgentAssistantEvent(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto
-        .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto
-        .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.class,
-            com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.Builder.class);
+            com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.Builder.class);
   }
 
   public static final int CONVERSATION_FIELD_NUMBER = 1;
   private volatile java.lang.Object conversation_;
   /**
-   *
-   *
    * 
    * The conversation this notification refers to.
    * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
    * 
* * string conversation = 1; - * * @return The conversation. */ @java.lang.Override @@ -157,30 +130,30 @@ public java.lang.String getConversation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversation_ = s; return s; } } /** - * - * *
    * The conversation this notification refers to.
    * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
    * 
* * string conversation = 1; - * * @return The bytes for conversation. */ @java.lang.Override - public com.google.protobuf.ByteString getConversationBytes() { + public com.google.protobuf.ByteString + getConversationBytes() { java.lang.Object ref = conversation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversation_ = b; return b; } else { @@ -191,8 +164,6 @@ public com.google.protobuf.ByteString getConversationBytes() { public static final int PARTICIPANT_FIELD_NUMBER = 3; private volatile java.lang.Object participant_; /** - * - * *
    * The participant that the suggestion is compiled for.
    * Format: `projects/<Project ID>/conversations/<Conversation
@@ -200,7 +171,6 @@ public com.google.protobuf.ByteString getConversationBytes() {
    * 
* * string participant = 3; - * * @return The participant. */ @java.lang.Override @@ -209,15 +179,14 @@ public java.lang.String getParticipant() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); participant_ = s; return s; } } /** - * - * *
    * The participant that the suggestion is compiled for.
    * Format: `projects/<Project ID>/conversations/<Conversation
@@ -225,15 +194,16 @@ public java.lang.String getParticipant() {
    * 
* * string participant = 3; - * * @return The bytes for participant. */ @java.lang.Override - public com.google.protobuf.ByteString getParticipantBytes() { + public com.google.protobuf.ByteString + getParticipantBytes() { java.lang.Object ref = participant_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); participant_ = b; return b; } else { @@ -244,8 +214,6 @@ public com.google.protobuf.ByteString getParticipantBytes() { public static final int SUGGESTION_RESULTS_FIELD_NUMBER = 5; private java.util.List suggestionResults_; /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
@@ -253,13 +221,10 @@ public com.google.protobuf.ByteString getParticipantBytes() { * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ @java.lang.Override - public java.util.List - getSuggestionResultsList() { + public java.util.List getSuggestionResultsList() { return suggestionResults_; } /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
@@ -267,13 +232,11 @@ public com.google.protobuf.ByteString getParticipantBytes() { * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ @java.lang.Override - public java.util.List + public java.util.List getSuggestionResultsOrBuilderList() { return suggestionResults_; } /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
@@ -285,8 +248,6 @@ public int getSuggestionResultsCount() { return suggestionResults_.size(); } /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
@@ -298,8 +259,6 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getSuggestionResults(int return suggestionResults_.get(index); } /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
@@ -313,7 +272,6 @@ public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getSuggestionRes } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +283,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getConversationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conversation_); } @@ -351,8 +310,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, participant_); } for (int i = 0; i < suggestionResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, suggestionResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, suggestionResults_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -362,17 +321,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent other = - (com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent) obj; + com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent other = (com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent) obj; - if (!getConversation().equals(other.getConversation())) return false; - if (!getParticipant().equals(other.getParticipant())) return false; - if (!getSuggestionResultsList().equals(other.getSuggestionResultsList())) return false; + if (!getConversation() + .equals(other.getConversation())) return false; + if (!getParticipant() + .equals(other.getParticipant())) return false; + if (!getSuggestionResultsList() + .equals(other.getSuggestionResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,104 +359,96 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a notification sent to Cloud Pub/Sub subscribers for
    * human agent assistant events in a specific conversation.
@@ -503,23 +456,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentAssistantEvent}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentAssistantEvent)
       com.google.cloud.dialogflow.v2.HumanAgentAssistantEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto
-          .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto
-          .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.class,
-              com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.Builder.class);
+              com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.class, com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.newBuilder()
@@ -527,17 +478,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getSuggestionResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -555,9 +506,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto
-          .internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.HumanAgentAssistantEventProto.internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_descriptor;
     }
 
     @java.lang.Override
@@ -576,8 +527,7 @@ public com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent buildPartial() {
-      com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent result =
-          new com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent(this);
+      com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent result = new com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent(this);
       int from_bitField0_ = bitField0_;
       result.conversation_ = conversation_;
       result.participant_ = participant_;
@@ -598,39 +548,38 @@ public com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -638,8 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent other) {
-      if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent.getDefaultInstance()) return this;
       if (!other.getConversation().isEmpty()) {
         conversation_ = other.conversation_;
         onChanged();
@@ -666,10 +614,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent
             suggestionResultsBuilder_ = null;
             suggestionResults_ = other.suggestionResults_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            suggestionResultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSuggestionResultsFieldBuilder()
-                    : null;
+            suggestionResultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSuggestionResultsFieldBuilder() : null;
           } else {
             suggestionResultsBuilder_.addAllMessages(other.suggestionResults_);
           }
@@ -694,8 +641,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -704,26 +650,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object conversation_ = "";
     /**
-     *
-     *
      * 
      * The conversation this notification refers to.
      * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
      * 
* * string conversation = 1; - * * @return The conversation. */ public java.lang.String getConversation() { java.lang.Object ref = conversation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); conversation_ = s; return s; @@ -732,22 +675,21 @@ public java.lang.String getConversation() { } } /** - * - * *
      * The conversation this notification refers to.
      * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
      * 
* * string conversation = 1; - * * @return The bytes for conversation. */ - public com.google.protobuf.ByteString getConversationBytes() { + public com.google.protobuf.ByteString + getConversationBytes() { java.lang.Object ref = conversation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); conversation_ = b; return b; } else { @@ -755,64 +697,57 @@ public com.google.protobuf.ByteString getConversationBytes() { } } /** - * - * *
      * The conversation this notification refers to.
      * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
      * 
* * string conversation = 1; - * * @param value The conversation to set. * @return This builder for chaining. */ - public Builder setConversation(java.lang.String value) { + public Builder setConversation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + conversation_ = value; onChanged(); return this; } /** - * - * *
      * The conversation this notification refers to.
      * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
      * 
* * string conversation = 1; - * * @return This builder for chaining. */ public Builder clearConversation() { - + conversation_ = getDefaultInstance().getConversation(); onChanged(); return this; } /** - * - * *
      * The conversation this notification refers to.
      * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
      * 
* * string conversation = 1; - * * @param value The bytes for conversation to set. * @return This builder for chaining. */ - public Builder setConversationBytes(com.google.protobuf.ByteString value) { + public Builder setConversationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversation_ = value; onChanged(); return this; @@ -820,8 +755,6 @@ public Builder setConversationBytes(com.google.protobuf.ByteString value) { private java.lang.Object participant_ = ""; /** - * - * *
      * The participant that the suggestion is compiled for.
      * Format: `projects/<Project ID>/conversations/<Conversation
@@ -829,13 +762,13 @@ public Builder setConversationBytes(com.google.protobuf.ByteString value) {
      * 
* * string participant = 3; - * * @return The participant. */ public java.lang.String getParticipant() { java.lang.Object ref = participant_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); participant_ = s; return s; @@ -844,8 +777,6 @@ public java.lang.String getParticipant() { } } /** - * - * *
      * The participant that the suggestion is compiled for.
      * Format: `projects/<Project ID>/conversations/<Conversation
@@ -853,14 +784,15 @@ public java.lang.String getParticipant() {
      * 
* * string participant = 3; - * * @return The bytes for participant. */ - public com.google.protobuf.ByteString getParticipantBytes() { + public com.google.protobuf.ByteString + getParticipantBytes() { java.lang.Object ref = participant_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); participant_ = b; return b; } else { @@ -868,8 +800,6 @@ public com.google.protobuf.ByteString getParticipantBytes() { } } /** - * - * *
      * The participant that the suggestion is compiled for.
      * Format: `projects/<Project ID>/conversations/<Conversation
@@ -877,22 +807,20 @@ public com.google.protobuf.ByteString getParticipantBytes() {
      * 
* * string participant = 3; - * * @param value The participant to set. * @return This builder for chaining. */ - public Builder setParticipant(java.lang.String value) { + public Builder setParticipant( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + participant_ = value; onChanged(); return this; } /** - * - * *
      * The participant that the suggestion is compiled for.
      * Format: `projects/<Project ID>/conversations/<Conversation
@@ -900,18 +828,15 @@ public Builder setParticipant(java.lang.String value) {
      * 
* * string participant = 3; - * * @return This builder for chaining. */ public Builder clearParticipant() { - + participant_ = getDefaultInstance().getParticipant(); onChanged(); return this; } /** - * - * *
      * The participant that the suggestion is compiled for.
      * Format: `projects/<Project ID>/conversations/<Conversation
@@ -919,50 +844,41 @@ public Builder clearParticipant() {
      * 
* * string participant = 3; - * * @param value The bytes for participant to set. * @return This builder for chaining. */ - public Builder setParticipantBytes(com.google.protobuf.ByteString value) { + public Builder setParticipantBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + participant_ = value; onChanged(); return this; } private java.util.List suggestionResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSuggestionResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - suggestionResults_ = - new java.util.ArrayList( - suggestionResults_); + suggestionResults_ = new java.util.ArrayList(suggestionResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> - suggestionResultsBuilder_; + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> suggestionResultsBuilder_; /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ - public java.util.List - getSuggestionResultsList() { + public java.util.List getSuggestionResultsList() { if (suggestionResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(suggestionResults_); } else { @@ -970,8 +886,6 @@ private void ensureSuggestionResultsIsMutable() { } } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -986,8 +900,6 @@ public int getSuggestionResultsCount() { } } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1002,8 +914,6 @@ public com.google.cloud.dialogflow.v2.SuggestionResult getSuggestionResults(int } } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1025,8 +935,6 @@ public Builder setSuggestionResults( return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1045,8 +953,6 @@ public Builder setSuggestionResults( return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1067,8 +973,6 @@ public Builder addSuggestionResults(com.google.cloud.dialogflow.v2.SuggestionRes return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1090,8 +994,6 @@ public Builder addSuggestionResults( return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1110,8 +1012,6 @@ public Builder addSuggestionResults( return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1130,8 +1030,6 @@ public Builder addSuggestionResults( return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1142,7 +1040,8 @@ public Builder addAllSuggestionResults( java.lang.Iterable values) { if (suggestionResultsBuilder_ == null) { ensureSuggestionResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestionResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, suggestionResults_); onChanged(); } else { suggestionResultsBuilder_.addAllMessages(values); @@ -1150,8 +1049,6 @@ public Builder addAllSuggestionResults( return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1169,8 +1066,6 @@ public Builder clearSuggestionResults() { return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1188,8 +1083,6 @@ public Builder removeSuggestionResults(int index) { return this; } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1201,8 +1094,6 @@ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder getSuggestionResu return getSuggestionResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1212,22 +1103,19 @@ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder getSuggestionResu public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getSuggestionResultsOrBuilder( int index) { if (suggestionResultsBuilder_ == null) { - return suggestionResults_.get(index); - } else { + return suggestionResults_.get(index); } else { return suggestionResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ - public java.util.List - getSuggestionResultsOrBuilderList() { + public java.util.List + getSuggestionResultsOrBuilderList() { if (suggestionResultsBuilder_ != null) { return suggestionResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1235,8 +1123,6 @@ public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getSuggestionRes } } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1244,12 +1130,10 @@ public com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getSuggestionRes * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addSuggestionResultsBuilder() { - return getSuggestionResultsFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); + return getSuggestionResultsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
@@ -1258,34 +1142,26 @@ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addSuggestionResu */ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addSuggestionResultsBuilder( int index) { - return getSuggestionResultsFieldBuilder() - .addBuilder(index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); + return getSuggestionResultsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.SuggestionResult.getDefaultInstance()); } /** - * - * *
      * The suggestion results payload that this notification refers to.
      * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ - public java.util.List - getSuggestionResultsBuilderList() { + public java.util.List + getSuggestionResultsBuilderList() { return getSuggestionResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder> getSuggestionResultsFieldBuilder() { if (suggestionResultsBuilder_ == null) { - suggestionResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SuggestionResult, - com.google.cloud.dialogflow.v2.SuggestionResult.Builder, - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( + suggestionResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.SuggestionResult, com.google.cloud.dialogflow.v2.SuggestionResult.Builder, com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder>( suggestionResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1294,9 +1170,9 @@ public com.google.cloud.dialogflow.v2.SuggestionResult.Builder addSuggestionResu } return suggestionResultsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1306,12 +1182,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentAssistantEvent) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentAssistantEvent) private static final com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent(); } @@ -1320,16 +1196,16 @@ public static com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HumanAgentAssistantEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HumanAgentAssistantEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HumanAgentAssistantEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HumanAgentAssistantEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1344,4 +1220,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.HumanAgentAssistantEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventOrBuilder.java similarity index 75% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventOrBuilder.java index 8769fdfb7..76f0cf460 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/human_agent_assistant_event.proto package com.google.cloud.dialogflow.v2; -public interface HumanAgentAssistantEventOrBuilder - extends +public interface HumanAgentAssistantEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentAssistantEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The conversation this notification refers to.
    * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
    * 
* * string conversation = 1; - * * @return The conversation. */ java.lang.String getConversation(); /** - * - * *
    * The conversation this notification refers to.
    * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
    * 
* * string conversation = 1; - * * @return The bytes for conversation. */ - com.google.protobuf.ByteString getConversationBytes(); + com.google.protobuf.ByteString + getConversationBytes(); /** - * - * *
    * The participant that the suggestion is compiled for.
    * Format: `projects/<Project ID>/conversations/<Conversation
@@ -60,13 +37,10 @@ public interface HumanAgentAssistantEventOrBuilder
    * 
* * string participant = 3; - * * @return The participant. */ java.lang.String getParticipant(); /** - * - * *
    * The participant that the suggestion is compiled for.
    * Format: `projects/<Project ID>/conversations/<Conversation
@@ -74,24 +48,21 @@ public interface HumanAgentAssistantEventOrBuilder
    * 
* * string participant = 3; - * * @return The bytes for participant. */ - com.google.protobuf.ByteString getParticipantBytes(); + com.google.protobuf.ByteString + getParticipantBytes(); /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ - java.util.List getSuggestionResultsList(); + java.util.List + getSuggestionResultsList(); /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
@@ -100,8 +71,6 @@ public interface HumanAgentAssistantEventOrBuilder */ com.google.cloud.dialogflow.v2.SuggestionResult getSuggestionResults(int index); /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
@@ -110,24 +79,21 @@ public interface HumanAgentAssistantEventOrBuilder */ int getSuggestionResultsCount(); /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ - java.util.List + java.util.List getSuggestionResultsOrBuilderList(); /** - * - * *
    * The suggestion results payload that this notification refers to.
    * 
* * repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5; */ - com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getSuggestionResultsOrBuilder(int index); + com.google.cloud.dialogflow.v2.SuggestionResultOrBuilder getSuggestionResultsOrBuilder( + int index); } diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventProto.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventProto.java new file mode 100644 index 000000000..b4e31efd7 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantEventProto.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/human_agent_assistant_event.proto + +package com.google.cloud.dialogflow.v2; + +public final class HumanAgentAssistantEventProto { + private HumanAgentAssistantEventProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_HumanAgentAssistantEvent_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 * Defines the hand off to a live agent, typically on which external agent * service provider to connect to a conversation. @@ -30,29 +13,30 @@ * * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentHandoffConfig} */ -public final class HumanAgentHandoffConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HumanAgentHandoffConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentHandoffConfig) HumanAgentHandoffConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HumanAgentHandoffConfig.newBuilder() to construct. private HumanAgentHandoffConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HumanAgentHandoffConfig() {} + private HumanAgentHandoffConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HumanAgentHandoffConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HumanAgentHandoffConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,157 +55,124 @@ private HumanAgentHandoffConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder - subBuilder = null; - if (agentServiceCase_ == 1) { - subBuilder = - ((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_) - .toBuilder(); - } - agentService_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_); - agentService_ = subBuilder.buildPartial(); - } - agentServiceCase_ = 1; - break; + case 10: { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder subBuilder = null; + if (agentServiceCase_ == 1) { + subBuilder = ((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_).toBuilder(); } - case 18: - { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .Builder - subBuilder = null; - if (agentServiceCase_ == 2) { - subBuilder = - ((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfig) - agentService_) - .toBuilder(); - } - agentService_ = - input.readMessage( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfig) - agentService_); - agentService_ = subBuilder.buildPartial(); - } - agentServiceCase_ = 2; - break; + agentService_ = + input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_); + agentService_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + agentServiceCase_ = 1; + break; + } + case 18: { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder subBuilder = null; + if (agentServiceCase_ == 2) { + subBuilder = ((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_).toBuilder(); + } + agentService_ = + input.readMessage(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_); + agentService_ = subBuilder.buildPartial(); } + agentServiceCase_ = 2; + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.class, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder.class); } - public interface LivePersonConfigOrBuilder - extends + public interface LivePersonConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Account number of the LivePerson account to connect. This is
      * the account number you input at the login page.
      * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accountNumber. */ java.lang.String getAccountNumber(); /** - * - * *
      * Required. Account number of the LivePerson account to connect. This is
      * the account number you input at the login page.
      * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accountNumber. */ - com.google.protobuf.ByteString getAccountNumberBytes(); + com.google.protobuf.ByteString + getAccountNumberBytes(); } /** - * - * *
    * Configuration specific to LivePerson (https://www.liveperson.com).
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig} */ - public static final class LivePersonConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class LivePersonConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) LivePersonConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LivePersonConfig.newBuilder() to construct. private LivePersonConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LivePersonConfig() { accountNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LivePersonConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LivePersonConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -240,60 +191,53 @@ private LivePersonConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - accountNumber_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + accountNumber_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder - .class); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.class, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder.class); } public static final int ACCOUNT_NUMBER_FIELD_NUMBER = 1; private volatile java.lang.Object accountNumber_; /** - * - * *
      * Required. Account number of the LivePerson account to connect. This is
      * the account number you input at the login page.
      * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accountNumber. */ @java.lang.Override @@ -302,30 +246,30 @@ public java.lang.String getAccountNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountNumber_ = s; return s; } } /** - * - * *
      * Required. Account number of the LivePerson account to connect. This is
      * the account number you input at the login page.
      * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accountNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getAccountNumberBytes() { + public com.google.protobuf.ByteString + getAccountNumberBytes() { java.lang.Object ref = accountNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountNumber_ = b; return b; } else { @@ -334,7 +278,6 @@ public com.google.protobuf.ByteString getAccountNumberBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -346,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getAccountNumberBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountNumber_); } @@ -370,16 +314,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig other = (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) obj; - if (!getAccountNumber().equals(other.getAccountNumber())) return false; + if (!getAccountNumber() + .equals(other.getAccountNumber())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -399,95 +342,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -497,50 +432,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration specific to LivePerson (https://www.liveperson.com).
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.class, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder - .class); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.class, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -550,22 +479,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_LivePersonConfig_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig build() { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig result = - buildPartial(); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -573,10 +499,8 @@ public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig b } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig(this); + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig result = new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig(this); result.accountNumber_ = accountNumber_; onBuilt(); return result; @@ -586,54 +510,46 @@ public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance()) return this; if (!other.getAccountNumber().isEmpty()) { accountNumber_ = other.accountNumber_; onChanged(); @@ -653,14 +569,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parsedMessage = - null; + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +585,19 @@ public Builder mergeFrom( private java.lang.Object accountNumber_ = ""; /** - * - * *
        * Required. Account number of the LivePerson account to connect. This is
        * the account number you input at the login page.
        * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accountNumber. */ public java.lang.String getAccountNumber() { java.lang.Object ref = accountNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountNumber_ = s; return s; @@ -695,22 +606,21 @@ public java.lang.String getAccountNumber() { } } /** - * - * *
        * Required. Account number of the LivePerson account to connect. This is
        * the account number you input at the login page.
        * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accountNumber. */ - public com.google.protobuf.ByteString getAccountNumberBytes() { + public com.google.protobuf.ByteString + getAccountNumberBytes() { java.lang.Object ref = accountNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accountNumber_ = b; return b; } else { @@ -718,69 +628,61 @@ public com.google.protobuf.ByteString getAccountNumberBytes() { } } /** - * - * *
        * Required. Account number of the LivePerson account to connect. This is
        * the account number you input at the login page.
        * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The accountNumber to set. * @return This builder for chaining. */ - public Builder setAccountNumber(java.lang.String value) { + public Builder setAccountNumber( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accountNumber_ = value; onChanged(); return this; } /** - * - * *
        * Required. Account number of the LivePerson account to connect. This is
        * the account number you input at the login page.
        * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAccountNumber() { - + accountNumber_ = getDefaultInstance().getAccountNumber(); onChanged(); return this; } /** - * - * *
        * Required. Account number of the LivePerson account to connect. This is
        * the account number you input at the login page.
        * 
* * string account_number = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for accountNumber to set. * @return This builder for chaining. */ - public Builder setAccountNumberBytes(com.google.protobuf.ByteString value) { + public Builder setAccountNumberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountNumber_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -793,33 +695,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - private static final com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig(); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LivePersonConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LivePersonConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LivePersonConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LivePersonConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,95 +730,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SalesforceLiveAgentConfigOrBuilder - extends + public interface SalesforceLiveAgentConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The organization ID of the Salesforce account.
      * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The organizationId. */ java.lang.String getOrganizationId(); /** - * - * *
      * Required. The organization ID of the Salesforce account.
      * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for organizationId. */ - com.google.protobuf.ByteString getOrganizationIdBytes(); + com.google.protobuf.ByteString + getOrganizationIdBytes(); /** - * - * *
      * Required. Live Agent deployment ID.
      * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deploymentId. */ java.lang.String getDeploymentId(); /** - * - * *
      * Required. Live Agent deployment ID.
      * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deploymentId. */ - com.google.protobuf.ByteString getDeploymentIdBytes(); + com.google.protobuf.ByteString + getDeploymentIdBytes(); /** - * - * *
      * Required. Live Agent chat button ID.
      * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The buttonId. */ java.lang.String getButtonId(); /** - * - * *
      * Required. Live Agent chat button ID.
      * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for buttonId. */ - com.google.protobuf.ByteString getButtonIdBytes(); + com.google.protobuf.ByteString + getButtonIdBytes(); /** - * - * *
      * Required. Domain of the Live Agent endpoint for this agent. You can find
      * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -928,13 +809,10 @@ public interface SalesforceLiveAgentConfigOrBuilder
      * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The endpointDomain. */ java.lang.String getEndpointDomain(); /** - * - * *
      * Required. Domain of the Live Agent endpoint for this agent. You can find
      * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -943,31 +821,27 @@ public interface SalesforceLiveAgentConfigOrBuilder
      * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for endpointDomain. */ - com.google.protobuf.ByteString getEndpointDomainBytes(); + com.google.protobuf.ByteString + getEndpointDomainBytes(); } /** - * - * *
    * Configuration specific to Salesforce Live Agent.
    * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig} */ - public static final class SalesforceLiveAgentConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SalesforceLiveAgentConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) SalesforceLiveAgentConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SalesforceLiveAgentConfig.newBuilder() to construct. private SalesforceLiveAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SalesforceLiveAgentConfig() { organizationId_ = ""; deploymentId_ = ""; @@ -977,15 +851,16 @@ private SalesforceLiveAgentConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SalesforceLiveAgentConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SalesforceLiveAgentConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1004,81 +879,70 @@ private SalesforceLiveAgentConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - organizationId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + organizationId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - deploymentId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + deploymentId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - buttonId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + buttonId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - endpointDomain_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + endpointDomain_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.class, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder.class); } public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object organizationId_; /** - * - * *
      * Required. The organization ID of the Salesforce account.
      * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The organizationId. */ @java.lang.Override @@ -1087,29 +951,29 @@ public java.lang.String getOrganizationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationId_ = s; return s; } } /** - * - * *
      * Required. The organization ID of the Salesforce account.
      * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for organizationId. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationIdBytes() { + public com.google.protobuf.ByteString + getOrganizationIdBytes() { java.lang.Object ref = organizationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organizationId_ = b; return b; } else { @@ -1120,14 +984,11 @@ public com.google.protobuf.ByteString getOrganizationIdBytes() { public static final int DEPLOYMENT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object deploymentId_; /** - * - * *
      * Required. Live Agent deployment ID.
      * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deploymentId. */ @java.lang.Override @@ -1136,29 +997,29 @@ public java.lang.String getDeploymentId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deploymentId_ = s; return s; } } /** - * - * *
      * Required. Live Agent deployment ID.
      * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deploymentId. */ @java.lang.Override - public com.google.protobuf.ByteString getDeploymentIdBytes() { + public com.google.protobuf.ByteString + getDeploymentIdBytes() { java.lang.Object ref = deploymentId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deploymentId_ = b; return b; } else { @@ -1169,14 +1030,11 @@ public com.google.protobuf.ByteString getDeploymentIdBytes() { public static final int BUTTON_ID_FIELD_NUMBER = 3; private volatile java.lang.Object buttonId_; /** - * - * *
      * Required. Live Agent chat button ID.
      * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The buttonId. */ @java.lang.Override @@ -1185,29 +1043,29 @@ public java.lang.String getButtonId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buttonId_ = s; return s; } } /** - * - * *
      * Required. Live Agent chat button ID.
      * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for buttonId. */ @java.lang.Override - public com.google.protobuf.ByteString getButtonIdBytes() { + public com.google.protobuf.ByteString + getButtonIdBytes() { java.lang.Object ref = buttonId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buttonId_ = b; return b; } else { @@ -1218,8 +1076,6 @@ public com.google.protobuf.ByteString getButtonIdBytes() { public static final int ENDPOINT_DOMAIN_FIELD_NUMBER = 4; private volatile java.lang.Object endpointDomain_; /** - * - * *
      * Required. Domain of the Live Agent endpoint for this agent. You can find
      * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -1228,7 +1084,6 @@ public com.google.protobuf.ByteString getButtonIdBytes() {
      * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The endpointDomain. */ @java.lang.Override @@ -1237,15 +1092,14 @@ public java.lang.String getEndpointDomain() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpointDomain_ = s; return s; } } /** - * - * *
      * Required. Domain of the Live Agent endpoint for this agent. You can find
      * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -1254,15 +1108,16 @@ public java.lang.String getEndpointDomain() {
      * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for endpointDomain. */ @java.lang.Override - public com.google.protobuf.ByteString getEndpointDomainBytes() { + public com.google.protobuf.ByteString + getEndpointDomainBytes() { java.lang.Object ref = endpointDomain_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endpointDomain_ = b; return b; } else { @@ -1271,7 +1126,6 @@ public com.google.protobuf.ByteString getEndpointDomainBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1283,7 +1137,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getOrganizationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organizationId_); } @@ -1325,20 +1180,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig)) { + if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig other = (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) obj; - if (!getOrganizationId().equals(other.getOrganizationId())) return false; - if (!getDeploymentId().equals(other.getDeploymentId())) return false; - if (!getButtonId().equals(other.getButtonId())) return false; - if (!getEndpointDomain().equals(other.getEndpointDomain())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (!getDeploymentId() + .equals(other.getDeploymentId())) return false; + if (!getButtonId() + .equals(other.getButtonId())) return false; + if (!getEndpointDomain() + .equals(other.getEndpointDomain())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1363,102 +1219,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1468,52 +1310,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration specific to Salesforce Live Agent.
      * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig} + * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .class, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .Builder.class); + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.class, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder.class); } - // Construct using - // com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.newBuilder() + // Construct using com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1529,23 +1363,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_SalesforceLiveAgentConfig_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance(); + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - build() { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig result = - buildPartial(); + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig build() { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1553,11 +1383,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - buildPartial() { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig result = - new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig( - this); + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig buildPartial() { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig result = new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig(this); result.organizationId_ = organizationId_; result.deploymentId_ = deploymentId_; result.buttonId_ = buttonId_; @@ -1570,56 +1397,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - other); + if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig other) { - if (other - == com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig other) { + if (other == com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance()) return this; if (!other.getOrganizationId().isEmpty()) { organizationId_ = other.organizationId_; onChanged(); @@ -1651,14 +1468,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - parsedMessage = null; + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1670,20 +1484,18 @@ public Builder mergeFrom( private java.lang.Object organizationId_ = ""; /** - * - * *
        * Required. The organization ID of the Salesforce account.
        * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The organizationId. */ public java.lang.String getOrganizationId() { java.lang.Object ref = organizationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organizationId_ = s; return s; @@ -1692,21 +1504,20 @@ public java.lang.String getOrganizationId() { } } /** - * - * *
        * Required. The organization ID of the Salesforce account.
        * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for organizationId. */ - public com.google.protobuf.ByteString getOrganizationIdBytes() { + public com.google.protobuf.ByteString + getOrganizationIdBytes() { java.lang.Object ref = organizationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organizationId_ = b; return b; } else { @@ -1714,61 +1525,54 @@ public com.google.protobuf.ByteString getOrganizationIdBytes() { } } /** - * - * *
        * Required. The organization ID of the Salesforce account.
        * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The organizationId to set. * @return This builder for chaining. */ - public Builder setOrganizationId(java.lang.String value) { + public Builder setOrganizationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organizationId_ = value; onChanged(); return this; } /** - * - * *
        * Required. The organization ID of the Salesforce account.
        * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOrganizationId() { - + organizationId_ = getDefaultInstance().getOrganizationId(); onChanged(); return this; } /** - * - * *
        * Required. The organization ID of the Salesforce account.
        * 
* * string organization_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for organizationId to set. * @return This builder for chaining. */ - public Builder setOrganizationIdBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organizationId_ = value; onChanged(); return this; @@ -1776,20 +1580,18 @@ public Builder setOrganizationIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object deploymentId_ = ""; /** - * - * *
        * Required. Live Agent deployment ID.
        * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The deploymentId. */ public java.lang.String getDeploymentId() { java.lang.Object ref = deploymentId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deploymentId_ = s; return s; @@ -1798,21 +1600,20 @@ public java.lang.String getDeploymentId() { } } /** - * - * *
        * Required. Live Agent deployment ID.
        * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for deploymentId. */ - public com.google.protobuf.ByteString getDeploymentIdBytes() { + public com.google.protobuf.ByteString + getDeploymentIdBytes() { java.lang.Object ref = deploymentId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deploymentId_ = b; return b; } else { @@ -1820,61 +1621,54 @@ public com.google.protobuf.ByteString getDeploymentIdBytes() { } } /** - * - * *
        * Required. Live Agent deployment ID.
        * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The deploymentId to set. * @return This builder for chaining. */ - public Builder setDeploymentId(java.lang.String value) { + public Builder setDeploymentId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deploymentId_ = value; onChanged(); return this; } /** - * - * *
        * Required. Live Agent deployment ID.
        * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDeploymentId() { - + deploymentId_ = getDefaultInstance().getDeploymentId(); onChanged(); return this; } /** - * - * *
        * Required. Live Agent deployment ID.
        * 
* * string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for deploymentId to set. * @return This builder for chaining. */ - public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { + public Builder setDeploymentIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deploymentId_ = value; onChanged(); return this; @@ -1882,20 +1676,18 @@ public Builder setDeploymentIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object buttonId_ = ""; /** - * - * *
        * Required. Live Agent chat button ID.
        * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The buttonId. */ public java.lang.String getButtonId() { java.lang.Object ref = buttonId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buttonId_ = s; return s; @@ -1904,21 +1696,20 @@ public java.lang.String getButtonId() { } } /** - * - * *
        * Required. Live Agent chat button ID.
        * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for buttonId. */ - public com.google.protobuf.ByteString getButtonIdBytes() { + public com.google.protobuf.ByteString + getButtonIdBytes() { java.lang.Object ref = buttonId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); buttonId_ = b; return b; } else { @@ -1926,61 +1717,54 @@ public com.google.protobuf.ByteString getButtonIdBytes() { } } /** - * - * *
        * Required. Live Agent chat button ID.
        * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The buttonId to set. * @return This builder for chaining. */ - public Builder setButtonId(java.lang.String value) { + public Builder setButtonId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + buttonId_ = value; onChanged(); return this; } /** - * - * *
        * Required. Live Agent chat button ID.
        * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearButtonId() { - + buttonId_ = getDefaultInstance().getButtonId(); onChanged(); return this; } /** - * - * *
        * Required. Live Agent chat button ID.
        * 
* * string button_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for buttonId to set. * @return This builder for chaining. */ - public Builder setButtonIdBytes(com.google.protobuf.ByteString value) { + public Builder setButtonIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + buttonId_ = value; onChanged(); return this; @@ -1988,8 +1772,6 @@ public Builder setButtonIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object endpointDomain_ = ""; /** - * - * *
        * Required. Domain of the Live Agent endpoint for this agent. You can find
        * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -1998,13 +1780,13 @@ public Builder setButtonIdBytes(com.google.protobuf.ByteString value) {
        * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The endpointDomain. */ public java.lang.String getEndpointDomain() { java.lang.Object ref = endpointDomain_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpointDomain_ = s; return s; @@ -2013,8 +1795,6 @@ public java.lang.String getEndpointDomain() { } } /** - * - * *
        * Required. Domain of the Live Agent endpoint for this agent. You can find
        * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -2023,14 +1803,15 @@ public java.lang.String getEndpointDomain() {
        * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for endpointDomain. */ - public com.google.protobuf.ByteString getEndpointDomainBytes() { + public com.google.protobuf.ByteString + getEndpointDomainBytes() { java.lang.Object ref = endpointDomain_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); endpointDomain_ = b; return b; } else { @@ -2038,8 +1819,6 @@ public com.google.protobuf.ByteString getEndpointDomainBytes() { } } /** - * - * *
        * Required. Domain of the Live Agent endpoint for this agent. You can find
        * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -2048,22 +1827,20 @@ public com.google.protobuf.ByteString getEndpointDomainBytes() {
        * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The endpointDomain to set. * @return This builder for chaining. */ - public Builder setEndpointDomain(java.lang.String value) { + public Builder setEndpointDomain( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endpointDomain_ = value; onChanged(); return this; } /** - * - * *
        * Required. Domain of the Live Agent endpoint for this agent. You can find
        * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -2072,18 +1849,15 @@ public Builder setEndpointDomain(java.lang.String value) {
        * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEndpointDomain() { - + endpointDomain_ = getDefaultInstance().getEndpointDomain(); onChanged(); return this; } /** - * - * *
        * Required. Domain of the Live Agent endpoint for this agent. You can find
        * the endpoint URL in the `Live Agent settings` page. For example if URL
@@ -2092,21 +1866,20 @@ public Builder clearEndpointDomain() {
        * 
* * string endpoint_domain = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for endpointDomain to set. * @return This builder for chaining. */ - public Builder setEndpointDomainBytes(com.google.protobuf.ByteString value) { + public Builder setEndpointDomainBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpointDomain_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2119,34 +1892,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - private static final com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig(); + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig(); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SalesforceLiveAgentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SalesforceLiveAgentConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SalesforceLiveAgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SalesforceLiveAgentConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2158,24 +1927,21 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int agentServiceCase_ = 0; private java.lang.Object agentService_; - public enum AgentServiceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LIVE_PERSON_CONFIG(1), SALESFORCE_LIVE_AGENT_CONFIG(2), AGENTSERVICE_NOT_SET(0); private final int value; - private AgentServiceCase(int value) { this.value = value; } @@ -2191,38 +1957,30 @@ public static AgentServiceCase valueOf(int value) { public static AgentServiceCase forNumber(int value) { switch (value) { - case 1: - return LIVE_PERSON_CONFIG; - case 2: - return SALESFORCE_LIVE_AGENT_CONFIG; - case 0: - return AGENTSERVICE_NOT_SET; - default: - return null; + case 1: return LIVE_PERSON_CONFIG; + case 2: return SALESFORCE_LIVE_AGENT_CONFIG; + case 0: return AGENTSERVICE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AgentServiceCase getAgentServiceCase() { - return AgentServiceCase.forNumber(agentServiceCase_); + public AgentServiceCase + getAgentServiceCase() { + return AgentServiceCase.forNumber( + agentServiceCase_); } public static final int LIVE_PERSON_CONFIG_FIELD_NUMBER = 1; /** - * - * *
    * Uses LivePerson (https://www.liveperson.com).
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; * @return Whether the livePersonConfig field is set. */ @java.lang.Override @@ -2230,62 +1988,42 @@ public boolean hasLivePersonConfig() { return agentServiceCase_ == 1; } /** - * - * *
    * Uses LivePerson (https://www.liveperson.com).
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; * @return The livePersonConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - getLivePersonConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig getLivePersonConfig() { if (agentServiceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance(); } /** - * - * *
    * Uses LivePerson (https://www.liveperson.com).
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder - getLivePersonConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder getLivePersonConfigOrBuilder() { if (agentServiceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance(); } public static final int SALESFORCE_LIVE_AGENT_CONFIG_FIELD_NUMBER = 2; /** - * - * *
    * Uses Salesforce Live Agent.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; * @return Whether the salesforceLiveAgentConfig field is set. */ @java.lang.Override @@ -2293,52 +2031,36 @@ public boolean hasSalesforceLiveAgentConfig() { return agentServiceCase_ == 2; } /** - * - * *
    * Uses Salesforce Live Agent.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; * @return The salesforceLiveAgentConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - getSalesforceLiveAgentConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig getSalesforceLiveAgentConfig() { if (agentServiceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance(); } /** - * - * *
    * Uses Salesforce Live Agent.
    * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder - getSalesforceLiveAgentConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder getSalesforceLiveAgentConfigOrBuilder() { if (agentServiceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2350,17 +2072,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (agentServiceCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_); + output.writeMessage(1, (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_); } if (agentServiceCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - agentService_); + output.writeMessage(2, (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_); } unknownFields.writeTo(output); } @@ -2372,18 +2090,12 @@ public int getSerializedSize() { size = 0; if (agentServiceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_); } if (agentServiceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - agentService_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2393,22 +2105,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig other = - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig) obj; + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig other = (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig) obj; if (!getAgentServiceCase().equals(other.getAgentServiceCase())) return false; switch (agentServiceCase_) { case 1: - if (!getLivePersonConfig().equals(other.getLivePersonConfig())) return false; + if (!getLivePersonConfig() + .equals(other.getLivePersonConfig())) return false; break; case 2: - if (!getSalesforceLiveAgentConfig().equals(other.getSalesforceLiveAgentConfig())) - return false; + if (!getSalesforceLiveAgentConfig() + .equals(other.getSalesforceLiveAgentConfig())) return false; break; case 0: default: @@ -2442,104 +2154,96 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines the hand off to a live agent, typically on which external agent
    * service provider to connect to a conversation.
@@ -2549,23 +2253,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.HumanAgentHandoffConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.HumanAgentHandoffConfig)
       com.google.cloud.dialogflow.v2.HumanAgentHandoffConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.ConversationProfileProto
-          .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.ConversationProfileProto
-          .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.class,
-              com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder.class);
+              com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.class, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.newBuilder()
@@ -2573,15 +2275,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2591,9 +2294,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.dialogflow.v2.ConversationProfileProto
-          .internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.dialogflow.v2.ConversationProfileProto.internal_static_google_cloud_dialogflow_v2_HumanAgentHandoffConfig_descriptor;
     }
 
     @java.lang.Override
@@ -2612,8 +2315,7 @@ public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig build() {
 
     @java.lang.Override
     public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig buildPartial() {
-      com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig result =
-          new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig(this);
+      com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig result = new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig(this);
       if (agentServiceCase_ == 1) {
         if (livePersonConfigBuilder_ == null) {
           result.agentService_ = agentService_;
@@ -2637,39 +2339,38 @@ public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig) {
-        return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig) other);
+        return mergeFrom((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2677,23 +2378,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig other) {
-      if (other == com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.getDefaultInstance()) return this;
       switch (other.getAgentServiceCase()) {
-        case LIVE_PERSON_CONFIG:
-          {
-            mergeLivePersonConfig(other.getLivePersonConfig());
-            break;
-          }
-        case SALESFORCE_LIVE_AGENT_CONFIG:
-          {
-            mergeSalesforceLiveAgentConfig(other.getSalesforceLiveAgentConfig());
-            break;
-          }
-        case AGENTSERVICE_NOT_SET:
-          {
-            break;
-          }
+        case LIVE_PERSON_CONFIG: {
+          mergeLivePersonConfig(other.getLivePersonConfig());
+          break;
+        }
+        case SALESFORCE_LIVE_AGENT_CONFIG: {
+          mergeSalesforceLiveAgentConfig(other.getSalesforceLiveAgentConfig());
+          break;
+        }
+        case AGENTSERVICE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2714,8 +2411,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2724,12 +2420,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int agentServiceCase_ = 0;
     private java.lang.Object agentService_;
-
-    public AgentServiceCase getAgentServiceCase() {
-      return AgentServiceCase.forNumber(agentServiceCase_);
+    public AgentServiceCase
+        getAgentServiceCase() {
+      return AgentServiceCase.forNumber(
+          agentServiceCase_);
     }
 
     public Builder clearAgentService() {
@@ -2739,22 +2435,15 @@ public Builder clearAgentService() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig,
-            com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder,
-            com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder>
-        livePersonConfigBuilder_;
+        com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder> livePersonConfigBuilder_;
     /**
-     *
-     *
      * 
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; * @return Whether the livePersonConfig field is set. */ @java.lang.Override @@ -2762,49 +2451,35 @@ public boolean hasLivePersonConfig() { return agentServiceCase_ == 1; } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; * @return The livePersonConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - getLivePersonConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig getLivePersonConfig() { if (livePersonConfigBuilder_ == null) { if (agentServiceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance(); } else { if (agentServiceCase_ == 1) { return livePersonConfigBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance(); } } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ - public Builder setLivePersonConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig value) { + public Builder setLivePersonConfig(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig value) { if (livePersonConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2818,19 +2493,14 @@ public Builder setLivePersonConfig( return this; } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ public Builder setLivePersonConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder builderForValue) { if (livePersonConfigBuilder_ == null) { agentService_ = builderForValue.build(); onChanged(); @@ -2841,29 +2511,18 @@ public Builder setLivePersonConfig( return this; } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ - public Builder mergeLivePersonConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig value) { + public Builder mergeLivePersonConfig(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig value) { if (livePersonConfigBuilder_ == null) { - if (agentServiceCase_ == 1 - && agentService_ - != com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance()) { - agentService_ = - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.newBuilder( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_) - .mergeFrom(value) - .buildPartial(); + if (agentServiceCase_ == 1 && + agentService_ != com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance()) { + agentService_ = com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.newBuilder((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_) + .mergeFrom(value).buildPartial(); } else { agentService_ = value; } @@ -2878,15 +2537,11 @@ public Builder mergeLivePersonConfig( return this; } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ public Builder clearLivePersonConfig() { if (livePersonConfigBuilder_ == null) { @@ -2905,102 +2560,67 @@ public Builder clearLivePersonConfig() { return this; } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder - getLivePersonConfigBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder getLivePersonConfigBuilder() { return getLivePersonConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder - getLivePersonConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder getLivePersonConfigOrBuilder() { if ((agentServiceCase_ == 1) && (livePersonConfigBuilder_ != null)) { return livePersonConfigBuilder_.getMessageOrBuilder(); } else { if (agentServiceCase_ == 1) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance(); } } /** - * - * *
      * Uses LivePerson (https://www.liveperson.com).
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder> getLivePersonConfigFieldBuilder() { if (livePersonConfigBuilder_ == null) { if (!(agentServiceCase_ == 1)) { - agentService_ = - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig - .getDefaultInstance(); + agentService_ = com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.getDefaultInstance(); } - livePersonConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder>( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) - agentService_, + livePersonConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder>( + (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig) agentService_, getParentForChildren(), isClean()); agentService_ = null; } agentServiceCase_ = 1; - onChanged(); - ; + onChanged();; return livePersonConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfigOrBuilder> - salesforceLiveAgentConfigBuilder_; + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder> salesforceLiveAgentConfigBuilder_; /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; * @return Whether the salesforceLiveAgentConfig field is set. */ @java.lang.Override @@ -3008,49 +2628,35 @@ public boolean hasSalesforceLiveAgentConfig() { return agentServiceCase_ == 2; } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; * @return The salesforceLiveAgentConfig. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - getSalesforceLiveAgentConfig() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig getSalesforceLiveAgentConfig() { if (salesforceLiveAgentConfigBuilder_ == null) { if (agentServiceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance(); } else { if (agentServiceCase_ == 2) { return salesforceLiveAgentConfigBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance(); } } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ - public Builder setSalesforceLiveAgentConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig value) { + public Builder setSalesforceLiveAgentConfig(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig value) { if (salesforceLiveAgentConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3064,19 +2670,14 @@ public Builder setSalesforceLiveAgentConfig( return this; } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ public Builder setSalesforceLiveAgentConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder - builderForValue) { + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder builderForValue) { if (salesforceLiveAgentConfigBuilder_ == null) { agentService_ = builderForValue.build(); onChanged(); @@ -3087,31 +2688,18 @@ public Builder setSalesforceLiveAgentConfig( return this; } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ - public Builder mergeSalesforceLiveAgentConfig( - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig value) { + public Builder mergeSalesforceLiveAgentConfig(com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig value) { if (salesforceLiveAgentConfigBuilder_ == null) { - if (agentServiceCase_ == 2 - && agentService_ - != com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance()) { - agentService_ = - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .newBuilder( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfig) - agentService_) - .mergeFrom(value) - .buildPartial(); + if (agentServiceCase_ == 2 && + agentService_ != com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance()) { + agentService_ = com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.newBuilder((com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_) + .mergeFrom(value).buildPartial(); } else { agentService_ = value; } @@ -3126,15 +2714,11 @@ public Builder mergeSalesforceLiveAgentConfig( return this; } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ public Builder clearSalesforceLiveAgentConfig() { if (salesforceLiveAgentConfigBuilder_ == null) { @@ -3153,90 +2737,61 @@ public Builder clearSalesforceLiveAgentConfig() { return this; } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder - getSalesforceLiveAgentConfigBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder getSalesforceLiveAgentConfigBuilder() { return getSalesforceLiveAgentConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ @java.lang.Override - public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder - getSalesforceLiveAgentConfigOrBuilder() { + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder getSalesforceLiveAgentConfigOrBuilder() { if ((agentServiceCase_ == 2) && (salesforceLiveAgentConfigBuilder_ != null)) { return salesforceLiveAgentConfigBuilder_.getMessageOrBuilder(); } else { if (agentServiceCase_ == 2) { - return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - agentService_; + return (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_; } - return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance(); } } /** - * - * *
      * Uses Salesforce Live Agent.
      * 
* - * - * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; - * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfigOrBuilder> + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder> getSalesforceLiveAgentConfigFieldBuilder() { if (salesforceLiveAgentConfigBuilder_ == null) { if (!(agentServiceCase_ == 2)) { - agentService_ = - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .getDefaultInstance(); + agentService_ = com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.getDefaultInstance(); } - salesforceLiveAgentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig - .Builder, - com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig - .SalesforceLiveAgentConfigOrBuilder>( - (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) - agentService_, + salesforceLiveAgentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig.Builder, com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder>( + (com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig) agentService_, getParentForChildren(), isClean()); agentService_ = null; } agentServiceCase_ = 2; - onChanged(); - ; + onChanged();; return salesforceLiveAgentConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3246,12 +2801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.HumanAgentHandoffConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.HumanAgentHandoffConfig) private static final com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig(); } @@ -3260,16 +2815,16 @@ public static com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HumanAgentHandoffConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HumanAgentHandoffConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HumanAgentHandoffConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HumanAgentHandoffConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3284,4 +2839,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentHandoffConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentHandoffConfigOrBuilder.java new file mode 100644 index 000000000..ab6f7cb5f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentHandoffConfigOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/v2/conversation_profile.proto + +package com.google.cloud.dialogflow.v2; + +public interface HumanAgentHandoffConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.HumanAgentHandoffConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Uses LivePerson (https://www.liveperson.com).
+   * 
+ * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; + * @return Whether the livePersonConfig field is set. + */ + boolean hasLivePersonConfig(); + /** + *
+   * Uses LivePerson (https://www.liveperson.com).
+   * 
+ * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; + * @return The livePersonConfig. + */ + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig getLivePersonConfig(); + /** + *
+   * Uses LivePerson (https://www.liveperson.com).
+   * 
+ * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig live_person_config = 1; + */ + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfigOrBuilder getLivePersonConfigOrBuilder(); + + /** + *
+   * Uses Salesforce Live Agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; + * @return Whether the salesforceLiveAgentConfig field is set. + */ + boolean hasSalesforceLiveAgentConfig(); + /** + *
+   * Uses Salesforce Live Agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; + * @return The salesforceLiveAgentConfig. + */ + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig getSalesforceLiveAgentConfig(); + /** + *
+   * Uses Salesforce Live Agent.
+   * 
+ * + * .google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig salesforce_live_agent_config = 2; + */ + com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfigOrBuilder getSalesforceLiveAgentConfigOrBuilder(); + + public com.google.cloud.dialogflow.v2.HumanAgentHandoffConfig.AgentServiceCase getAgentServiceCase(); +} diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java similarity index 69% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java index 6ca4d96d5..27a7fd679 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ImportAgentRequest} */ -public final class ImportAgentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportAgentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.ImportAgentRequest) ImportAgentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportAgentRequest.newBuilder() to construct. private ImportAgentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportAgentRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportAgentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportAgentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,72 +53,64 @@ private ImportAgentRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - agentCase_ = 2; - agent_ = s; - break; - } - case 26: - { - agentCase_ = 3; - agent_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + agentCase_ = 2; + agent_ = s; + break; + } + case 26: { + agentCase_ = 3; + agent_ = input.readBytes(); + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ImportAgentRequest.class, - com.google.cloud.dialogflow.v2.ImportAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.ImportAgentRequest.class, com.google.cloud.dialogflow.v2.ImportAgentRequest.Builder.class); } private int agentCase_ = 0; private java.lang.Object agent_; - public enum AgentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AGENT_URI(2), AGENT_CONTENT(3), AGENT_NOT_SET(0); private final int value; - private AgentCase(int value) { this.value = value; } @@ -151,40 +126,32 @@ public static AgentCase valueOf(int value) { public static AgentCase forNumber(int value) { switch (value) { - case 2: - return AGENT_URI; - case 3: - return AGENT_CONTENT; - case 0: - return AGENT_NOT_SET; - default: - return null; + case 2: return AGENT_URI; + case 3: return AGENT_CONTENT; + case 0: return AGENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AgentCase getAgentCase() { - return AgentCase.forNumber(agentCase_); + public AgentCase + getAgentCase() { + return AgentCase.forNumber( + agentCase_); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project that the agent to import is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -193,32 +160,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 to import is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -228,30 +193,24 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int AGENT_URI_FIELD_NUMBER = 2; /** - * - * *
    * The URI to a Google Cloud Storage file containing the agent to import.
    * Note: The URI must start with "gs://".
    * 
* * string agent_uri = 2; - * * @return Whether the agentUri field is set. */ public boolean hasAgentUri() { return agentCase_ == 2; } /** - * - * *
    * The URI to a Google Cloud Storage file containing the agent to import.
    * Note: The URI must start with "gs://".
    * 
* * string agent_uri = 2; - * * @return The agentUri. */ public java.lang.String getAgentUri() { @@ -262,7 +221,8 @@ public java.lang.String getAgentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (agentCase_ == 2) { agent_ = s; @@ -271,25 +231,24 @@ public java.lang.String getAgentUri() { } } /** - * - * *
    * The URI to a Google Cloud Storage file containing the agent to import.
    * Note: The URI must start with "gs://".
    * 
* * string agent_uri = 2; - * * @return The bytes for agentUri. */ - public com.google.protobuf.ByteString getAgentUriBytes() { + public com.google.protobuf.ByteString + getAgentUriBytes() { java.lang.Object ref = ""; if (agentCase_ == 2) { ref = agent_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (agentCase_ == 2) { agent_ = b; } @@ -301,14 +260,11 @@ public com.google.protobuf.ByteString getAgentUriBytes() { public static final int AGENT_CONTENT_FIELD_NUMBER = 3; /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; - * * @return Whether the agentContent field is set. */ @java.lang.Override @@ -316,14 +272,11 @@ public boolean hasAgentContent() { return agentCase_ == 3; } /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; - * * @return The agentContent. */ @java.lang.Override @@ -335,7 +288,6 @@ public com.google.protobuf.ByteString getAgentContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,7 +299,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -355,7 +308,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, agent_); } if (agentCase_ == 3) { - output.writeBytes(3, (com.google.protobuf.ByteString) agent_); + output.writeBytes( + 3, (com.google.protobuf.ByteString) agent_); } unknownFields.writeTo(output); } @@ -373,9 +327,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, agent_); } if (agentCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 3, (com.google.protobuf.ByteString) agent_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 3, (com.google.protobuf.ByteString) agent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,22 +339,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.ImportAgentRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.ImportAgentRequest other = - (com.google.cloud.dialogflow.v2.ImportAgentRequest) obj; + com.google.cloud.dialogflow.v2.ImportAgentRequest other = (com.google.cloud.dialogflow.v2.ImportAgentRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getAgentCase().equals(other.getAgentCase())) return false; switch (agentCase_) { case 2: - if (!getAgentUri().equals(other.getAgentUri())) return false; + if (!getAgentUri() + .equals(other.getAgentUri())) return false; break; case 3: - if (!getAgentContent().equals(other.getAgentContent())) return false; + if (!getAgentContent() + .equals(other.getAgentContent())) return false; break; case 0: default: @@ -436,126 +392,117 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.ImportAgentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.ImportAgentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.ImportAgentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.ImportAgentRequest) com.google.cloud.dialogflow.v2.ImportAgentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.ImportAgentRequest.class, - com.google.cloud.dialogflow.v2.ImportAgentRequest.Builder.class); + com.google.cloud.dialogflow.v2.ImportAgentRequest.class, com.google.cloud.dialogflow.v2.ImportAgentRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.ImportAgentRequest.newBuilder() @@ -563,15 +510,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +531,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AgentProto - .internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AgentProto.internal_static_google_cloud_dialogflow_v2_ImportAgentRequest_descriptor; } @java.lang.Override @@ -604,8 +552,7 @@ public com.google.cloud.dialogflow.v2.ImportAgentRequest build() { @java.lang.Override public com.google.cloud.dialogflow.v2.ImportAgentRequest buildPartial() { - com.google.cloud.dialogflow.v2.ImportAgentRequest result = - new com.google.cloud.dialogflow.v2.ImportAgentRequest(this); + com.google.cloud.dialogflow.v2.ImportAgentRequest result = new com.google.cloud.dialogflow.v2.ImportAgentRequest(this); result.parent_ = parent_; if (agentCase_ == 2) { result.agent_ = agent_; @@ -622,39 +569,38 @@ public com.google.cloud.dialogflow.v2.ImportAgentRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.ImportAgentRequest) { - return mergeFrom((com.google.cloud.dialogflow.v2.ImportAgentRequest) other); + return mergeFrom((com.google.cloud.dialogflow.v2.ImportAgentRequest)other); } else { super.mergeFrom(other); return this; @@ -662,29 +608,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.ImportAgentRequest other) { - if (other == com.google.cloud.dialogflow.v2.ImportAgentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.ImportAgentRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } switch (other.getAgentCase()) { - case AGENT_URI: - { - agentCase_ = 2; - agent_ = other.agent_; - onChanged(); - break; - } - case AGENT_CONTENT: - { - setAgentContent(other.getAgentContent()); - break; - } - case AGENT_NOT_SET: - { - break; - } + case AGENT_URI: { + agentCase_ = 2; + agent_ = other.agent_; + onChanged(); + break; + } + case AGENT_CONTENT: { + setAgentContent(other.getAgentContent()); + break; + } + case AGENT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -705,8 +647,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.ImportAgentRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.ImportAgentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -715,12 +656,12 @@ public Builder mergeFrom( } return this; } - private int agentCase_ = 0; private java.lang.Object agent_; - - public AgentCase getAgentCase() { - return AgentCase.forNumber(agentCase_); + public AgentCase + getAgentCase() { + return AgentCase.forNumber( + agentCase_); } public Builder clearAgent() { @@ -730,25 +671,22 @@ public Builder clearAgent() { return this; } + private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project that the agent to import is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -757,24 +695,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project that the agent to import is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -782,85 +717,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project that the agent to import is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to import is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The project that the agent to import is associated with.
      * Format: `projects/<Project ID>`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** - * - * *
      * The URI to a Google Cloud Storage file containing the agent to import.
      * Note: The URI must start with "gs://".
      * 
* * string agent_uri = 2; - * * @return Whether the agentUri field is set. */ @java.lang.Override @@ -868,15 +787,12 @@ public boolean hasAgentUri() { return agentCase_ == 2; } /** - * - * *
      * The URI to a Google Cloud Storage file containing the agent to import.
      * Note: The URI must start with "gs://".
      * 
* * string agent_uri = 2; - * * @return The agentUri. */ @java.lang.Override @@ -886,7 +802,8 @@ public java.lang.String getAgentUri() { ref = agent_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (agentCase_ == 2) { agent_ = s; @@ -897,26 +814,25 @@ public java.lang.String getAgentUri() { } } /** - * - * *
      * The URI to a Google Cloud Storage file containing the agent to import.
      * Note: The URI must start with "gs://".
      * 
* * string agent_uri = 2; - * * @return The bytes for agentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getAgentUriBytes() { + public com.google.protobuf.ByteString + getAgentUriBytes() { java.lang.Object ref = ""; if (agentCase_ == 2) { ref = agent_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (agentCase_ == 2) { agent_ = b; } @@ -926,37 +842,32 @@ public com.google.protobuf.ByteString getAgentUriBytes() { } } /** - * - * *
      * The URI to a Google Cloud Storage file containing the agent to import.
      * Note: The URI must start with "gs://".
      * 
* * string agent_uri = 2; - * * @param value The agentUri to set. * @return This builder for chaining. */ - public Builder setAgentUri(java.lang.String value) { + public Builder setAgentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - agentCase_ = 2; + throw new NullPointerException(); + } + agentCase_ = 2; agent_ = value; onChanged(); return this; } /** - * - * *
      * The URI to a Google Cloud Storage file containing the agent to import.
      * Note: The URI must start with "gs://".
      * 
* * string agent_uri = 2; - * * @return This builder for chaining. */ public Builder clearAgentUri() { @@ -968,23 +879,21 @@ public Builder clearAgentUri() { return this; } /** - * - * *
      * The URI to a Google Cloud Storage file containing the agent to import.
      * Note: The URI must start with "gs://".
      * 
* * string agent_uri = 2; - * * @param value The bytes for agentUri to set. * @return This builder for chaining. */ - public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { + public Builder setAgentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); agentCase_ = 2; agent_ = value; onChanged(); @@ -992,28 +901,22 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; - * * @return Whether the agentContent field is set. */ public boolean hasAgentContent() { return agentCase_ == 3; } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; - * * @return The agentContent. */ public com.google.protobuf.ByteString getAgentContent() { @@ -1023,35 +926,29 @@ public com.google.protobuf.ByteString getAgentContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; - * * @param value The agentContent to set. * @return This builder for chaining. */ public Builder setAgentContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - agentCase_ = 3; + throw new NullPointerException(); + } + agentCase_ = 3; agent_ = value; onChanged(); return this; } /** - * - * *
      * Zip compressed raw byte content for agent.
      * 
* * bytes agent_content = 3; - * * @return This builder for chaining. */ public Builder clearAgentContent() { @@ -1062,9 +959,9 @@ public Builder clearAgentContent() { } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1074,12 +971,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.ImportAgentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ImportAgentRequest) private static final com.google.cloud.dialogflow.v2.ImportAgentRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.ImportAgentRequest(); } @@ -1088,16 +985,16 @@ public static com.google.cloud.dialogflow.v2.ImportAgentRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportAgentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportAgentRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportAgentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,4 +1009,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.ImportAgentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java index ee1146fc2..e35236475 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ImportAgentRequestOrBuilder.java @@ -1,120 +1,81 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface ImportAgentRequestOrBuilder - extends +public interface ImportAgentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.ImportAgentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project that the agent to import is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project that the agent to import is associated with.
    * Format: `projects/<Project ID>`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The URI to a Google Cloud Storage file containing the agent to import.
    * Note: The URI must start with "gs://".
    * 
* * string agent_uri = 2; - * * @return Whether the agentUri field is set. */ boolean hasAgentUri(); /** - * - * *
    * The URI to a Google Cloud Storage file containing the agent to import.
    * Note: The URI must start with "gs://".
    * 
* * string agent_uri = 2; - * * @return The agentUri. */ java.lang.String getAgentUri(); /** - * - * *
    * The URI to a Google Cloud Storage file containing the agent to import.
    * Note: The URI must start with "gs://".
    * 
* * string agent_uri = 2; - * * @return The bytes for agentUri. */ - com.google.protobuf.ByteString getAgentUriBytes(); + com.google.protobuf.ByteString + getAgentUriBytes(); /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; - * * @return Whether the agentContent field is set. */ boolean hasAgentContent(); /** - * - * *
    * Zip compressed raw byte content for agent.
    * 
* * bytes agent_content = 3; - * * @return The agentContent. */ com.google.protobuf.ByteString getAgentContent(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java similarity index 81% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java index 00bce89ad..4c289f724 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * Instructs the speech recognizer how to process the audio content.
  * 
* * Protobuf type {@code google.cloud.dialogflow.v2.InputAudioConfig} */ -public final class InputAudioConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputAudioConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.InputAudioConfig) InputAudioConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputAudioConfig.newBuilder() to construct. private InputAudioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputAudioConfig() { audioEncoding_ = 0; languageCode_ = ""; @@ -48,15 +30,16 @@ private InputAudioConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputAudioConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputAudioConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,89 +59,82 @@ private InputAudioConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - audioEncoding_ = rawValue; - break; - } - case 16: - { - sampleRateHertz_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + audioEncoding_ = rawValue; + break; + } + case 16: { - languageCode_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseHints_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseHints_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + sampleRateHertz_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 64: - { - singleUtterance_ = input.readBool(); - break; + languageCode_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseHints_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - int rawValue = input.readEnum(); + phraseHints_.add(s); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - modelVariant_ = rawValue; - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - speechContexts_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - speechContexts_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.SpeechContext.parser(), extensionRegistry)); - break; - } - case 104: - { - enableWordInfo_ = input.readBool(); - break; - } - case 112: - { - disableNoSpeechRecognizedEvent_ = input.readBool(); - break; + model_ = s; + break; + } + case 64: { + + singleUtterance_ = input.readBool(); + break; + } + case 80: { + int rawValue = input.readEnum(); + + modelVariant_ = rawValue; + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + speechContexts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + speechContexts_.add( + input.readMessage(com.google.cloud.dialogflow.v2.SpeechContext.parser(), extensionRegistry)); + break; + } + case 104: { + + enableWordInfo_ = input.readBool(); + break; + } + case 112: { + + disableNoSpeechRecognizedEvent_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseHints_ = phraseHints_.getUnmodifiableView(); @@ -170,63 +146,49 @@ private InputAudioConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AudioConfigProto - .internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AudioConfigProto.internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AudioConfigProto - .internal_static_google_cloud_dialogflow_v2_InputAudioConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AudioConfigProto.internal_static_google_cloud_dialogflow_v2_InputAudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.InputAudioConfig.class, - com.google.cloud.dialogflow.v2.InputAudioConfig.Builder.class); + com.google.cloud.dialogflow.v2.InputAudioConfig.class, com.google.cloud.dialogflow.v2.InputAudioConfig.Builder.class); } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; private int audioEncoding_; /** - * - * *
    * Required. Audio encoding of the audio content to process.
    * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override - public int getAudioEncodingValue() { + @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** - * - * *
    * Required. Audio encoding of the audio content to process.
    * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @return The audioEncoding. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.AudioEncoding getAudioEncoding() { + @java.lang.Override public com.google.cloud.dialogflow.v2.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AudioEncoding result = - com.google.cloud.dialogflow.v2.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.v2.AudioEncoding result = com.google.cloud.dialogflow.v2.AudioEncoding.valueOf(audioEncoding_); return result == null ? com.google.cloud.dialogflow.v2.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** - * - * *
    * Required. Sample rate (in Hertz) of the audio content sent in the query.
    * Refer to
@@ -236,7 +198,6 @@ public com.google.cloud.dialogflow.v2.AudioEncoding getAudioEncoding() {
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -247,8 +208,6 @@ public int getSampleRateHertz() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Required. The language of the supplied audio. Dialogflow does not do
    * translations. See [Language
@@ -258,7 +217,6 @@ public int getSampleRateHertz() {
    * 
* * string language_code = 3; - * * @return The languageCode. */ @java.lang.Override @@ -267,15 +225,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Required. The language of the supplied audio. Dialogflow does not do
    * translations. See [Language
@@ -285,15 +242,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -304,8 +262,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int ENABLE_WORD_INFO_FIELD_NUMBER = 13; private boolean enableWordInfo_; /** - * - * *
    * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
    * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
@@ -314,7 +270,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
    * 
* * bool enable_word_info = 13; - * * @return The enableWordInfo. */ @java.lang.Override @@ -325,8 +280,6 @@ public boolean getEnableWordInfo() { public static final int PHRASE_HINTS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList phraseHints_; /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -339,16 +292,13 @@ public boolean getEnableWordInfo() {
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @return A list containing the phraseHints. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getPhraseHintsList() { + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getPhraseHintsList() { return phraseHints_; } /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -361,16 +311,12 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() {
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @return The count of phraseHints. */ - @java.lang.Deprecated - public int getPhraseHintsCount() { + @java.lang.Deprecated public int getPhraseHintsCount() { return phraseHints_.size(); } /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -383,17 +329,13 @@ public int getPhraseHintsCount() {
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param index The index of the element to return. * @return The phraseHints at the given index. */ - @java.lang.Deprecated - public java.lang.String getPhraseHints(int index) { + @java.lang.Deprecated public java.lang.String getPhraseHints(int index) { return phraseHints_.get(index); } /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -406,20 +348,17 @@ public java.lang.String getPhraseHints(int index) {
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getPhraseHintsBytes(int index) { + @java.lang.Deprecated public com.google.protobuf.ByteString + getPhraseHintsBytes(int index) { return phraseHints_.getByteString(index); } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 11; private java.util.List speechContexts_; /** - * - * *
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -434,8 +373,6 @@ public java.util.List getSpeechCon
     return speechContexts_;
   }
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -446,13 +383,11 @@ public java.util.List getSpeechCon
    * repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSpeechContextsOrBuilderList() {
     return speechContexts_;
   }
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -467,8 +402,6 @@ public int getSpeechContextsCount() {
     return speechContexts_.size();
   }
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -483,8 +416,6 @@ public com.google.cloud.dialogflow.v2.SpeechContext getSpeechContexts(int index)
     return speechContexts_.get(index);
   }
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -503,8 +434,6 @@ public com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOr
   public static final int MODEL_FIELD_NUMBER = 7;
   private volatile java.lang.Object model_;
   /**
-   *
-   *
    * 
    * Which Speech model to select for the given request. Select the
    * model best suited to your domain to get best results. If a model is not
@@ -520,7 +449,6 @@ public com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOr
    * 
* * string model = 7; - * * @return The model. */ @java.lang.Override @@ -529,15 +457,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Which Speech model to select for the given request. Select the
    * model best suited to your domain to get best results. If a model is not
@@ -553,15 +480,16 @@ public java.lang.String getModel() {
    * 
* * string model = 7; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -572,44 +500,33 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int MODEL_VARIANT_FIELD_NUMBER = 10; private int modelVariant_; /** - * - * *
    * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @return The enum numeric value on the wire for modelVariant. */ - @java.lang.Override - public int getModelVariantValue() { + @java.lang.Override public int getModelVariantValue() { return modelVariant_; } /** - * - * *
    * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @return The modelVariant. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.SpeechModelVariant getModelVariant() { + @java.lang.Override public com.google.cloud.dialogflow.v2.SpeechModelVariant getModelVariant() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.SpeechModelVariant result = - com.google.cloud.dialogflow.v2.SpeechModelVariant.valueOf(modelVariant_); + com.google.cloud.dialogflow.v2.SpeechModelVariant result = com.google.cloud.dialogflow.v2.SpeechModelVariant.valueOf(modelVariant_); return result == null ? com.google.cloud.dialogflow.v2.SpeechModelVariant.UNRECOGNIZED : result; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 8; private boolean singleUtterance_; /** - * - * *
    * If `false` (default), recognition does not cease until the
    * client closes the stream.
@@ -624,7 +541,6 @@ public com.google.cloud.dialogflow.v2.SpeechModelVariant getModelVariant() {
    * 
* * bool single_utterance = 8; - * * @return The singleUtterance. */ @java.lang.Override @@ -635,8 +551,6 @@ public boolean getSingleUtterance() { public static final int DISABLE_NO_SPEECH_RECOGNIZED_EVENT_FIELD_NUMBER = 14; private boolean disableNoSpeechRecognizedEvent_; /** - * - * *
    * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
    * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
@@ -645,7 +559,6 @@ public boolean getSingleUtterance() {
    * 
* * bool disable_no_speech_recognized_event = 14; - * * @return The disableNoSpeechRecognizedEvent. */ @java.lang.Override @@ -654,7 +567,6 @@ public boolean getDisableNoSpeechRecognizedEvent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -666,9 +578,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (audioEncoding_ - != com.google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (audioEncoding_ != com.google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, audioEncoding_); } if (sampleRateHertz_ != 0) { @@ -686,9 +598,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (singleUtterance_ != false) { output.writeBool(8, singleUtterance_); } - if (modelVariant_ - != com.google.cloud.dialogflow.v2.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED - .getNumber()) { + if (modelVariant_ != com.google.cloud.dialogflow.v2.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED.getNumber()) { output.writeEnum(10, modelVariant_); } for (int i = 0; i < speechContexts_.size(); i++) { @@ -709,12 +619,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (audioEncoding_ - != com.google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, audioEncoding_); + if (audioEncoding_ != com.google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, audioEncoding_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, sampleRateHertz_); } if (!getLanguageCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); @@ -731,23 +642,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, model_); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, singleUtterance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, singleUtterance_); } - if (modelVariant_ - != com.google.cloud.dialogflow.v2.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, modelVariant_); + if (modelVariant_ != com.google.cloud.dialogflow.v2.SpeechModelVariant.SPEECH_MODEL_VARIANT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, modelVariant_); } for (int i = 0; i < speechContexts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, speechContexts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, speechContexts_.get(i)); } if (enableWordInfo_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableWordInfo_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, enableWordInfo_); } if (disableNoSpeechRecognizedEvent_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 14, disableNoSpeechRecognizedEvent_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, disableNoSpeechRecognizedEvent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -757,25 +669,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.InputAudioConfig)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.InputAudioConfig other = - (com.google.cloud.dialogflow.v2.InputAudioConfig) obj; + com.google.cloud.dialogflow.v2.InputAudioConfig other = (com.google.cloud.dialogflow.v2.InputAudioConfig) obj; if (audioEncoding_ != other.audioEncoding_) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (getEnableWordInfo() != other.getEnableWordInfo()) return false; - if (!getPhraseHintsList().equals(other.getPhraseHintsList())) return false; - if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; - if (!getModel().equals(other.getModel())) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (getEnableWordInfo() + != other.getEnableWordInfo()) return false; + if (!getPhraseHintsList() + .equals(other.getPhraseHintsList())) return false; + if (!getSpeechContextsList() + .equals(other.getSpeechContextsList())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (modelVariant_ != other.modelVariant_) return false; - if (getSingleUtterance() != other.getSingleUtterance()) return false; - if (getDisableNoSpeechRecognizedEvent() != other.getDisableNoSpeechRecognizedEvent()) - return false; + if (getSingleUtterance() + != other.getSingleUtterance()) return false; + if (getDisableNoSpeechRecognizedEvent() + != other.getDisableNoSpeechRecognizedEvent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -794,7 +712,8 @@ public int hashCode() { hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + ENABLE_WORD_INFO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordInfo()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableWordInfo()); if (getPhraseHintsCount() > 0) { hash = (37 * hash) + PHRASE_HINTS_FIELD_NUMBER; hash = (53 * hash) + getPhraseHintsList().hashCode(); @@ -808,136 +727,128 @@ public int hashCode() { hash = (37 * hash) + MODEL_VARIANT_FIELD_NUMBER; hash = (53 * hash) + modelVariant_; hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSingleUtterance()); hash = (37 * hash) + DISABLE_NO_SPEECH_RECOGNIZED_EVENT_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableNoSpeechRecognizedEvent()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableNoSpeechRecognizedEvent()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.InputAudioConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.InputAudioConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.InputAudioConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Instructs the speech recognizer how to process the audio content.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.InputAudioConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.InputAudioConfig) com.google.cloud.dialogflow.v2.InputAudioConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.AudioConfigProto - .internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.AudioConfigProto.internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.AudioConfigProto - .internal_static_google_cloud_dialogflow_v2_InputAudioConfig_fieldAccessorTable + return com.google.cloud.dialogflow.v2.AudioConfigProto.internal_static_google_cloud_dialogflow_v2_InputAudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.InputAudioConfig.class, - com.google.cloud.dialogflow.v2.InputAudioConfig.Builder.class); + com.google.cloud.dialogflow.v2.InputAudioConfig.class, com.google.cloud.dialogflow.v2.InputAudioConfig.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.InputAudioConfig.newBuilder() @@ -945,17 +856,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSpeechContextsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -987,9 +898,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.AudioConfigProto - .internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.AudioConfigProto.internal_static_google_cloud_dialogflow_v2_InputAudioConfig_descriptor; } @java.lang.Override @@ -1008,8 +919,7 @@ public com.google.cloud.dialogflow.v2.InputAudioConfig build() { @java.lang.Override public com.google.cloud.dialogflow.v2.InputAudioConfig buildPartial() { - com.google.cloud.dialogflow.v2.InputAudioConfig result = - new com.google.cloud.dialogflow.v2.InputAudioConfig(this); + com.google.cloud.dialogflow.v2.InputAudioConfig result = new com.google.cloud.dialogflow.v2.InputAudioConfig(this); int from_bitField0_ = bitField0_; result.audioEncoding_ = audioEncoding_; result.sampleRateHertz_ = sampleRateHertz_; @@ -1041,39 +951,38 @@ public com.google.cloud.dialogflow.v2.InputAudioConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.InputAudioConfig) { - return mergeFrom((com.google.cloud.dialogflow.v2.InputAudioConfig) other); + return mergeFrom((com.google.cloud.dialogflow.v2.InputAudioConfig)other); } else { super.mergeFrom(other); return this; @@ -1081,8 +990,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.InputAudioConfig other) { - if (other == com.google.cloud.dialogflow.v2.InputAudioConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.InputAudioConfig.getDefaultInstance()) return this; if (other.audioEncoding_ != 0) { setAudioEncodingValue(other.getAudioEncodingValue()); } @@ -1124,10 +1032,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.InputAudioConfig other) speechContextsBuilder_ = null; speechContexts_ = other.speechContexts_; bitField0_ = (bitField0_ & ~0x00000002); - speechContextsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpeechContextsFieldBuilder() - : null; + speechContextsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpeechContextsFieldBuilder() : null; } else { speechContextsBuilder_.addAllMessages(other.speechContexts_); } @@ -1174,70 +1081,55 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int audioEncoding_ = 0; /** - * - * *
      * Required. Audio encoding of the audio content to process.
      * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override - public int getAudioEncodingValue() { + @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** - * - * *
      * Required. Audio encoding of the audio content to process.
      * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - + audioEncoding_ = value; onChanged(); return this; } /** - * - * *
      * Required. Audio encoding of the audio content to process.
      * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @return The audioEncoding. */ @java.lang.Override public com.google.cloud.dialogflow.v2.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.AudioEncoding result = - com.google.cloud.dialogflow.v2.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.v2.AudioEncoding result = com.google.cloud.dialogflow.v2.AudioEncoding.valueOf(audioEncoding_); return result == null ? com.google.cloud.dialogflow.v2.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Required. Audio encoding of the audio content to process.
      * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @param value The audioEncoding to set. * @return This builder for chaining. */ @@ -1245,33 +1137,28 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.v2.AudioEncoding val if (value == null) { throw new NullPointerException(); } - + audioEncoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Audio encoding of the audio content to process.
      * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + audioEncoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
      * Refer to
@@ -1281,7 +1168,6 @@ public Builder clearAudioEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -1289,8 +1175,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
      * Refer to
@@ -1300,19 +1184,16 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; - * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * Required. Sample rate (in Hertz) of the audio content sent in the query.
      * Refer to
@@ -1322,11 +1203,10 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; @@ -1334,8 +1214,6 @@ public Builder clearSampleRateHertz() { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Required. The language of the supplied audio. Dialogflow does not do
      * translations. See [Language
@@ -1345,13 +1223,13 @@ public Builder clearSampleRateHertz() {
      * 
* * string language_code = 3; - * * @return The languageCode. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1360,8 +1238,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Required. The language of the supplied audio. Dialogflow does not do
      * translations. See [Language
@@ -1371,14 +1247,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1386,8 +1263,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Required. The language of the supplied audio. Dialogflow does not do
      * translations. See [Language
@@ -1397,22 +1272,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio. Dialogflow does not do
      * translations. See [Language
@@ -1422,18 +1295,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio. Dialogflow does not do
      * translations. See [Language
@@ -1443,25 +1313,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private boolean enableWordInfo_; + private boolean enableWordInfo_ ; /** - * - * *
      * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
      * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
@@ -1470,7 +1338,6 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
      * 
* * bool enable_word_info = 13; - * * @return The enableWordInfo. */ @java.lang.Override @@ -1478,8 +1345,6 @@ public boolean getEnableWordInfo() { return enableWordInfo_; } /** - * - * *
      * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
      * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
@@ -1488,19 +1353,16 @@ public boolean getEnableWordInfo() {
      * 
* * bool enable_word_info = 13; - * * @param value The enableWordInfo to set. * @return This builder for chaining. */ public Builder setEnableWordInfo(boolean value) { - + enableWordInfo_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
      * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
@@ -1509,28 +1371,23 @@ public Builder setEnableWordInfo(boolean value) {
      * 
* * bool enable_word_info = 13; - * * @return This builder for chaining. */ public Builder clearEnableWordInfo() { - + enableWordInfo_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList phraseHints_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePhraseHintsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseHints_ = new com.google.protobuf.LazyStringArrayList(phraseHints_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1543,16 +1400,13 @@ private void ensurePhraseHintsIsMutable() {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @return A list containing the phraseHints. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getPhraseHintsList() { + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getPhraseHintsList() { return phraseHints_.getUnmodifiableView(); } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1565,16 +1419,12 @@ public com.google.protobuf.ProtocolStringList getPhraseHintsList() {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @return The count of phraseHints. */ - @java.lang.Deprecated - public int getPhraseHintsCount() { + @java.lang.Deprecated public int getPhraseHintsCount() { return phraseHints_.size(); } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1587,17 +1437,13 @@ public int getPhraseHintsCount() {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param index The index of the element to return. * @return The phraseHints at the given index. */ - @java.lang.Deprecated - public java.lang.String getPhraseHints(int index) { + @java.lang.Deprecated public java.lang.String getPhraseHints(int index) { return phraseHints_.get(index); } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1610,17 +1456,14 @@ public java.lang.String getPhraseHints(int index) {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getPhraseHintsBytes(int index) { + @java.lang.Deprecated public com.google.protobuf.ByteString + getPhraseHintsBytes(int index) { return phraseHints_.getByteString(index); } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1633,24 +1476,21 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(int index) {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param index The index to set the value at. * @param value The phraseHints to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setPhraseHints(int index, java.lang.String value) { + @java.lang.Deprecated public Builder setPhraseHints( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseHintsIsMutable(); + throw new NullPointerException(); + } + ensurePhraseHintsIsMutable(); phraseHints_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1663,23 +1503,20 @@ public Builder setPhraseHints(int index, java.lang.String value) {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param value The phraseHints to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addPhraseHints(java.lang.String value) { + @java.lang.Deprecated public Builder addPhraseHints( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseHintsIsMutable(); + throw new NullPointerException(); + } + ensurePhraseHintsIsMutable(); phraseHints_.add(value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1692,20 +1529,18 @@ public Builder addPhraseHints(java.lang.String value) {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param values The phraseHints to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addAllPhraseHints(java.lang.Iterable values) { + @java.lang.Deprecated public Builder addAllPhraseHints( + java.lang.Iterable values) { ensurePhraseHintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseHints_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phraseHints_); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1718,19 +1553,15 @@ public Builder addAllPhraseHints(java.lang.Iterable values) {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearPhraseHints() { + @java.lang.Deprecated public Builder clearPhraseHints() { phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases that the speech
      * recognizer should recognize with higher likelihood.
@@ -1743,16 +1574,15 @@ public Builder clearPhraseHints() {
      * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param value The bytes of the phraseHints to add. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addPhraseHintsBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder addPhraseHintsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseHintsIsMutable(); phraseHints_.add(value); onChanged(); @@ -1760,25 +1590,18 @@ public Builder addPhraseHintsBytes(com.google.protobuf.ByteString value) { } private java.util.List speechContexts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpeechContextsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speechContexts_ = - new java.util.ArrayList(speechContexts_); + speechContexts_ = new java.util.ArrayList(speechContexts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.SpeechContext, - com.google.cloud.dialogflow.v2.SpeechContext.Builder, - com.google.cloud.dialogflow.v2.SpeechContextOrBuilder> - speechContextsBuilder_; + com.google.cloud.dialogflow.v2.SpeechContext, com.google.cloud.dialogflow.v2.SpeechContext.Builder, com.google.cloud.dialogflow.v2.SpeechContextOrBuilder> speechContextsBuilder_; /** - * - * *
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1796,8 +1619,6 @@ public java.util.List getSpeechCon
       }
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1815,8 +1636,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1834,8 +1653,6 @@ public com.google.cloud.dialogflow.v2.SpeechContext getSpeechContexts(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1860,8 +1677,6 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1883,8 +1698,6 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1908,8 +1721,6 @@ public Builder addSpeechContexts(com.google.cloud.dialogflow.v2.SpeechContext va
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1934,8 +1745,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1957,8 +1766,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1980,8 +1787,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -1995,7 +1800,8 @@ public Builder addAllSpeechContexts(
         java.lang.Iterable values) {
       if (speechContextsBuilder_ == null) {
         ensureSpeechContextsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speechContexts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, speechContexts_);
         onChanged();
       } else {
         speechContextsBuilder_.addAllMessages(values);
@@ -2003,8 +1809,6 @@ public Builder addAllSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2025,8 +1829,6 @@ public Builder clearSpeechContexts() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2047,8 +1849,6 @@ public Builder removeSpeechContexts(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2063,8 +1863,6 @@ public com.google.cloud.dialogflow.v2.SpeechContext.Builder getSpeechContextsBui
       return getSpeechContextsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2077,14 +1875,11 @@ public com.google.cloud.dialogflow.v2.SpeechContext.Builder getSpeechContextsBui
     public com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOrBuilder(
         int index) {
       if (speechContextsBuilder_ == null) {
-        return speechContexts_.get(index);
-      } else {
+        return speechContexts_.get(index);  } else {
         return speechContextsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2094,8 +1889,8 @@ public com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOr
      *
      * repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;
      */
-    public java.util.List
-        getSpeechContextsOrBuilderList() {
+    public java.util.List 
+         getSpeechContextsOrBuilderList() {
       if (speechContextsBuilder_ != null) {
         return speechContextsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2103,8 +1898,6 @@ public com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOr
       }
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2115,12 +1908,10 @@ public com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOr
      * repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;
      */
     public com.google.cloud.dialogflow.v2.SpeechContext.Builder addSpeechContextsBuilder() {
-      return getSpeechContextsFieldBuilder()
-          .addBuilder(com.google.cloud.dialogflow.v2.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder().addBuilder(
+          com.google.cloud.dialogflow.v2.SpeechContext.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2132,12 +1923,10 @@ public com.google.cloud.dialogflow.v2.SpeechContext.Builder addSpeechContextsBui
      */
     public com.google.cloud.dialogflow.v2.SpeechContext.Builder addSpeechContextsBuilder(
         int index) {
-      return getSpeechContextsFieldBuilder()
-          .addBuilder(index, com.google.cloud.dialogflow.v2.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder().addBuilder(
+          index, com.google.cloud.dialogflow.v2.SpeechContext.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Context information to assist speech recognition.
      * See [the Cloud Speech
@@ -2147,22 +1936,16 @@ public com.google.cloud.dialogflow.v2.SpeechContext.Builder addSpeechContextsBui
      *
      * repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;
      */
-    public java.util.List
-        getSpeechContextsBuilderList() {
+    public java.util.List 
+         getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.dialogflow.v2.SpeechContext,
-            com.google.cloud.dialogflow.v2.SpeechContext.Builder,
-            com.google.cloud.dialogflow.v2.SpeechContextOrBuilder>
+        com.google.cloud.dialogflow.v2.SpeechContext, com.google.cloud.dialogflow.v2.SpeechContext.Builder, com.google.cloud.dialogflow.v2.SpeechContextOrBuilder> 
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.dialogflow.v2.SpeechContext,
-                com.google.cloud.dialogflow.v2.SpeechContext.Builder,
-                com.google.cloud.dialogflow.v2.SpeechContextOrBuilder>(
+        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.dialogflow.v2.SpeechContext, com.google.cloud.dialogflow.v2.SpeechContext.Builder, com.google.cloud.dialogflow.v2.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2174,8 +1957,6 @@ public com.google.cloud.dialogflow.v2.SpeechContext.Builder addSpeechContextsBui
 
     private java.lang.Object model_ = "";
     /**
-     *
-     *
      * 
      * Which Speech model to select for the given request. Select the
      * model best suited to your domain to get best results. If a model is not
@@ -2191,13 +1972,13 @@ public com.google.cloud.dialogflow.v2.SpeechContext.Builder addSpeechContextsBui
      * 
* * string model = 7; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -2206,8 +1987,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Which Speech model to select for the given request. Select the
      * model best suited to your domain to get best results. If a model is not
@@ -2223,14 +2002,15 @@ public java.lang.String getModel() {
      * 
* * string model = 7; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -2238,8 +2018,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Which Speech model to select for the given request. Select the
      * model best suited to your domain to get best results. If a model is not
@@ -2255,22 +2033,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 7; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Which Speech model to select for the given request. Select the
      * model best suited to your domain to get best results. If a model is not
@@ -2286,18 +2062,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 7; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Which Speech model to select for the given request. Select the
      * model best suited to your domain to get best results. If a model is not
@@ -2313,16 +2086,16 @@ public Builder clearModel() {
      * 
* * string model = 7; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -2330,67 +2103,51 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private int modelVariant_ = 0; /** - * - * *
      * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @return The enum numeric value on the wire for modelVariant. */ - @java.lang.Override - public int getModelVariantValue() { + @java.lang.Override public int getModelVariantValue() { return modelVariant_; } /** - * - * *
      * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @param value The enum numeric value on the wire for modelVariant to set. * @return This builder for chaining. */ public Builder setModelVariantValue(int value) { - + modelVariant_ = value; onChanged(); return this; } /** - * - * *
      * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @return The modelVariant. */ @java.lang.Override public com.google.cloud.dialogflow.v2.SpeechModelVariant getModelVariant() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.SpeechModelVariant result = - com.google.cloud.dialogflow.v2.SpeechModelVariant.valueOf(modelVariant_); - return result == null - ? com.google.cloud.dialogflow.v2.SpeechModelVariant.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.SpeechModelVariant result = com.google.cloud.dialogflow.v2.SpeechModelVariant.valueOf(modelVariant_); + return result == null ? com.google.cloud.dialogflow.v2.SpeechModelVariant.UNRECOGNIZED : result; } /** - * - * *
      * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @param value The modelVariant to set. * @return This builder for chaining. */ @@ -2398,33 +2155,28 @@ public Builder setModelVariant(com.google.cloud.dialogflow.v2.SpeechModelVariant if (value == null) { throw new NullPointerException(); } - + modelVariant_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @return This builder for chaining. */ public Builder clearModelVariant() { - + modelVariant_ = 0; onChanged(); return this; } - private boolean singleUtterance_; + private boolean singleUtterance_ ; /** - * - * *
      * If `false` (default), recognition does not cease until the
      * client closes the stream.
@@ -2439,7 +2191,6 @@ public Builder clearModelVariant() {
      * 
* * bool single_utterance = 8; - * * @return The singleUtterance. */ @java.lang.Override @@ -2447,8 +2198,6 @@ public boolean getSingleUtterance() { return singleUtterance_; } /** - * - * *
      * If `false` (default), recognition does not cease until the
      * client closes the stream.
@@ -2463,19 +2212,16 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 8; - * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** - * - * *
      * If `false` (default), recognition does not cease until the
      * client closes the stream.
@@ -2490,20 +2236,17 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 8; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean disableNoSpeechRecognizedEvent_; + private boolean disableNoSpeechRecognizedEvent_ ; /** - * - * *
      * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
      * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
@@ -2512,7 +2255,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool disable_no_speech_recognized_event = 14; - * * @return The disableNoSpeechRecognizedEvent. */ @java.lang.Override @@ -2520,8 +2262,6 @@ public boolean getDisableNoSpeechRecognizedEvent() { return disableNoSpeechRecognizedEvent_; } /** - * - * *
      * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
      * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
@@ -2530,19 +2270,16 @@ public boolean getDisableNoSpeechRecognizedEvent() {
      * 
* * bool disable_no_speech_recognized_event = 14; - * * @param value The disableNoSpeechRecognizedEvent to set. * @return This builder for chaining. */ public Builder setDisableNoSpeechRecognizedEvent(boolean value) { - + disableNoSpeechRecognizedEvent_ = value; onChanged(); return this; } /** - * - * *
      * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
      * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
@@ -2551,18 +2288,17 @@ public Builder setDisableNoSpeechRecognizedEvent(boolean value) {
      * 
* * bool disable_no_speech_recognized_event = 14; - * * @return This builder for chaining. */ public Builder clearDisableNoSpeechRecognizedEvent() { - + disableNoSpeechRecognizedEvent_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2572,12 +2308,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.InputAudioConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.InputAudioConfig) private static final com.google.cloud.dialogflow.v2.InputAudioConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.InputAudioConfig(); } @@ -2586,16 +2322,16 @@ public static com.google.cloud.dialogflow.v2.InputAudioConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputAudioConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputAudioConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputAudioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputAudioConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2610,4 +2346,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.InputAudioConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java similarity index 87% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java index aeddf206f..bd404c3b1 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; -public interface InputAudioConfigOrBuilder - extends +public interface InputAudioConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.InputAudioConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Audio encoding of the audio content to process.
    * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @return The enum numeric value on the wire for audioEncoding. */ int getAudioEncodingValue(); /** - * - * *
    * Required. Audio encoding of the audio content to process.
    * 
* * .google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1; - * * @return The audioEncoding. */ com.google.cloud.dialogflow.v2.AudioEncoding getAudioEncoding(); /** - * - * *
    * Required. Sample rate (in Hertz) of the audio content sent in the query.
    * Refer to
@@ -60,14 +36,11 @@ public interface InputAudioConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * Required. The language of the supplied audio. Dialogflow does not do
    * translations. See [Language
@@ -77,13 +50,10 @@ public interface InputAudioConfigOrBuilder
    * 
* * string language_code = 3; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language of the supplied audio. Dialogflow does not do
    * translations. See [Language
@@ -93,14 +63,12 @@ public interface InputAudioConfigOrBuilder
    * 
* * string language_code = 3; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in
    * [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] with information about the recognized speech
@@ -109,14 +77,11 @@ public interface InputAudioConfigOrBuilder
    * 
* * bool enable_word_info = 13; - * * @return The enableWordInfo. */ boolean getEnableWordInfo(); /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -129,14 +94,11 @@ public interface InputAudioConfigOrBuilder
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @return A list containing the phraseHints. */ - @java.lang.Deprecated - java.util.List getPhraseHintsList(); + @java.lang.Deprecated java.util.List + getPhraseHintsList(); /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -149,14 +111,10 @@ public interface InputAudioConfigOrBuilder
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @return The count of phraseHints. */ - @java.lang.Deprecated - int getPhraseHintsCount(); + @java.lang.Deprecated int getPhraseHintsCount(); /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -169,15 +127,11 @@ public interface InputAudioConfigOrBuilder
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param index The index of the element to return. * @return The phraseHints at the given index. */ - @java.lang.Deprecated - java.lang.String getPhraseHints(int index); + @java.lang.Deprecated java.lang.String getPhraseHints(int index); /** - * - * *
    * A list of strings containing words and phrases that the speech
    * recognizer should recognize with higher likelihood.
@@ -190,16 +144,13 @@ public interface InputAudioConfigOrBuilder
    * 
* * repeated string phrase_hints = 4 [deprecated = true]; - * * @param index The index of the value to return. * @return The bytes of the phraseHints at the given index. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getPhraseHintsBytes(int index); + @java.lang.Deprecated com.google.protobuf.ByteString + getPhraseHintsBytes(int index); /** - * - * *
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -209,10 +160,9 @@ public interface InputAudioConfigOrBuilder
    *
    * repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;
    */
-  java.util.List getSpeechContextsList();
+  java.util.List 
+      getSpeechContextsList();
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -224,8 +174,6 @@ public interface InputAudioConfigOrBuilder
    */
   com.google.cloud.dialogflow.v2.SpeechContext getSpeechContexts(int index);
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -237,8 +185,6 @@ public interface InputAudioConfigOrBuilder
    */
   int getSpeechContextsCount();
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -248,11 +194,9 @@ public interface InputAudioConfigOrBuilder
    *
    * repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;
    */
-  java.util.List
+  java.util.List 
       getSpeechContextsOrBuilderList();
   /**
-   *
-   *
    * 
    * Context information to assist speech recognition.
    * See [the Cloud Speech
@@ -262,11 +206,10 @@ public interface InputAudioConfigOrBuilder
    *
    * repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;
    */
-  com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
+  com.google.cloud.dialogflow.v2.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Which Speech model to select for the given request. Select the
    * model best suited to your domain to get best results. If a model is not
@@ -282,13 +225,10 @@ public interface InputAudioConfigOrBuilder
    * 
* * string model = 7; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Which Speech model to select for the given request. Select the
    * model best suited to your domain to get best results. If a model is not
@@ -304,39 +244,31 @@ public interface InputAudioConfigOrBuilder
    * 
* * string model = 7; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @return The enum numeric value on the wire for modelVariant. */ int getModelVariantValue(); /** - * - * *
    * Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10; - * * @return The modelVariant. */ com.google.cloud.dialogflow.v2.SpeechModelVariant getModelVariant(); /** - * - * *
    * If `false` (default), recognition does not cease until the
    * client closes the stream.
@@ -351,14 +283,11 @@ public interface InputAudioConfigOrBuilder
    * 
* * bool single_utterance = 8; - * * @return The singleUtterance. */ boolean getSingleUtterance(); /** - * - * *
    * Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and
    * [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent].
@@ -367,7 +296,6 @@ public interface InputAudioConfigOrBuilder
    * 
* * bool disable_no_speech_recognized_event = 14; - * * @return The disableNoSpeechRecognizedEvent. */ boolean getDisableNoSpeechRecognizedEvent(); diff --git a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java similarity index 68% rename from proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java rename to owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java index 6b36fde5b..35c27e288 100644 --- a/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java +++ b/owl-bot-staging/v2/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Intent.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 package com.google.cloud.dialogflow.v2; /** - * - * *
  * An intent categorizes an end-user's intention for one conversation turn. For
  * each agent, you define many intents, where your combined intents can handle a
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.dialogflow.v2.Intent}
  */
-public final class Intent extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Intent extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent)
     IntentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Intent.newBuilder() to construct.
   private Intent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Intent() {
     name_ = "";
     displayName_ = "";
@@ -63,15 +45,16 @@ private Intent() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Intent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Intent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -91,198 +74,172 @@ private Intent(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 24:
-            {
-              priority_ = input.readInt32();
-              break;
-            }
-          case 32:
-            {
-              isFallback_ = input.readBool();
-              break;
-            }
-          case 48:
-            {
-              int rawValue = input.readEnum();
+            displayName_ = s;
+            break;
+          }
+          case 24: {
 
-              webhookState_ = rawValue;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                inputContextNames_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              inputContextNames_.add(s);
-              break;
+            priority_ = input.readInt32();
+            break;
+          }
+          case 32: {
+
+            isFallback_ = input.readBool();
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
+
+            webhookState_ = rawValue;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              inputContextNames_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                events_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              events_.add(s);
-              break;
+            inputContextNames_.add(s);
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              events_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 74:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                trainingPhrases_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              trainingPhrases_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.parser(),
-                      extensionRegistry));
-              break;
+            events_.add(s);
+            break;
+          }
+          case 74: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              trainingPhrases_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            trainingPhrases_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.parser(), extensionRegistry));
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              action_ = s;
-              break;
-            }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                outputContexts_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              outputContexts_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Context.parser(), extensionRegistry));
-              break;
+            action_ = s;
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              outputContexts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 96:
-            {
-              resetContexts_ = input.readBool();
-              break;
+            outputContexts_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.Context.parser(), extensionRegistry));
+            break;
+          }
+          case 96: {
+
+            resetContexts_ = input.readBool();
+            break;
+          }
+          case 106: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              parameters_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
             }
-          case 106:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                parameters_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              parameters_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Intent.Parameter.parser(), extensionRegistry));
-              break;
+            parameters_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.Intent.Parameter.parser(), extensionRegistry));
+            break;
+          }
+          case 114: {
+            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
+              messages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000020;
             }
-          case 114:
-            {
-              if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-                messages_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000020;
-              }
-              messages_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Intent.Message.parser(), extensionRegistry));
-              break;
+            messages_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.parser(), extensionRegistry));
+            break;
+          }
+          case 120: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000040) != 0)) {
+              defaultResponsePlatforms_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000040;
             }
-          case 120:
-            {
+            defaultResponsePlatforms_.add(rawValue);
+            break;
+          }
+          case 122: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000040) != 0)) {
                 defaultResponsePlatforms_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000040;
               }
               defaultResponsePlatforms_.add(rawValue);
-              break;
             }
-          case 122:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000040) != 0)) {
-                  defaultResponsePlatforms_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000040;
-                }
-                defaultResponsePlatforms_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
-            }
-          case 130:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 130: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              rootFollowupIntentName_ = s;
-              break;
-            }
-          case 138:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            rootFollowupIntentName_ = s;
+            break;
+          }
+          case 138: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parentFollowupIntentName_ = s;
-              break;
-            }
-          case 146:
-            {
-              if (!((mutable_bitField0_ & 0x00000080) != 0)) {
-                followupIntentInfo_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.dialogflow.v2.Intent.FollowupIntentInfo>();
-                mutable_bitField0_ |= 0x00000080;
-              }
-              followupIntentInfo_.add(
-                  input.readMessage(
-                      com.google.cloud.dialogflow.v2.Intent.FollowupIntentInfo.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 152:
-            {
-              mlDisabled_ = input.readBool();
-              break;
-            }
-          case 160:
-            {
-              liveAgentHandoff_ = input.readBool();
-              break;
-            }
-          case 168:
-            {
-              endInteraction_ = input.readBool();
-              break;
+            parentFollowupIntentName_ = s;
+            break;
+          }
+          case 146: {
+            if (!((mutable_bitField0_ & 0x00000080) != 0)) {
+              followupIntentInfo_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000080;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            followupIntentInfo_.add(
+                input.readMessage(com.google.cloud.dialogflow.v2.Intent.FollowupIntentInfo.parser(), extensionRegistry));
+            break;
+          }
+          case 152: {
+
+            mlDisabled_ = input.readBool();
+            break;
+          }
+          case 160: {
+
+            liveAgentHandoff_ = input.readBool();
+            break;
+          }
+          case 168: {
+
+            endInteraction_ = 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         inputContextNames_ = inputContextNames_.getUnmodifiableView();
@@ -303,8 +260,7 @@ private Intent(
         messages_ = java.util.Collections.unmodifiableList(messages_);
       }
       if (((mutable_bitField0_ & 0x00000040) != 0)) {
-        defaultResponsePlatforms_ =
-            java.util.Collections.unmodifiableList(defaultResponsePlatforms_);
+        defaultResponsePlatforms_ = java.util.Collections.unmodifiableList(defaultResponsePlatforms_);
       }
       if (((mutable_bitField0_ & 0x00000080) != 0)) {
         followupIntentInfo_ = java.util.Collections.unmodifiableList(followupIntentInfo_);
@@ -313,35 +269,29 @@ private Intent(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.dialogflow.v2.IntentProto
-        .internal_static_google_cloud_dialogflow_v2_Intent_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.dialogflow.v2.IntentProto
-        .internal_static_google_cloud_dialogflow_v2_Intent_fieldAccessorTable
+    return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.dialogflow.v2.Intent.class,
-            com.google.cloud.dialogflow.v2.Intent.Builder.class);
+            com.google.cloud.dialogflow.v2.Intent.class, com.google.cloud.dialogflow.v2.Intent.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Represents the different states that webhooks can be in.
    * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Intent.WebhookState} */ - public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum { + public enum WebhookState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Webhook is disabled in the agent and in the intent.
      * 
@@ -350,8 +300,6 @@ public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum { */ WEBHOOK_STATE_UNSPECIFIED(0), /** - * - * *
      * Webhook is enabled in the agent and in the intent.
      * 
@@ -360,8 +308,6 @@ public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum { */ WEBHOOK_STATE_ENABLED(1), /** - * - * *
      * Webhook is enabled in the agent and in the intent. Also, each slot
      * filling prompt is forwarded to the webhook.
@@ -374,8 +320,6 @@ public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Webhook is disabled in the agent and in the intent.
      * 
@@ -384,8 +328,6 @@ public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WEBHOOK_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Webhook is enabled in the agent and in the intent.
      * 
@@ -394,8 +336,6 @@ public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WEBHOOK_STATE_ENABLED_VALUE = 1; /** - * - * *
      * Webhook is enabled in the agent and in the intent. Also, each slot
      * filling prompt is forwarded to the webhook.
@@ -405,6 +345,7 @@ public enum WebhookState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -429,49 +370,49 @@ public static WebhookState valueOf(int value) {
      */
     public static WebhookState forNumber(int value) {
       switch (value) {
-        case 0:
-          return WEBHOOK_STATE_UNSPECIFIED;
-        case 1:
-          return WEBHOOK_STATE_ENABLED;
-        case 2:
-          return WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING;
-        default:
-          return null;
+        case 0: return WEBHOOK_STATE_UNSPECIFIED;
+        case 1: return WEBHOOK_STATE_ENABLED;
+        case 2: return WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        WebhookState> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public WebhookState findValueByNumber(int number) {
+              return WebhookState.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public WebhookState findValueByNumber(int number) {
-            return WebhookState.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.dialogflow.v2.Intent.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final WebhookState[] VALUES = values();
 
-    public static WebhookState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static WebhookState valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -488,68 +429,50 @@ private WebhookState(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Intent.WebhookState)
   }
 
-  public interface TrainingPhraseOrBuilder
-      extends
+  public interface TrainingPhraseOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.TrainingPhrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Output only. The unique identifier of this training phrase.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Output only. The unique identifier of this training phrase.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Required. The type of the training phrase.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Required. The type of the training phrase.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType(); /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -567,14 +490,11 @@ public interface TrainingPhraseOrBuilder
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getPartsList(); + java.util.List + getPartsList(); /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -592,14 +512,10 @@ public interface TrainingPhraseOrBuilder
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int index); /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -617,14 +533,10 @@ public interface TrainingPhraseOrBuilder
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ int getPartsCount(); /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -642,15 +554,11 @@ public interface TrainingPhraseOrBuilder
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getPartsOrBuilderList(); /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -668,15 +576,12 @@ public interface TrainingPhraseOrBuilder
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder(int index); + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder( + int index); /** - * - * *
      * Optional. Indicates how many times this example was added to
      * the intent. Each time a developer adds an existing sample by editing an
@@ -684,30 +589,26 @@ public interface TrainingPhraseOrBuilder
      * 
* * int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The timesAddedCount. */ int getTimesAddedCount(); } /** - * - * *
    * Represents an example that the agent is trained on.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.TrainingPhrase} */ - public static final class TrainingPhrase extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TrainingPhrase extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.TrainingPhrase) TrainingPhraseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TrainingPhrase.newBuilder() to construct. private TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TrainingPhrase() { name_ = ""; type_ = 0; @@ -716,15 +617,16 @@ private TrainingPhrase() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TrainingPhrase(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TrainingPhrase( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -744,52 +646,46 @@ private TrainingPhrase( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parts_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part>(); - mutable_bitField0_ |= 0x00000001; - } - parts_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.parser(), - extensionRegistry)); - break; - } - case 32: - { - timesAddedCount_ = input.readInt32(); - break; + type_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parts_.add( + input.readMessage(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.parser(), extensionRegistry)); + break; + } + case 32: { + + timesAddedCount_ = input.readInt32(); + 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parts_ = java.util.Collections.unmodifiableList(parts_); @@ -798,35 +694,29 @@ private TrainingPhrase( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.class, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder.class); + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.class, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder.class); } /** - * - * *
      * Represents different types of training phrases.
      * 
* * Protobuf enum {@code google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Not specified. This value should never be used.
        * 
@@ -835,8 +725,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
        * Examples do not contain @-prefixed entity type names, but example parts
        * can be annotated with entity types.
@@ -846,8 +734,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
        */
       EXAMPLE(1),
       /**
-       *
-       *
        * 
        * Templates are not annotated with entity types, but they can contain
        * @-prefixed entity type names as substrings.
@@ -865,8 +751,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Not specified. This value should never be used.
        * 
@@ -875,8 +759,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Examples do not contain @-prefixed entity type names, but example parts
        * can be annotated with entity types.
@@ -886,8 +768,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int EXAMPLE_VALUE = 1;
       /**
-       *
-       *
        * 
        * Templates are not annotated with entity types, but they can contain
        * @-prefixed entity type names as substrings.
@@ -901,6 +781,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
        */
       @java.lang.Deprecated public static final int TEMPLATE_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -925,51 +806,49 @@ public static Type valueOf(int value) {
        */
       public static Type forNumber(int value) {
         switch (value) {
-          case 0:
-            return TYPE_UNSPECIFIED;
-          case 1:
-            return EXAMPLE;
-          case 2:
-            return TEMPLATE;
-          default:
-            return null;
+          case 0: return TYPE_UNSPECIFIED;
+          case 1: return EXAMPLE;
+          case 2: return TEMPLATE;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          Type> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public Type findValueByNumber(int number) {
+                return Type.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Type findValueByNumber(int number) {
-              return Type.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final Type[] VALUES = values();
 
-      public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Type valueOf(
+          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -986,66 +865,53 @@ private Type(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type)
     }
 
-    public interface PartOrBuilder
-        extends
+    public interface PartOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Required. The text for this part.
        * 
* * string text = 1; - * * @return The text. */ java.lang.String getText(); /** - * - * *
        * Required. The text for this part.
        * 
* * string text = 1; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
        * Optional. The entity type name prefixed with `@`.
        * This field is required for annotated parts of the training phrase.
        * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The entityType. */ java.lang.String getEntityType(); /** - * - * *
        * Optional. The entity type name prefixed with `@`.
        * This field is required for annotated parts of the training phrase.
        * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for entityType. */ - com.google.protobuf.ByteString getEntityTypeBytes(); + com.google.protobuf.ByteString + getEntityTypeBytes(); /** - * - * *
        * Optional. The parameter name for the value extracted from the
        * annotated part of the example.
@@ -1053,13 +919,10 @@ public interface PartOrBuilder
        * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alias. */ java.lang.String getAlias(); /** - * - * *
        * Optional. The parameter name for the value extracted from the
        * annotated part of the example.
@@ -1067,14 +930,12 @@ public interface PartOrBuilder
        * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alias. */ - com.google.protobuf.ByteString getAliasBytes(); + com.google.protobuf.ByteString + getAliasBytes(); /** - * - * *
        * Optional. Indicates whether the text was manually annotated.
        * This field is set to true when the Dialogflow Console is used to
@@ -1083,30 +944,26 @@ public interface PartOrBuilder
        * 
* * bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userDefined. */ boolean getUserDefined(); } /** - * - * *
      * Represents a part of a training phrase.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part} */ - public static final class Part extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Part extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) PartOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Part.newBuilder() to construct. private Part(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Part() { text_ = ""; entityType_ = ""; @@ -1115,15 +972,16 @@ private Part() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Part(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Part( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1142,78 +1000,69 @@ private Part( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - text_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + text_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - entityType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + entityType_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - alias_ = s; - break; - } - case 32: - { - userDefined_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + alias_ = s; + break; + } + case 32: { + + userDefined_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.class, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder.class); + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.class, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object text_; /** - * - * *
        * Required. The text for this part.
        * 
* * string text = 1; - * * @return The text. */ @java.lang.Override @@ -1222,29 +1071,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
        * Required. The text for this part.
        * 
* * string text = 1; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -1255,15 +1104,12 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int ENTITY_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object entityType_; /** - * - * *
        * Optional. The entity type name prefixed with `@`.
        * This field is required for annotated parts of the training phrase.
        * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The entityType. */ @java.lang.Override @@ -1272,30 +1118,30 @@ public java.lang.String getEntityType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityType_ = s; return s; } } /** - * - * *
        * Optional. The entity type name prefixed with `@`.
        * This field is required for annotated parts of the training phrase.
        * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for entityType. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityTypeBytes() { + public com.google.protobuf.ByteString + getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityType_ = b; return b; } else { @@ -1306,8 +1152,6 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { public static final int ALIAS_FIELD_NUMBER = 3; private volatile java.lang.Object alias_; /** - * - * *
        * Optional. The parameter name for the value extracted from the
        * annotated part of the example.
@@ -1315,7 +1159,6 @@ public com.google.protobuf.ByteString getEntityTypeBytes() {
        * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alias. */ @java.lang.Override @@ -1324,15 +1167,14 @@ public java.lang.String getAlias() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alias_ = s; return s; } } /** - * - * *
        * Optional. The parameter name for the value extracted from the
        * annotated part of the example.
@@ -1340,15 +1182,16 @@ public java.lang.String getAlias() {
        * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alias. */ @java.lang.Override - public com.google.protobuf.ByteString getAliasBytes() { + public com.google.protobuf.ByteString + getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); alias_ = b; return b; } else { @@ -1359,8 +1202,6 @@ public com.google.protobuf.ByteString getAliasBytes() { public static final int USER_DEFINED_FIELD_NUMBER = 4; private boolean userDefined_; /** - * - * *
        * Optional. Indicates whether the text was manually annotated.
        * This field is set to true when the Dialogflow Console is used to
@@ -1369,7 +1210,6 @@ public com.google.protobuf.ByteString getAliasBytes() {
        * 
* * bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userDefined. */ @java.lang.Override @@ -1378,7 +1218,6 @@ public boolean getUserDefined() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1390,7 +1229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getTextBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } @@ -1422,7 +1262,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias_); } if (userDefined_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, userDefined_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, userDefined_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1432,18 +1273,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part other = - (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) obj; + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part other = (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) obj; - if (!getText().equals(other.getText())) return false; - if (!getEntityType().equals(other.getEntityType())) return false; - if (!getAlias().equals(other.getAlias())) return false; - if (getUserDefined() != other.getUserDefined()) return false; + if (!getText() + .equals(other.getText())) return false; + if (!getEntityType() + .equals(other.getEntityType())) return false; + if (!getAlias() + .equals(other.getAlias())) return false; + if (getUserDefined() + != other.getUserDefined()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1462,101 +1306,95 @@ public int hashCode() { hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode(); hash = (37 * hash) + USER_DEFINED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUserDefined()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUserDefined()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1566,32 +1404,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Represents a part of a training phrase.
        * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.class, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder.class); + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.class, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.newBuilder() @@ -1599,15 +1432,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1623,14 +1457,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_Part_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.getDefaultInstance(); } @@ -1645,8 +1478,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part buildPartial() { - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part result = - new com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part(this); + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part result = new com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part(this); result.text_ = text_; result.entityType_ = entityType_; result.alias_ = alias_; @@ -1659,41 +1491,38 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) { - return mergeFrom((com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part)other); } else { super.mergeFrom(other); return this; @@ -1701,9 +1530,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part other) { - if (other - == com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.getDefaultInstance()) return this; if (!other.getText().isEmpty()) { text_ = other.text_; onChanged(); @@ -1738,9 +1565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1752,20 +1577,18 @@ public Builder mergeFrom( private java.lang.Object text_ = ""; /** - * - * *
          * Required. The text for this part.
          * 
* * string text = 1; - * * @return The text. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -1774,21 +1597,20 @@ public java.lang.String getText() { } } /** - * - * *
          * Required. The text for this part.
          * 
* * string text = 1; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -1796,61 +1618,54 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
          * Required. The text for this part.
          * 
* * string text = 1; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
          * Required. The text for this part.
          * 
* * string text = 1; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
          * Required. The text for this part.
          * 
* * string text = 1; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; @@ -1858,21 +1673,19 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityType_ = ""; /** - * - * *
          * Optional. The entity type name prefixed with `@`.
          * This field is required for annotated parts of the training phrase.
          * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The entityType. */ public java.lang.String getEntityType() { java.lang.Object ref = entityType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityType_ = s; return s; @@ -1881,22 +1694,21 @@ public java.lang.String getEntityType() { } } /** - * - * *
          * Optional. The entity type name prefixed with `@`.
          * This field is required for annotated parts of the training phrase.
          * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for entityType. */ - public com.google.protobuf.ByteString getEntityTypeBytes() { + public com.google.protobuf.ByteString + getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityType_ = b; return b; } else { @@ -1904,64 +1716,57 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } } /** - * - * *
          * Optional. The entity type name prefixed with `@`.
          * This field is required for annotated parts of the training phrase.
          * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The entityType to set. * @return This builder for chaining. */ - public Builder setEntityType(java.lang.String value) { + public Builder setEntityType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityType_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The entity type name prefixed with `@`.
          * This field is required for annotated parts of the training phrase.
          * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEntityType() { - + entityType_ = getDefaultInstance().getEntityType(); onChanged(); return this; } /** - * - * *
          * Optional. The entity type name prefixed with `@`.
          * This field is required for annotated parts of the training phrase.
          * 
* * string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for entityType to set. * @return This builder for chaining. */ - public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + public Builder setEntityTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityType_ = value; onChanged(); return this; @@ -1969,8 +1774,6 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object alias_ = ""; /** - * - * *
          * Optional. The parameter name for the value extracted from the
          * annotated part of the example.
@@ -1978,13 +1781,13 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The alias. */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alias_ = s; return s; @@ -1993,8 +1796,6 @@ public java.lang.String getAlias() { } } /** - * - * *
          * Optional. The parameter name for the value extracted from the
          * annotated part of the example.
@@ -2002,14 +1803,15 @@ public java.lang.String getAlias() {
          * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for alias. */ - public com.google.protobuf.ByteString getAliasBytes() { + public com.google.protobuf.ByteString + getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); alias_ = b; return b; } else { @@ -2017,8 +1819,6 @@ public com.google.protobuf.ByteString getAliasBytes() { } } /** - * - * *
          * Optional. The parameter name for the value extracted from the
          * annotated part of the example.
@@ -2026,22 +1826,20 @@ public com.google.protobuf.ByteString getAliasBytes() {
          * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The alias to set. * @return This builder for chaining. */ - public Builder setAlias(java.lang.String value) { + public Builder setAlias( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + alias_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The parameter name for the value extracted from the
          * annotated part of the example.
@@ -2049,18 +1847,15 @@ public Builder setAlias(java.lang.String value) {
          * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAlias() { - + alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } /** - * - * *
          * Optional. The parameter name for the value extracted from the
          * annotated part of the example.
@@ -2068,25 +1863,23 @@ public Builder clearAlias() {
          * 
* * string alias = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for alias to set. * @return This builder for chaining. */ - public Builder setAliasBytes(com.google.protobuf.ByteString value) { + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alias_ = value; onChanged(); return this; } - private boolean userDefined_; + private boolean userDefined_ ; /** - * - * *
          * Optional. Indicates whether the text was manually annotated.
          * This field is set to true when the Dialogflow Console is used to
@@ -2095,7 +1888,6 @@ public Builder setAliasBytes(com.google.protobuf.ByteString value) {
          * 
* * bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userDefined. */ @java.lang.Override @@ -2103,8 +1895,6 @@ public boolean getUserDefined() { return userDefined_; } /** - * - * *
          * Optional. Indicates whether the text was manually annotated.
          * This field is set to true when the Dialogflow Console is used to
@@ -2113,19 +1903,16 @@ public boolean getUserDefined() {
          * 
* * bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The userDefined to set. * @return This builder for chaining. */ public Builder setUserDefined(boolean value) { - + userDefined_ = value; onChanged(); return this; } /** - * - * *
          * Optional. Indicates whether the text was manually annotated.
          * This field is set to true when the Dialogflow Console is used to
@@ -2134,16 +1921,14 @@ public Builder setUserDefined(boolean value) {
          * 
* * bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUserDefined() { - + userDefined_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2156,13 +1941,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part) - private static final com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part(); } @@ -2171,16 +1955,16 @@ public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Part parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Part(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Part parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Part(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2195,19 +1979,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Output only. The unique identifier of this training phrase.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -2216,29 +1998,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Output only. The unique identifier of this training phrase.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2249,50 +2031,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
      * Required. The type of the training phrase.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. The type of the training phrase.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() { + @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type result = - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.valueOf(type_); - return result == null - ? com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type result = com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.valueOf(type_); + return result == null ? com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.UNRECOGNIZED : result; } public static final int PARTS_FIELD_NUMBER = 3; private java.util.List parts_; /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -2310,18 +2075,13 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() {
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getPartsList() { + public java.util.List getPartsList() { return parts_; } /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -2339,19 +2099,14 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() {
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder> + public java.util.List getPartsOrBuilderList() { return parts_; } /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -2369,17 +2124,13 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() {
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getPartsCount() { return parts_.size(); } /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -2397,17 +2148,13 @@ public int getPartsCount() {
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int index) { return parts_.get(index); } /** - * - * *
      * Required. The ordered list of training phrase parts.
      * The parts are concatenated in order to form the training phrase.
@@ -2425,9 +2172,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int in
      *     set.
      * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder( @@ -2438,8 +2183,6 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar public static final int TIMES_ADDED_COUNT_FIELD_NUMBER = 4; private int timesAddedCount_; /** - * - * *
      * Optional. Indicates how many times this example was added to
      * the intent. Each time a developer adds an existing sample by editing an
@@ -2447,7 +2190,6 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar
      * 
* * int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The timesAddedCount. */ @java.lang.Override @@ -2456,7 +2198,6 @@ public int getTimesAddedCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2468,13 +2209,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ - != com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } for (int i = 0; i < parts_.size(); i++) { @@ -2495,16 +2235,17 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } for (int i = 0; i < parts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, parts_.get(i)); } if (timesAddedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, timesAddedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, timesAddedCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2514,18 +2255,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.TrainingPhrase)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase other = - (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase) obj; + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase other = (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; - if (!getPartsList().equals(other.getPartsList())) return false; - if (getTimesAddedCount() != other.getTimesAddedCount()) return false; + if (!getPartsList() + .equals(other.getPartsList())) return false; + if (getTimesAddedCount() + != other.getTimesAddedCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2553,94 +2296,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2650,32 +2386,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents an example that the agent is trained on.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.TrainingPhrase} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Intent.TrainingPhrase) com.google.cloud.dialogflow.v2.Intent.TrainingPhraseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.class, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder.class); + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.class, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.newBuilder() @@ -2683,17 +2414,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPartsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2713,9 +2444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_TrainingPhrase_descriptor; } @java.lang.Override @@ -2734,8 +2465,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase buildPartial() { - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase result = - new com.google.cloud.dialogflow.v2.Intent.TrainingPhrase(this); + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase result = new com.google.cloud.dialogflow.v2.Intent.TrainingPhrase(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.type_ = type_; @@ -2757,41 +2487,38 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Intent.TrainingPhrase) { - return mergeFrom((com.google.cloud.dialogflow.v2.Intent.TrainingPhrase) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Intent.TrainingPhrase)other); } else { super.mergeFrom(other); return this; @@ -2799,8 +2526,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase other) { - if (other == com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2826,10 +2552,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase ot partsBuilder_ = null; parts_ = other.parts_; bitField0_ = (bitField0_ & ~0x00000001); - partsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartsFieldBuilder() - : null; + partsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartsFieldBuilder() : null; } else { partsBuilder_.addAllMessages(other.parts_); } @@ -2857,8 +2582,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Intent.TrainingPhrase) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2867,25 +2591,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * Output only. The unique identifier of this training phrase.
        * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2894,21 +2615,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Output only. The unique identifier of this training phrase.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2916,61 +2636,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Output only. The unique identifier of this training phrase.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The unique identifier of this training phrase.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Output only. The unique identifier of this training phrase.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2978,75 +2691,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
        * Required. The type of the training phrase.
        * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Required. The type of the training phrase.
        * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Required. The type of the training phrase.
        * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type getType() { @SuppressWarnings("deprecation") - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type result = - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.valueOf(type_); - return result == null - ? com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.UNRECOGNIZED - : result; + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type result = com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.valueOf(type_); + return result == null ? com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type.UNRECOGNIZED : result; } /** - * - * *
        * Required. The type of the training phrase.
        * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The type to set. * @return This builder for chaining. */ @@ -3054,52 +2743,39 @@ public Builder setType(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Required. The type of the training phrase.
        * 
* - * - * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } private java.util.List parts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePartsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - parts_ = - new java.util.ArrayList( - parts_); + parts_ = new java.util.ArrayList(parts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder> - partsBuilder_; + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder> partsBuilder_; /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3117,12 +2793,9 @@ private void ensurePartsIsMutable() {
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getPartsList() { + public java.util.List getPartsList() { if (partsBuilder_ == null) { return java.util.Collections.unmodifiableList(parts_); } else { @@ -3130,8 +2803,6 @@ private void ensurePartsIsMutable() { } } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3149,9 +2820,7 @@ private void ensurePartsIsMutable() {
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public int getPartsCount() { if (partsBuilder_ == null) { @@ -3161,8 +2830,6 @@ public int getPartsCount() { } } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3180,9 +2847,7 @@ public int getPartsCount() {
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int index) { if (partsBuilder_ == null) { @@ -3192,8 +2857,6 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int in } } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3211,9 +2874,7 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part getParts(int in
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setParts( int index, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part value) { @@ -3230,8 +2891,6 @@ public Builder setParts( return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3249,13 +2908,10 @@ public Builder setParts(
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setParts( - int index, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder builderForValue) { + int index, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder builderForValue) { if (partsBuilder_ == null) { ensurePartsIsMutable(); parts_.set(index, builderForValue.build()); @@ -3266,8 +2922,6 @@ public Builder setParts( return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3285,9 +2939,7 @@ public Builder setParts(
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addParts(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part value) { if (partsBuilder_ == null) { @@ -3303,8 +2955,6 @@ public Builder addParts(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Par return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3322,9 +2972,7 @@ public Builder addParts(com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Par
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addParts( int index, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part value) { @@ -3341,8 +2989,6 @@ public Builder addParts( return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3360,9 +3006,7 @@ public Builder addParts(
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addParts( com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder builderForValue) { @@ -3376,8 +3020,6 @@ public Builder addParts( return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3395,13 +3037,10 @@ public Builder addParts(
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addParts( - int index, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder builderForValue) { + int index, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder builderForValue) { if (partsBuilder_ == null) { ensurePartsIsMutable(); parts_.add(index, builderForValue.build()); @@ -3412,8 +3051,6 @@ public Builder addParts( return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3431,16 +3068,14 @@ public Builder addParts(
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllParts( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (partsBuilder_ == null) { ensurePartsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parts_); onChanged(); } else { partsBuilder_.addAllMessages(values); @@ -3448,8 +3083,6 @@ public Builder addAllParts( return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3467,9 +3100,7 @@ public Builder addAllParts(
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearParts() { if (partsBuilder_ == null) { @@ -3482,8 +3113,6 @@ public Builder clearParts() { return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3501,9 +3130,7 @@ public Builder clearParts() {
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeParts(int index) { if (partsBuilder_ == null) { @@ -3516,8 +3143,6 @@ public Builder removeParts(int index) { return this; } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3535,17 +3160,13 @@ public Builder removeParts(int index) {
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder getPartsBuilder( int index) { return getPartsFieldBuilder().getBuilder(index); } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3563,21 +3184,16 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder getPart
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder( int index) { if (partsBuilder_ == null) { - return parts_.get(index); - } else { + return parts_.get(index); } else { return partsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3595,13 +3211,10 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder> - getPartsOrBuilderList() { + public java.util.List + getPartsOrBuilderList() { if (partsBuilder_ != null) { return partsBuilder_.getMessageOrBuilderList(); } else { @@ -3609,8 +3222,6 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar } } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3628,18 +3239,13 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder getPar
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPartsBuilder() { - return getPartsFieldBuilder() - .addBuilder( - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.getDefaultInstance()); + return getPartsFieldBuilder().addBuilder( + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.getDefaultInstance()); } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3657,20 +3263,14 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPart
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPartsBuilder( int index) { - return getPartsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.getDefaultInstance()); + return getPartsFieldBuilder().addBuilder( + index, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.getDefaultInstance()); } /** - * - * *
        * Required. The ordered list of training phrase parts.
        * The parts are concatenated in order to form the training phrase.
@@ -3688,36 +3288,29 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPart
        *     set.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part parts = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getPartsBuilderList() { + public java.util.List + getPartsBuilderList() { return getPartsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder> + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder> getPartsFieldBuilder() { if (partsBuilder_ == null) { - partsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder, - com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder>( - parts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + partsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder, com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.PartOrBuilder>( + parts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); parts_ = null; } return partsBuilder_; } - private int timesAddedCount_; + private int timesAddedCount_ ; /** - * - * *
        * Optional. Indicates how many times this example was added to
        * the intent. Each time a developer adds an existing sample by editing an
@@ -3725,7 +3318,6 @@ public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.Builder addPart
        * 
* * int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The timesAddedCount. */ @java.lang.Override @@ -3733,8 +3325,6 @@ public int getTimesAddedCount() { return timesAddedCount_; } /** - * - * *
        * Optional. Indicates how many times this example was added to
        * the intent. Each time a developer adds an existing sample by editing an
@@ -3742,19 +3332,16 @@ public int getTimesAddedCount() {
        * 
* * int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The timesAddedCount to set. * @return This builder for chaining. */ public Builder setTimesAddedCount(int value) { - + timesAddedCount_ = value; onChanged(); return this; } /** - * - * *
        * Optional. Indicates how many times this example was added to
        * the intent. Each time a developer adds an existing sample by editing an
@@ -3762,16 +3349,14 @@ public Builder setTimesAddedCount(int value) {
        * 
* * int32 times_added_count = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTimesAddedCount() { - + timesAddedCount_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3784,12 +3369,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.TrainingPhrase) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.TrainingPhrase) private static final com.google.cloud.dialogflow.v2.Intent.TrainingPhrase DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.TrainingPhrase(); } @@ -3798,16 +3383,16 @@ public static com.google.cloud.dialogflow.v2.Intent.TrainingPhrase getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TrainingPhrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TrainingPhrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingPhrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingPhrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3822,66 +3407,54 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Intent.TrainingPhrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ParameterOrBuilder - extends + public interface ParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Parameter) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The unique identifier of this parameter.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * The unique identifier of this parameter.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Required. The name of the parameter.
      * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
      * Required. The name of the parameter.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
      * Optional. The definition of the parameter value. It can be:
      * - a constant string,
@@ -3892,13 +3465,10 @@ public interface ParameterOrBuilder
      * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Optional. The definition of the parameter value. It can be:
      * - a constant string,
@@ -3909,14 +3479,12 @@ public interface ParameterOrBuilder
      * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * Optional. The default value to use when the `value` yields an empty
      * result.
@@ -3925,13 +3493,10 @@ public interface ParameterOrBuilder
      * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The defaultValue. */ java.lang.String getDefaultValue(); /** - * - * *
      * Optional. The default value to use when the `value` yields an empty
      * result.
@@ -3940,14 +3505,12 @@ public interface ParameterOrBuilder
      * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for defaultValue. */ - com.google.protobuf.ByteString getDefaultValueBytes(); + com.google.protobuf.ByteString + getDefaultValueBytes(); /** - * - * *
      * Optional. The name of the entity type, prefixed with `@`, that
      * describes values of the parameter. If the parameter is
@@ -3955,13 +3518,10 @@ public interface ParameterOrBuilder
      * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The entityTypeDisplayName. */ java.lang.String getEntityTypeDisplayName(); /** - * - * *
      * Optional. The name of the entity type, prefixed with `@`, that
      * describes values of the parameter. If the parameter is
@@ -3969,14 +3529,12 @@ public interface ParameterOrBuilder
      * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for entityTypeDisplayName. */ - com.google.protobuf.ByteString getEntityTypeDisplayNameBytes(); + com.google.protobuf.ByteString + getEntityTypeDisplayNameBytes(); /** - * - * *
      * Optional. Indicates whether the parameter is required. That is,
      * whether the intent cannot be completed without collecting the parameter
@@ -3984,98 +3542,81 @@ public interface ParameterOrBuilder
      * 
* * bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mandatory. */ boolean getMandatory(); /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the prompts. */ - java.util.List getPromptsList(); + java.util.List + getPromptsList(); /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of prompts. */ int getPromptsCount(); /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The prompts at the given index. */ java.lang.String getPrompts(int index); /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the prompts at the given index. */ - com.google.protobuf.ByteString getPromptsBytes(int index); + com.google.protobuf.ByteString + getPromptsBytes(int index); /** - * - * *
      * Optional. Indicates whether the parameter represents a list of values.
      * 
* * bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isList. */ boolean getIsList(); } /** - * - * *
    * Represents intent parameters.
    * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Parameter} */ - public static final class Parameter extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Parameter) ParameterOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Parameter.newBuilder() to construct. private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Parameter() { name_ = ""; displayName_ = ""; @@ -4087,15 +3628,16 @@ private Parameter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Parameter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Parameter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4115,74 +3657,69 @@ private Parameter( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + value_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - defaultValue_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + defaultValue_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - entityTypeDisplayName_ = s; - break; - } - case 48: - { - mandatory_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - prompts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - prompts_.add(s); - break; - } - case 64: - { - isList_ = input.readBool(); - break; + entityTypeDisplayName_ = s; + break; + } + case 48: { + + mandatory_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + prompts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + prompts_.add(s); + break; + } + case 64: { + + isList_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { prompts_ = prompts_.getUnmodifiableView(); @@ -4191,33 +3728,27 @@ private Parameter( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Parameter_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Parameter.class, - com.google.cloud.dialogflow.v2.Intent.Parameter.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Parameter.class, com.google.cloud.dialogflow.v2.Intent.Parameter.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * The unique identifier of this parameter.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -4226,29 +3757,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * The unique identifier of this parameter.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4259,14 +3790,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
      * Required. The name of the parameter.
      * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -4275,29 +3803,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
      * Required. The name of the parameter.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -4308,8 +3836,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object value_; /** - * - * *
      * Optional. The definition of the parameter value. It can be:
      * - a constant string,
@@ -4320,7 +3846,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ @java.lang.Override @@ -4329,15 +3854,14 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Optional. The definition of the parameter value. It can be:
      * - a constant string,
@@ -4348,15 +3872,16 @@ public java.lang.String getValue() {
      * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -4367,8 +3892,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; private volatile java.lang.Object defaultValue_; /** - * - * *
      * Optional. The default value to use when the `value` yields an empty
      * result.
@@ -4377,7 +3900,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The defaultValue. */ @java.lang.Override @@ -4386,15 +3908,14 @@ public java.lang.String getDefaultValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValue_ = s; return s; } } /** - * - * *
      * Optional. The default value to use when the `value` yields an empty
      * result.
@@ -4403,15 +3924,16 @@ public java.lang.String getDefaultValue() {
      * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for defaultValue. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultValueBytes() { + public com.google.protobuf.ByteString + getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultValue_ = b; return b; } else { @@ -4422,8 +3944,6 @@ public com.google.protobuf.ByteString getDefaultValueBytes() { public static final int ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object entityTypeDisplayName_; /** - * - * *
      * Optional. The name of the entity type, prefixed with `@`, that
      * describes values of the parameter. If the parameter is
@@ -4431,7 +3951,6 @@ public com.google.protobuf.ByteString getDefaultValueBytes() {
      * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The entityTypeDisplayName. */ @java.lang.Override @@ -4440,15 +3959,14 @@ public java.lang.String getEntityTypeDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityTypeDisplayName_ = s; return s; } } /** - * - * *
      * Optional. The name of the entity type, prefixed with `@`, that
      * describes values of the parameter. If the parameter is
@@ -4456,15 +3974,16 @@ public java.lang.String getEntityTypeDisplayName() {
      * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for entityTypeDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() { + public com.google.protobuf.ByteString + getEntityTypeDisplayNameBytes() { java.lang.Object ref = entityTypeDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityTypeDisplayName_ = b; return b; } else { @@ -4475,8 +3994,6 @@ public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() { public static final int MANDATORY_FIELD_NUMBER = 6; private boolean mandatory_; /** - * - * *
      * Optional. Indicates whether the parameter is required. That is,
      * whether the intent cannot be completed without collecting the parameter
@@ -4484,7 +4001,6 @@ public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() {
      * 
* * bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mandatory. */ @java.lang.Override @@ -4495,45 +4011,37 @@ public boolean getMandatory() { public static final int PROMPTS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList prompts_; /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the prompts. */ - public com.google.protobuf.ProtocolStringList getPromptsList() { + public com.google.protobuf.ProtocolStringList + getPromptsList() { return prompts_; } /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of prompts. */ public int getPromptsCount() { return prompts_.size(); } /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The prompts at the given index. */ @@ -4541,33 +4049,28 @@ public java.lang.String getPrompts(int index) { return prompts_.get(index); } /** - * - * *
      * Optional. The collection of prompts that the agent can present to the
      * user in order to collect a value for the parameter.
      * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the prompts at the given index. */ - public com.google.protobuf.ByteString getPromptsBytes(int index) { + public com.google.protobuf.ByteString + getPromptsBytes(int index) { return prompts_.getByteString(index); } public static final int IS_LIST_FIELD_NUMBER = 8; private boolean isList_; /** - * - * *
      * Optional. Indicates whether the parameter represents a list of values.
      * 
* * bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isList. */ @java.lang.Override @@ -4576,7 +4079,6 @@ public boolean getIsList() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4588,7 +4090,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4638,7 +4141,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, entityTypeDisplayName_); } if (mandatory_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, mandatory_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, mandatory_); } { int dataSize = 0; @@ -4649,7 +4153,8 @@ public int getSerializedSize() { size += 1 * getPromptsList().size(); } if (isList_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, isList_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, isList_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4659,22 +4164,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Parameter)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Intent.Parameter other = - (com.google.cloud.dialogflow.v2.Intent.Parameter) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getValue().equals(other.getValue())) return false; - if (!getDefaultValue().equals(other.getDefaultValue())) return false; - if (!getEntityTypeDisplayName().equals(other.getEntityTypeDisplayName())) return false; - if (getMandatory() != other.getMandatory()) return false; - if (!getPromptsList().equals(other.getPromptsList())) return false; - if (getIsList() != other.getIsList()) return false; + com.google.cloud.dialogflow.v2.Intent.Parameter other = (com.google.cloud.dialogflow.v2.Intent.Parameter) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!getDefaultValue() + .equals(other.getDefaultValue())) return false; + if (!getEntityTypeDisplayName() + .equals(other.getEntityTypeDisplayName())) return false; + if (getMandatory() + != other.getMandatory()) return false; + if (!getPromptsList() + .equals(other.getPromptsList())) return false; + if (getIsList() + != other.getIsList()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4697,106 +4209,102 @@ public int hashCode() { hash = (37 * hash) + ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getEntityTypeDisplayName().hashCode(); hash = (37 * hash) + MANDATORY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMandatory()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMandatory()); if (getPromptsCount() > 0) { hash = (37 * hash) + PROMPTS_FIELD_NUMBER; hash = (53 * hash) + getPromptsList().hashCode(); } hash = (37 * hash) + IS_LIST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsList()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsList()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Parameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.dialogflow.v2.Intent.Parameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4806,32 +4314,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents intent parameters.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Parameter} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Intent.Parameter) com.google.cloud.dialogflow.v2.Intent.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Parameter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Parameter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Parameter_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Parameter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Parameter.class, - com.google.cloud.dialogflow.v2.Intent.Parameter.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Parameter.class, com.google.cloud.dialogflow.v2.Intent.Parameter.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Intent.Parameter.newBuilder() @@ -4839,15 +4342,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4871,9 +4375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Parameter_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Parameter_descriptor; } @java.lang.Override @@ -4892,8 +4396,7 @@ public com.google.cloud.dialogflow.v2.Intent.Parameter build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.Parameter buildPartial() { - com.google.cloud.dialogflow.v2.Intent.Parameter result = - new com.google.cloud.dialogflow.v2.Intent.Parameter(this); + com.google.cloud.dialogflow.v2.Intent.Parameter result = new com.google.cloud.dialogflow.v2.Intent.Parameter(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -4915,41 +4418,38 @@ public com.google.cloud.dialogflow.v2.Intent.Parameter buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Intent.Parameter) { - return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Parameter) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Parameter)other); } else { super.mergeFrom(other); return this; @@ -4957,8 +4457,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Parameter other) { - if (other == com.google.cloud.dialogflow.v2.Intent.Parameter.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Intent.Parameter.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -5014,8 +4513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Intent.Parameter) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Intent.Parameter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5024,25 +4522,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * The unique identifier of this parameter.
        * 
* * string name = 1; - * * @return The name. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -5051,21 +4546,20 @@ public java.lang.String getName() { } } /** - * - * *
        * The unique identifier of this parameter.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5073,61 +4567,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * The unique identifier of this parameter.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * The unique identifier of this parameter.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * The unique identifier of this parameter.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -5135,20 +4622,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
        * Required. The name of the parameter.
        * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -5157,21 +4642,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
        * Required. The name of the parameter.
        * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -5179,61 +4663,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
        * Required. The name of the parameter.
        * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
        * Required. The name of the parameter.
        * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
        * Required. The name of the parameter.
        * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -5241,8 +4718,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Optional. The definition of the parameter value. It can be:
        * - a constant string,
@@ -5253,13 +4728,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
        * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -5268,8 +4743,6 @@ public java.lang.String getValue() { } } /** - * - * *
        * Optional. The definition of the parameter value. It can be:
        * - a constant string,
@@ -5280,14 +4753,15 @@ public java.lang.String getValue() {
        * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -5295,8 +4769,6 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Optional. The definition of the parameter value. It can be:
        * - a constant string,
@@ -5307,22 +4779,20 @@ public com.google.protobuf.ByteString getValueBytes() {
        * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The definition of the parameter value. It can be:
        * - a constant string,
@@ -5333,18 +4803,15 @@ public Builder setValue(java.lang.String value) {
        * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Optional. The definition of the parameter value. It can be:
        * - a constant string,
@@ -5355,16 +4822,16 @@ public Builder clearValue() {
        * 
* * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; @@ -5372,8 +4839,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { private java.lang.Object defaultValue_ = ""; /** - * - * *
        * Optional. The default value to use when the `value` yields an empty
        * result.
@@ -5382,13 +4847,13 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The defaultValue. */ public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValue_ = s; return s; @@ -5397,8 +4862,6 @@ public java.lang.String getDefaultValue() { } } /** - * - * *
        * Optional. The default value to use when the `value` yields an empty
        * result.
@@ -5407,14 +4870,15 @@ public java.lang.String getDefaultValue() {
        * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for defaultValue. */ - public com.google.protobuf.ByteString getDefaultValueBytes() { + public com.google.protobuf.ByteString + getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultValue_ = b; return b; } else { @@ -5422,8 +4886,6 @@ public com.google.protobuf.ByteString getDefaultValueBytes() { } } /** - * - * *
        * Optional. The default value to use when the `value` yields an empty
        * result.
@@ -5432,22 +4894,20 @@ public com.google.protobuf.ByteString getDefaultValueBytes() {
        * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The defaultValue to set. * @return This builder for chaining. */ - public Builder setDefaultValue(java.lang.String value) { + public Builder setDefaultValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + defaultValue_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The default value to use when the `value` yields an empty
        * result.
@@ -5456,18 +4916,15 @@ public Builder setDefaultValue(java.lang.String value) {
        * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDefaultValue() { - + defaultValue_ = getDefaultInstance().getDefaultValue(); onChanged(); return this; } /** - * - * *
        * Optional. The default value to use when the `value` yields an empty
        * result.
@@ -5476,16 +4933,16 @@ public Builder clearDefaultValue() {
        * 
* * string default_value = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for defaultValue to set. * @return This builder for chaining. */ - public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + public Builder setDefaultValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultValue_ = value; onChanged(); return this; @@ -5493,8 +4950,6 @@ public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityTypeDisplayName_ = ""; /** - * - * *
        * Optional. The name of the entity type, prefixed with `@`, that
        * describes values of the parameter. If the parameter is
@@ -5502,13 +4957,13 @@ public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) {
        * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The entityTypeDisplayName. */ public java.lang.String getEntityTypeDisplayName() { java.lang.Object ref = entityTypeDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityTypeDisplayName_ = s; return s; @@ -5517,8 +4972,6 @@ public java.lang.String getEntityTypeDisplayName() { } } /** - * - * *
        * Optional. The name of the entity type, prefixed with `@`, that
        * describes values of the parameter. If the parameter is
@@ -5526,14 +4979,15 @@ public java.lang.String getEntityTypeDisplayName() {
        * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for entityTypeDisplayName. */ - public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() { + public com.google.protobuf.ByteString + getEntityTypeDisplayNameBytes() { java.lang.Object ref = entityTypeDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityTypeDisplayName_ = b; return b; } else { @@ -5541,8 +4995,6 @@ public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() { } } /** - * - * *
        * Optional. The name of the entity type, prefixed with `@`, that
        * describes values of the parameter. If the parameter is
@@ -5550,22 +5002,20 @@ public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes() {
        * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The entityTypeDisplayName to set. * @return This builder for chaining. */ - public Builder setEntityTypeDisplayName(java.lang.String value) { + public Builder setEntityTypeDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + entityTypeDisplayName_ = value; onChanged(); return this; } /** - * - * *
        * Optional. The name of the entity type, prefixed with `@`, that
        * describes values of the parameter. If the parameter is
@@ -5573,18 +5023,15 @@ public Builder setEntityTypeDisplayName(java.lang.String value) {
        * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEntityTypeDisplayName() { - + entityTypeDisplayName_ = getDefaultInstance().getEntityTypeDisplayName(); onChanged(); return this; } /** - * - * *
        * Optional. The name of the entity type, prefixed with `@`, that
        * describes values of the parameter. If the parameter is
@@ -5592,25 +5039,23 @@ public Builder clearEntityTypeDisplayName() {
        * 
* * string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for entityTypeDisplayName to set. * @return This builder for chaining. */ - public Builder setEntityTypeDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setEntityTypeDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityTypeDisplayName_ = value; onChanged(); return this; } - private boolean mandatory_; + private boolean mandatory_ ; /** - * - * *
        * Optional. Indicates whether the parameter is required. That is,
        * whether the intent cannot be completed without collecting the parameter
@@ -5618,7 +5063,6 @@ public Builder setEntityTypeDisplayNameBytes(com.google.protobuf.ByteString valu
        * 
* * bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mandatory. */ @java.lang.Override @@ -5626,8 +5070,6 @@ public boolean getMandatory() { return mandatory_; } /** - * - * *
        * Optional. Indicates whether the parameter is required. That is,
        * whether the intent cannot be completed without collecting the parameter
@@ -5635,19 +5077,16 @@ public boolean getMandatory() {
        * 
* * bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mandatory to set. * @return This builder for chaining. */ public Builder setMandatory(boolean value) { - + mandatory_ = value; onChanged(); return this; } /** - * - * *
        * Optional. Indicates whether the parameter is required. That is,
        * whether the intent cannot be completed without collecting the parameter
@@ -5655,65 +5094,54 @@ public Builder setMandatory(boolean value) {
        * 
* * bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMandatory() { - + mandatory_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList prompts_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList prompts_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePromptsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { prompts_ = new com.google.protobuf.LazyStringArrayList(prompts_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the prompts. */ - public com.google.protobuf.ProtocolStringList getPromptsList() { + public com.google.protobuf.ProtocolStringList + getPromptsList() { return prompts_.getUnmodifiableView(); } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of prompts. */ public int getPromptsCount() { return prompts_.size(); } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The prompts at the given index. */ @@ -5721,95 +5149,85 @@ public java.lang.String getPrompts(int index) { return prompts_.get(index); } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the prompts at the given index. */ - public com.google.protobuf.ByteString getPromptsBytes(int index) { + public com.google.protobuf.ByteString + getPromptsBytes(int index) { return prompts_.getByteString(index); } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The prompts to set. * @return This builder for chaining. */ - public Builder setPrompts(int index, java.lang.String value) { + public Builder setPrompts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePromptsIsMutable(); + throw new NullPointerException(); + } + ensurePromptsIsMutable(); prompts_.set(index, value); onChanged(); return this; } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The prompts to add. * @return This builder for chaining. */ - public Builder addPrompts(java.lang.String value) { + public Builder addPrompts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePromptsIsMutable(); + throw new NullPointerException(); + } + ensurePromptsIsMutable(); prompts_.add(value); onChanged(); return this; } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The prompts to add. * @return This builder for chaining. */ - public Builder addAllPrompts(java.lang.Iterable values) { + public Builder addAllPrompts( + java.lang.Iterable values) { ensurePromptsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prompts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prompts_); onChanged(); return this; } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrompts() { @@ -5819,39 +5237,34 @@ public Builder clearPrompts() { return this; } /** - * - * *
        * Optional. The collection of prompts that the agent can present to the
        * user in order to collect a value for the parameter.
        * 
* * repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the prompts to add. * @return This builder for chaining. */ - public Builder addPromptsBytes(com.google.protobuf.ByteString value) { + public Builder addPromptsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePromptsIsMutable(); prompts_.add(value); onChanged(); return this; } - private boolean isList_; + private boolean isList_ ; /** - * - * *
        * Optional. Indicates whether the parameter represents a list of values.
        * 
* * bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isList. */ @java.lang.Override @@ -5859,41 +5272,34 @@ public boolean getIsList() { return isList_; } /** - * - * *
        * Optional. Indicates whether the parameter represents a list of values.
        * 
* * bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The isList to set. * @return This builder for chaining. */ public Builder setIsList(boolean value) { - + isList_ = value; onChanged(); return this; } /** - * - * *
        * Optional. Indicates whether the parameter represents a list of values.
        * 
* * bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIsList() { - + isList_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5906,12 +5312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Parameter) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Parameter) private static final com.google.cloud.dialogflow.v2.Intent.Parameter DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Parameter(); } @@ -5920,16 +5326,16 @@ public static com.google.cloud.dialogflow.v2.Intent.Parameter getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Parameter(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Parameter(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5944,40 +5350,32 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Intent.Parameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MessageOrBuilder - extends + public interface MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Message) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The text response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
      * The text response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Text text = 1; - * * @return The text. */ com.google.cloud.dialogflow.v2.Intent.Message.Text getText(); /** - * - * *
      * The text response.
      * 
@@ -5987,32 +5385,24 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder getTextOrBuilder(); /** - * - * *
      * The image response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2; - * * @return Whether the image field is set. */ boolean hasImage(); /** - * - * *
      * The image response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Image image = 2; - * * @return The image. */ com.google.cloud.dialogflow.v2.Intent.Message.Image getImage(); /** - * - * *
      * The image response.
      * 
@@ -6022,32 +5412,24 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder getImageOrBuilder(); /** - * - * *
      * The quick replies response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3; - * * @return Whether the quickReplies field is set. */ boolean hasQuickReplies(); /** - * - * *
      * The quick replies response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.QuickReplies quick_replies = 3; - * * @return The quickReplies. */ com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies getQuickReplies(); /** - * - * *
      * The quick replies response.
      * 
@@ -6057,32 +5439,24 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder getQuickRepliesOrBuilder(); /** - * - * *
      * The card response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4; - * * @return Whether the card field is set. */ boolean hasCard(); /** - * - * *
      * The card response.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Card card = 4; - * * @return The card. */ com.google.cloud.dialogflow.v2.Intent.Message.Card getCard(); /** - * - * *
      * The card response.
      * 
@@ -6092,32 +5466,24 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.CardOrBuilder getCardOrBuilder(); /** - * - * *
      * A custom platform-specific response.
      * 
* * .google.protobuf.Struct payload = 5; - * * @return Whether the payload field is set. */ boolean hasPayload(); /** - * - * *
      * A custom platform-specific response.
      * 
* * .google.protobuf.Struct payload = 5; - * * @return The payload. */ com.google.protobuf.Struct getPayload(); /** - * - * *
      * A custom platform-specific response.
      * 
@@ -6127,68 +5493,51 @@ public interface MessageOrBuilder com.google.protobuf.StructOrBuilder getPayloadOrBuilder(); /** - * - * *
      * The voice and text-only responses for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7; - * * @return Whether the simpleResponses field is set. */ boolean hasSimpleResponses(); /** - * - * *
      * The voice and text-only responses for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7; - * * @return The simpleResponses. */ com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses getSimpleResponses(); /** - * - * *
      * The voice and text-only responses for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.SimpleResponses simple_responses = 7; */ - com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder - getSimpleResponsesOrBuilder(); + com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponsesOrBuilder getSimpleResponsesOrBuilder(); /** - * - * *
      * The basic card response for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8; - * * @return Whether the basicCard field is set. */ boolean hasBasicCard(); /** - * - * *
      * The basic card response for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.BasicCard basic_card = 8; - * * @return The basicCard. */ com.google.cloud.dialogflow.v2.Intent.Message.BasicCard getBasicCard(); /** - * - * *
      * The basic card response for Actions on Google.
      * 
@@ -6198,32 +5547,24 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.BasicCardOrBuilder getBasicCardOrBuilder(); /** - * - * *
      * The suggestion chips for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9; - * * @return Whether the suggestions field is set. */ boolean hasSuggestions(); /** - * - * *
      * The suggestion chips for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.Suggestions suggestions = 9; - * * @return The suggestions. */ com.google.cloud.dialogflow.v2.Intent.Message.Suggestions getSuggestions(); /** - * - * *
      * The suggestion chips for Actions on Google.
      * 
@@ -6233,71 +5574,51 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.SuggestionsOrBuilder getSuggestionsOrBuilder(); /** - * - * *
      * The link out suggestion chip for Actions on Google.
      * 
* - * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; - * - * + * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; * @return Whether the linkOutSuggestion field is set. */ boolean hasLinkOutSuggestion(); /** - * - * *
      * The link out suggestion chip for Actions on Google.
      * 
* - * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; - * - * + * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; * @return The linkOutSuggestion. */ com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion getLinkOutSuggestion(); /** - * - * *
      * The link out suggestion chip for Actions on Google.
      * 
* - * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; - * + * .google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion link_out_suggestion = 10; */ - com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder - getLinkOutSuggestionOrBuilder(); + com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestionOrBuilder getLinkOutSuggestionOrBuilder(); /** - * - * *
      * The list card response for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11; - * * @return Whether the listSelect field is set. */ boolean hasListSelect(); /** - * - * *
      * The list card response for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.ListSelect list_select = 11; - * * @return The listSelect. */ com.google.cloud.dialogflow.v2.Intent.Message.ListSelect getListSelect(); /** - * - * *
      * The list card response for Actions on Google.
      * 
@@ -6307,110 +5628,78 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.ListSelectOrBuilder getListSelectOrBuilder(); /** - * - * *
      * The carousel card response for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12; - * * @return Whether the carouselSelect field is set. */ boolean hasCarouselSelect(); /** - * - * *
      * The carousel card response for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12; - * * @return The carouselSelect. */ com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect getCarouselSelect(); /** - * - * *
      * The carousel card response for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.CarouselSelect carousel_select = 12; */ - com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder - getCarouselSelectOrBuilder(); + com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelectOrBuilder getCarouselSelectOrBuilder(); /** - * - * *
      * Browse carousel card for Actions on Google.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; - * - * + * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; * @return Whether the browseCarouselCard field is set. */ boolean hasBrowseCarouselCard(); /** - * - * *
      * Browse carousel card for Actions on Google.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; - * - * + * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; * @return The browseCarouselCard. */ com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard getBrowseCarouselCard(); /** - * - * *
      * Browse carousel card for Actions on Google.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; - * + * .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard browse_carousel_card = 22; */ - com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder - getBrowseCarouselCardOrBuilder(); + com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCardOrBuilder getBrowseCarouselCardOrBuilder(); /** - * - * *
      * Table card for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23; - * * @return Whether the tableCard field is set. */ boolean hasTableCard(); /** - * - * *
      * Table card for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.TableCard table_card = 23; - * * @return The tableCard. */ com.google.cloud.dialogflow.v2.Intent.Message.TableCard getTableCard(); /** - * - * *
      * Table card for Actions on Google.
      * 
@@ -6420,32 +5709,24 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.TableCardOrBuilder getTableCardOrBuilder(); /** - * - * *
      * The media content card for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24; - * * @return Whether the mediaContent field is set. */ boolean hasMediaContent(); /** - * - * *
      * The media content card for Actions on Google.
      * 
* * .google.cloud.dialogflow.v2.Intent.Message.MediaContent media_content = 24; - * * @return The mediaContent. */ com.google.cloud.dialogflow.v2.Intent.Message.MediaContent getMediaContent(); /** - * - * *
      * The media content card for Actions on Google.
      * 
@@ -6455,30 +5736,20 @@ public interface MessageOrBuilder com.google.cloud.dialogflow.v2.Intent.Message.MediaContentOrBuilder getMediaContentOrBuilder(); /** - * - * *
      * Optional. The platform that this message is intended for.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for platform. */ int getPlatformValue(); /** - * - * *
      * Optional. The platform that this message is intended for.
      * 
* - * - * .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.dialogflow.v2.Intent.Message.Platform platform = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The platform. */ com.google.cloud.dialogflow.v2.Intent.Message.Platform getPlatform(); @@ -6486,8 +5757,6 @@ public interface MessageOrBuilder public com.google.cloud.dialogflow.v2.Intent.Message.MessageCase getMessageCase(); } /** - * - * *
    * A rich response message.
    * Corresponds to the intent `Response` field in the Dialogflow console.
@@ -6498,31 +5767,31 @@ public interface MessageOrBuilder
    *
    * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message}
    */
-  public static final class Message extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Message extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message)
       MessageOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Message.newBuilder() to construct.
     private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Message() {
       platform_ = 0;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Message();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Message(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -6541,328 +5810,241 @@ private Message(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder subBuilder = null;
-                if (messageCase_ == 1) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.Text) message_).toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.Text.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.Text) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 1;
-                break;
+            case 10: {
+              com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder subBuilder = null;
+              if (messageCase_ == 1) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.Text) message_).toBuilder();
               }
-            case 18:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder subBuilder = null;
-                if (messageCase_ == 2) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.Image) message_).toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.Image.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.Image) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 2;
-                break;
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.Text.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Text) message_);
+                message_ = subBuilder.buildPartial();
               }
-            case 26:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder subBuilder =
-                    null;
-                if (messageCase_ == 3) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 3;
-                break;
+              messageCase_ = 1;
+              break;
+            }
+            case 18: {
+              com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder subBuilder = null;
+              if (messageCase_ == 2) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.Image) message_).toBuilder();
               }
-            case 34:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder subBuilder = null;
-                if (messageCase_ == 4) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.Card) message_).toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.Card.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.Card) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 4;
-                break;
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.Image.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Image) message_);
+                message_ = subBuilder.buildPartial();
               }
-            case 42:
-              {
-                com.google.protobuf.Struct.Builder subBuilder = null;
-                if (messageCase_ == 5) {
-                  subBuilder = ((com.google.protobuf.Struct) message_).toBuilder();
-                }
-                message_ =
-                    input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom((com.google.protobuf.Struct) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 5;
-                break;
+              messageCase_ = 2;
+              break;
+            }
+            case 26: {
+              com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder subBuilder = null;
+              if (messageCase_ == 3) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_).toBuilder();
               }
-            case 48:
-              {
-                int rawValue = input.readEnum();
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) message_);
+                message_ = subBuilder.buildPartial();
+              }
+              messageCase_ = 3;
+              break;
+            }
+            case 34: {
+              com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder subBuilder = null;
+              if (messageCase_ == 4) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.Card) message_).toBuilder();
+              }
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.Card.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Card) message_);
+                message_ = subBuilder.buildPartial();
+              }
+              messageCase_ = 4;
+              break;
+            }
+            case 42: {
+              com.google.protobuf.Struct.Builder subBuilder = null;
+              if (messageCase_ == 5) {
+                subBuilder = ((com.google.protobuf.Struct) message_).toBuilder();
+              }
+              message_ =
+                  input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.protobuf.Struct) message_);
+                message_ = subBuilder.buildPartial();
+              }
+              messageCase_ = 5;
+              break;
+            }
+            case 48: {
+              int rawValue = input.readEnum();
 
-                platform_ = rawValue;
-                break;
+              platform_ = rawValue;
+              break;
+            }
+            case 58: {
+              com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder subBuilder = null;
+              if (messageCase_ == 7) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_).toBuilder();
               }
-            case 58:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.Builder subBuilder =
-                    null;
-                if (messageCase_ == 7) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 7;
-                break;
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.SimpleResponses) message_);
+                message_ = subBuilder.buildPartial();
               }
-            case 66:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder subBuilder = null;
-                if (messageCase_ == 8) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 8;
-                break;
+              messageCase_ = 7;
+              break;
+            }
+            case 66: {
+              com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Builder subBuilder = null;
+              if (messageCase_ == 8) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_).toBuilder();
               }
-            case 74:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder subBuilder = null;
-                if (messageCase_ == 9) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 9;
-                break;
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.BasicCard.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.BasicCard) message_);
+                message_ = subBuilder.buildPartial();
               }
-            case 82:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder subBuilder =
-                    null;
-                if (messageCase_ == 10) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 10;
-                break;
+              messageCase_ = 8;
+              break;
+            }
+            case 74: {
+              com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.Builder subBuilder = null;
+              if (messageCase_ == 9) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_).toBuilder();
               }
-            case 90:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder subBuilder = null;
-                if (messageCase_ == 11) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 11;
-                break;
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.Suggestions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Suggestions) message_);
+                message_ = subBuilder.buildPartial();
               }
-            case 98:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder subBuilder =
-                    null;
-                if (messageCase_ == 12) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 12;
-                break;
+              messageCase_ = 9;
+              break;
+            }
+            case 82: {
+              com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.Builder subBuilder = null;
+              if (messageCase_ == 10) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_).toBuilder();
               }
-            case 178:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder
-                    subBuilder = null;
-                if (messageCase_ == 22) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 22;
-                break;
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion) message_);
+                message_ = subBuilder.buildPartial();
               }
-            case 186:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder subBuilder = null;
-                if (messageCase_ == 23) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.TableCard.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 23;
-                break;
+              messageCase_ = 10;
+              break;
+            }
+            case 90: {
+              com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Builder subBuilder = null;
+              if (messageCase_ == 11) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_).toBuilder();
               }
-            case 194:
-              {
-                com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder subBuilder =
-                    null;
-                if (messageCase_ == 24) {
-                  subBuilder =
-                      ((com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_)
-                          .toBuilder();
-                }
-                message_ =
-                    input.readMessage(
-                        com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_);
-                  message_ = subBuilder.buildPartial();
-                }
-                messageCase_ = 24;
-                break;
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.ListSelect.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.ListSelect) message_);
+                message_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              messageCase_ = 11;
+              break;
+            }
+            case 98: {
+              com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Builder subBuilder = null;
+              if (messageCase_ == 12) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_).toBuilder();
+              }
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.CarouselSelect) message_);
+                message_ = subBuilder.buildPartial();
               }
+              messageCase_ = 12;
+              break;
+            }
+            case 178: {
+              com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.Builder subBuilder = null;
+              if (messageCase_ == 22) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_).toBuilder();
+              }
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard) message_);
+                message_ = subBuilder.buildPartial();
+              }
+              messageCase_ = 22;
+              break;
+            }
+            case 186: {
+              com.google.cloud.dialogflow.v2.Intent.Message.TableCard.Builder subBuilder = null;
+              if (messageCase_ == 23) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_).toBuilder();
+              }
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.TableCard.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.TableCard) message_);
+                message_ = subBuilder.buildPartial();
+              }
+              messageCase_ = 23;
+              break;
+            }
+            case 194: {
+              com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.Builder subBuilder = null;
+              if (messageCase_ == 24) {
+                subBuilder = ((com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_).toBuilder();
+              }
+              message_ =
+                  input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.MediaContent) message_);
+                message_ = subBuilder.buildPartial();
+              }
+              messageCase_ = 24;
+              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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.dialogflow.v2.IntentProto
-          .internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.dialogflow.v2.IntentProto
-          .internal_static_google_cloud_dialogflow_v2_Intent_Message_fieldAccessorTable
+      return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.dialogflow.v2.Intent.Message.class,
-              com.google.cloud.dialogflow.v2.Intent.Message.Builder.class);
+              com.google.cloud.dialogflow.v2.Intent.Message.class, com.google.cloud.dialogflow.v2.Intent.Message.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * The rich response message integration platform. See
      * [Integrations](https://cloud.google.com/dialogflow/docs/integrations).
@@ -6870,10 +6052,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.dialogflow.v2.Intent.Message.Platform}
      */
-    public enum Platform implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Platform
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Default platform.
        * 
@@ -6882,8 +6063,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ PLATFORM_UNSPECIFIED(0), /** - * - * *
        * Facebook.
        * 
@@ -6892,8 +6071,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ FACEBOOK(1), /** - * - * *
        * Slack.
        * 
@@ -6902,8 +6079,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ SLACK(2), /** - * - * *
        * Telegram.
        * 
@@ -6912,8 +6087,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ TELEGRAM(3), /** - * - * *
        * Kik.
        * 
@@ -6922,8 +6095,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ KIK(4), /** - * - * *
        * Skype.
        * 
@@ -6932,8 +6103,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ SKYPE(5), /** - * - * *
        * Line.
        * 
@@ -6942,8 +6111,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ LINE(6), /** - * - * *
        * Viber.
        * 
@@ -6952,8 +6119,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ VIBER(7), /** - * - * *
        * Google Assistant
        * See [Dialogflow webhook
@@ -6964,8 +6129,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum {
        */
       ACTIONS_ON_GOOGLE(8),
       /**
-       *
-       *
        * 
        * Google Hangouts.
        * 
@@ -6977,8 +6140,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Default platform.
        * 
@@ -6987,8 +6148,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PLATFORM_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Facebook.
        * 
@@ -6997,8 +6156,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FACEBOOK_VALUE = 1; /** - * - * *
        * Slack.
        * 
@@ -7007,8 +6164,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SLACK_VALUE = 2; /** - * - * *
        * Telegram.
        * 
@@ -7017,8 +6172,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TELEGRAM_VALUE = 3; /** - * - * *
        * Kik.
        * 
@@ -7027,8 +6180,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KIK_VALUE = 4; /** - * - * *
        * Skype.
        * 
@@ -7037,8 +6188,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SKYPE_VALUE = 5; /** - * - * *
        * Line.
        * 
@@ -7047,8 +6196,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINE_VALUE = 6; /** - * - * *
        * Viber.
        * 
@@ -7057,8 +6204,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIBER_VALUE = 7; /** - * - * *
        * Google Assistant
        * See [Dialogflow webhook
@@ -7069,8 +6214,6 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ACTIONS_ON_GOOGLE_VALUE = 8;
       /**
-       *
-       *
        * 
        * Google Hangouts.
        * 
@@ -7079,6 +6222,7 @@ public enum Platform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_HANGOUTS_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -7103,63 +6247,56 @@ public static Platform valueOf(int value) { */ public static Platform forNumber(int value) { switch (value) { - case 0: - return PLATFORM_UNSPECIFIED; - case 1: - return FACEBOOK; - case 2: - return SLACK; - case 3: - return TELEGRAM; - case 4: - return KIK; - case 5: - return SKYPE; - case 6: - return LINE; - case 7: - return VIBER; - case 8: - return ACTIONS_ON_GOOGLE; - case 11: - return GOOGLE_HANGOUTS; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return PLATFORM_UNSPECIFIED; + case 1: return FACEBOOK; + case 2: return SLACK; + case 3: return TELEGRAM; + case 4: return KIK; + case 5: return SKYPE; + case 6: return LINE; + case 7: return VIBER; + case 8: return ACTIONS_ON_GOOGLE; + case 11: return GOOGLE_HANGOUTS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Platform> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Platform findValueByNumber(int number) { + return Platform.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Platform findValueByNumber(int number) { - return Platform.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.dialogflow.v2.Intent.Message.getDescriptor().getEnumTypes().get(0); } private static final Platform[] VALUES = values(); - public static Platform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Platform valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -7176,96 +6313,83 @@ private Platform(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Intent.Message.Platform) } - public interface TextOrBuilder - extends + public interface TextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Message.Text) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the text. */ - java.util.List getTextList(); + java.util.List + getTextList(); /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of text. */ int getTextCount(); /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The text at the given index. */ java.lang.String getText(int index); /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - com.google.protobuf.ByteString getTextBytes(int index); + com.google.protobuf.ByteString + getTextBytes(int index); } /** - * - * *
      * The text response message.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.Text} */ - public static final class Text extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Text extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.Text) TextOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Text.newBuilder() to construct. private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Text() { text_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Text(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Text( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7285,30 +6409,29 @@ private Text( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - text_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - text_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + text_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + text_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { text_ = text_.getUnmodifiableView(); @@ -7317,61 +6440,50 @@ private Text( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.Text.class, - com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.Text.class, com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList text_; /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the text. */ - public com.google.protobuf.ProtocolStringList getTextList() { + public com.google.protobuf.ProtocolStringList + getTextList() { return text_; } /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of text. */ public int getTextCount() { return text_.size(); } /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The text at the given index. */ @@ -7379,23 +6491,20 @@ public java.lang.String getText(int index) { return text_.get(index); } /** - * - * *
        * Optional. The collection of the agent's responses.
        * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - public com.google.protobuf.ByteString getTextBytes(int index) { + public com.google.protobuf.ByteString + getTextBytes(int index) { return text_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7407,7 +6516,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < text_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_.getRaw(i)); } @@ -7436,15 +6546,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.Text)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Intent.Message.Text other = - (com.google.cloud.dialogflow.v2.Intent.Message.Text) obj; + com.google.cloud.dialogflow.v2.Intent.Message.Text other = (com.google.cloud.dialogflow.v2.Intent.Message.Text) obj; - if (!getTextList().equals(other.getTextList())) return false; + if (!getTextList() + .equals(other.getTextList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7466,94 +6576,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Text parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Intent.Message.Text prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Intent.Message.Text prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7563,32 +6666,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * The text response message.
        * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.Text} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Intent.Message.Text) com.google.cloud.dialogflow.v2.Intent.Message.TextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.Text.class, - com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.Text.class, com.google.cloud.dialogflow.v2.Intent.Message.Text.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Intent.Message.Text.newBuilder() @@ -7596,15 +6694,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7614,9 +6713,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Text_descriptor; } @java.lang.Override @@ -7635,8 +6734,7 @@ public com.google.cloud.dialogflow.v2.Intent.Message.Text build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.Message.Text buildPartial() { - com.google.cloud.dialogflow.v2.Intent.Message.Text result = - new com.google.cloud.dialogflow.v2.Intent.Message.Text(this); + com.google.cloud.dialogflow.v2.Intent.Message.Text result = new com.google.cloud.dialogflow.v2.Intent.Message.Text(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { text_ = text_.getUnmodifiableView(); @@ -7651,41 +6749,38 @@ public com.google.cloud.dialogflow.v2.Intent.Message.Text buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Intent.Message.Text) { - return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Text) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Text)other); } else { super.mergeFrom(other); return this; @@ -7693,8 +6788,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Message.Text other) { - if (other == com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Intent.Message.Text.getDefaultInstance()) return this; if (!other.text_.isEmpty()) { if (text_.isEmpty()) { text_ = other.text_; @@ -7724,8 +6818,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Intent.Message.Text) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Intent.Message.Text) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7734,55 +6827,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList text_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList text_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTextIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { text_ = new com.google.protobuf.LazyStringArrayList(text_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the text. */ - public com.google.protobuf.ProtocolStringList getTextList() { + public com.google.protobuf.ProtocolStringList + getTextList() { return text_.getUnmodifiableView(); } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of text. */ public int getTextCount() { return text_.size(); } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The text at the given index. */ @@ -7790,90 +6872,80 @@ public java.lang.String getText(int index) { return text_.get(index); } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the text at the given index. */ - public com.google.protobuf.ByteString getTextBytes(int index) { + public com.google.protobuf.ByteString + getTextBytes(int index) { return text_.getByteString(index); } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(int index, java.lang.String value) { + public Builder setText( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTextIsMutable(); + throw new NullPointerException(); + } + ensureTextIsMutable(); text_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The text to add. * @return This builder for chaining. */ - public Builder addText(java.lang.String value) { + public Builder addText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTextIsMutable(); + throw new NullPointerException(); + } + ensureTextIsMutable(); text_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The text to add. * @return This builder for chaining. */ - public Builder addAllText(java.lang.Iterable values) { + public Builder addAllText( + java.lang.Iterable values) { ensureTextIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, text_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, text_); onChanged(); return this; } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearText() { @@ -7883,28 +6955,25 @@ public Builder clearText() { return this; } /** - * - * *
          * Optional. The collection of the agent's responses.
          * 
* * repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the text to add. * @return This builder for chaining. */ - public Builder addTextBytes(com.google.protobuf.ByteString value) { + public Builder addTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTextIsMutable(); text_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7917,12 +6986,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.Text) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.Text) private static final com.google.cloud.dialogflow.v2.Intent.Message.Text DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.Text(); } @@ -7931,16 +7000,16 @@ public static com.google.cloud.dialogflow.v2.Intent.Message.Text getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Text parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Text(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Text parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Text(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7955,84 +7024,71 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Intent.Message.Text getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ImageOrBuilder - extends + public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Message.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The public URI to an image file.
        * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
        * Optional. The public URI to an image file.
        * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); /** - * - * *
        * Optional. A text description of the image to be used for accessibility,
        * e.g., screen readers.
        * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The accessibilityText. */ java.lang.String getAccessibilityText(); /** - * - * *
        * Optional. A text description of the image to be used for accessibility,
        * e.g., screen readers.
        * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for accessibilityText. */ - com.google.protobuf.ByteString getAccessibilityTextBytes(); + com.google.protobuf.ByteString + getAccessibilityTextBytes(); } /** - * - * *
      * The image response message.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.Image} */ - public static final class Image extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Image extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.Image) ImageOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Image() { imageUri_ = ""; accessibilityText_ = ""; @@ -8040,15 +7096,16 @@ private Image() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8067,66 +7124,58 @@ private Image( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + imageUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - accessibilityText_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + accessibilityText_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.Image.class, - com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.Image.class, com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder.class); } public static final int IMAGE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object imageUri_; /** - * - * *
        * Optional. The public URI to an image file.
        * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageUri. */ @java.lang.Override @@ -8135,29 +7184,29 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
        * Optional. The public URI to an image file.
        * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -8168,15 +7217,12 @@ public com.google.protobuf.ByteString getImageUriBytes() { public static final int ACCESSIBILITY_TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object accessibilityText_; /** - * - * *
        * Optional. A text description of the image to be used for accessibility,
        * e.g., screen readers.
        * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The accessibilityText. */ @java.lang.Override @@ -8185,30 +7231,30 @@ public java.lang.String getAccessibilityText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessibilityText_ = s; return s; } } /** - * - * *
        * Optional. A text description of the image to be used for accessibility,
        * e.g., screen readers.
        * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for accessibilityText. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessibilityTextBytes() { + public com.google.protobuf.ByteString + getAccessibilityTextBytes() { java.lang.Object ref = accessibilityText_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessibilityText_ = b; return b; } else { @@ -8217,7 +7263,6 @@ public com.google.protobuf.ByteString getAccessibilityTextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8229,7 +7274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getImageUriBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageUri_); } @@ -8259,16 +7305,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.Image)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Intent.Message.Image other = - (com.google.cloud.dialogflow.v2.Intent.Message.Image) obj; + com.google.cloud.dialogflow.v2.Intent.Message.Image other = (com.google.cloud.dialogflow.v2.Intent.Message.Image) obj; - if (!getImageUri().equals(other.getImageUri())) return false; - if (!getAccessibilityText().equals(other.getAccessibilityText())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; + if (!getAccessibilityText() + .equals(other.getAccessibilityText())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8290,94 +7337,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Intent.Message.Image prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Intent.Message.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8387,32 +7427,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * The image response message.
        * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.Image} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Intent.Message.Image) com.google.cloud.dialogflow.v2.Intent.Message.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.Image.class, - com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.Image.class, com.google.cloud.dialogflow.v2.Intent.Message.Image.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Intent.Message.Image.newBuilder() @@ -8420,15 +7455,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -8440,9 +7476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Image_descriptor; } @java.lang.Override @@ -8461,8 +7497,7 @@ public com.google.cloud.dialogflow.v2.Intent.Message.Image build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.Message.Image buildPartial() { - com.google.cloud.dialogflow.v2.Intent.Message.Image result = - new com.google.cloud.dialogflow.v2.Intent.Message.Image(this); + com.google.cloud.dialogflow.v2.Intent.Message.Image result = new com.google.cloud.dialogflow.v2.Intent.Message.Image(this); result.imageUri_ = imageUri_; result.accessibilityText_ = accessibilityText_; onBuilt(); @@ -8473,41 +7508,38 @@ public com.google.cloud.dialogflow.v2.Intent.Message.Image buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Intent.Message.Image) { - return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Image) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Image)other); } else { super.mergeFrom(other); return this; @@ -8515,8 +7547,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Message.Image other) { - if (other == com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Intent.Message.Image.getDefaultInstance()) return this; if (!other.getImageUri().isEmpty()) { imageUri_ = other.imageUri_; onChanged(); @@ -8544,8 +7575,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Intent.Message.Image) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Intent.Message.Image) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8557,20 +7587,18 @@ public Builder mergeFrom( private java.lang.Object imageUri_ = ""; /** - * - * *
          * Optional. The public URI to an image file.
          * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -8579,21 +7607,20 @@ public java.lang.String getImageUri() { } } /** - * - * *
          * Optional. The public URI to an image file.
          * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -8601,61 +7628,54 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
          * Optional. The public URI to an image file.
          * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The public URI to an image file.
          * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
          * Optional. The public URI to an image file.
          * 
* * string image_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; @@ -8663,21 +7683,19 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object accessibilityText_ = ""; /** - * - * *
          * Optional. A text description of the image to be used for accessibility,
          * e.g., screen readers.
          * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The accessibilityText. */ public java.lang.String getAccessibilityText() { java.lang.Object ref = accessibilityText_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessibilityText_ = s; return s; @@ -8686,22 +7704,21 @@ public java.lang.String getAccessibilityText() { } } /** - * - * *
          * Optional. A text description of the image to be used for accessibility,
          * e.g., screen readers.
          * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for accessibilityText. */ - public com.google.protobuf.ByteString getAccessibilityTextBytes() { + public com.google.protobuf.ByteString + getAccessibilityTextBytes() { java.lang.Object ref = accessibilityText_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessibilityText_ = b; return b; } else { @@ -8709,69 +7726,61 @@ public com.google.protobuf.ByteString getAccessibilityTextBytes() { } } /** - * - * *
          * Optional. A text description of the image to be used for accessibility,
          * e.g., screen readers.
          * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The accessibilityText to set. * @return This builder for chaining. */ - public Builder setAccessibilityText(java.lang.String value) { + public Builder setAccessibilityText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accessibilityText_ = value; onChanged(); return this; } /** - * - * *
          * Optional. A text description of the image to be used for accessibility,
          * e.g., screen readers.
          * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAccessibilityText() { - + accessibilityText_ = getDefaultInstance().getAccessibilityText(); onChanged(); return this; } /** - * - * *
          * Optional. A text description of the image to be used for accessibility,
          * e.g., screen readers.
          * 
* * string accessibility_text = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for accessibilityText to set. * @return This builder for chaining. */ - public Builder setAccessibilityTextBytes(com.google.protobuf.ByteString value) { + public Builder setAccessibilityTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessibilityText_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8784,12 +7793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.Image) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.Image) private static final com.google.cloud.dialogflow.v2.Intent.Message.Image DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.Image(); } @@ -8798,16 +7807,16 @@ public static com.google.cloud.dialogflow.v2.Intent.Message.Image getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Image(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8822,108 +7831,90 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.dialogflow.v2.Intent.Message.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface QuickRepliesOrBuilder - extends + public interface QuickRepliesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Message.QuickReplies) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The title of the collection of quick replies.
        * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
        * Optional. The title of the collection of quick replies.
        * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the quickReplies. */ - java.util.List getQuickRepliesList(); + java.util.List + getQuickRepliesList(); /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of quickReplies. */ int getQuickRepliesCount(); /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The quickReplies at the given index. */ java.lang.String getQuickReplies(int index); /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the quickReplies at the given index. */ - com.google.protobuf.ByteString getQuickRepliesBytes(int index); + com.google.protobuf.ByteString + getQuickRepliesBytes(int index); } /** - * - * *
      * The quick replies response message.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.QuickReplies} */ - public static final class QuickReplies extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class QuickReplies extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.QuickReplies) QuickRepliesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QuickReplies.newBuilder() to construct. private QuickReplies(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QuickReplies() { title_ = ""; quickReplies_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -8931,15 +7922,16 @@ private QuickReplies() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QuickReplies(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private QuickReplies( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8959,37 +7951,35 @@ private QuickReplies( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - title_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - quickReplies_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - quickReplies_.add(s); - break; + title_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + quickReplies_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + quickReplies_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { quickReplies_ = quickReplies_.getUnmodifiableView(); @@ -8998,33 +7988,27 @@ private QuickReplies( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.class, - com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.class, com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder.class); } public static final int TITLE_FIELD_NUMBER = 1; private volatile java.lang.Object title_; /** - * - * *
        * Optional. The title of the collection of quick replies.
        * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The title. */ @java.lang.Override @@ -9033,29 +8017,29 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** - * - * *
        * Optional. The title of the collection of quick replies.
        * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -9066,42 +8050,34 @@ public com.google.protobuf.ByteString getTitleBytes() { public static final int QUICK_REPLIES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList quickReplies_; /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the quickReplies. */ - public com.google.protobuf.ProtocolStringList getQuickRepliesList() { + public com.google.protobuf.ProtocolStringList + getQuickRepliesList() { return quickReplies_; } /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of quickReplies. */ public int getQuickRepliesCount() { return quickReplies_.size(); } /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The quickReplies at the given index. */ @@ -9109,23 +8085,20 @@ public java.lang.String getQuickReplies(int index) { return quickReplies_.get(index); } /** - * - * *
        * Optional. The collection of quick replies.
        * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the quickReplies at the given index. */ - public com.google.protobuf.ByteString getQuickRepliesBytes(int index) { + public com.google.protobuf.ByteString + getQuickRepliesBytes(int index) { return quickReplies_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9137,7 +8110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getTitleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } @@ -9172,16 +8146,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies other = - (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) obj; + com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies other = (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) obj; - if (!getTitle().equals(other.getTitle())) return false; - if (!getQuickRepliesList().equals(other.getQuickRepliesList())) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getQuickRepliesList() + .equals(other.getQuickRepliesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -9205,94 +8180,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9302,32 +8270,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * The quick replies response message.
        * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.QuickReplies} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Intent.Message.QuickReplies) com.google.cloud.dialogflow.v2.Intent.Message.QuickRepliesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.class, - com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.class, com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.newBuilder() @@ -9335,15 +8298,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -9355,14 +8319,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_QuickReplies_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance(); } @@ -9377,8 +8340,7 @@ public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies buildPartial() { - com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies result = - new com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies(this); + com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies result = new com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies(this); int from_bitField0_ = bitField0_; result.title_ = title_; if (((bitField0_ & 0x00000001) != 0)) { @@ -9394,41 +8356,38 @@ public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) { - return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies)other); } else { super.mergeFrom(other); return this; @@ -9436,9 +8395,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies other) { - if (other - == com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance()) - return this; + if (other == com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies.getDefaultInstance()) return this; if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); @@ -9472,9 +8429,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9483,25 +8438,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object title_ = ""; /** - * - * *
          * Optional. The title of the collection of quick replies.
          * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The title. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -9510,21 +8462,20 @@ public java.lang.String getTitle() { } } /** - * - * *
          * Optional. The title of the collection of quick replies.
          * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for title. */ - public com.google.protobuf.ByteString getTitleBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -9532,112 +8483,95 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
          * Optional. The title of the collection of quick replies.
          * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { + public Builder setTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The title of the collection of quick replies.
          * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** - * - * *
          * Optional. The title of the collection of quick replies.
          * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList quickReplies_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList quickReplies_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureQuickRepliesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { quickReplies_ = new com.google.protobuf.LazyStringArrayList(quickReplies_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the quickReplies. */ - public com.google.protobuf.ProtocolStringList getQuickRepliesList() { + public com.google.protobuf.ProtocolStringList + getQuickRepliesList() { return quickReplies_.getUnmodifiableView(); } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of quickReplies. */ public int getQuickRepliesCount() { return quickReplies_.size(); } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The quickReplies at the given index. */ @@ -9645,90 +8579,80 @@ public java.lang.String getQuickReplies(int index) { return quickReplies_.get(index); } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the quickReplies at the given index. */ - public com.google.protobuf.ByteString getQuickRepliesBytes(int index) { + public com.google.protobuf.ByteString + getQuickRepliesBytes(int index) { return quickReplies_.getByteString(index); } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The quickReplies to set. * @return This builder for chaining. */ - public Builder setQuickReplies(int index, java.lang.String value) { + public Builder setQuickReplies( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQuickRepliesIsMutable(); + throw new NullPointerException(); + } + ensureQuickRepliesIsMutable(); quickReplies_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The quickReplies to add. * @return This builder for chaining. */ - public Builder addQuickReplies(java.lang.String value) { + public Builder addQuickReplies( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureQuickRepliesIsMutable(); + throw new NullPointerException(); + } + ensureQuickRepliesIsMutable(); quickReplies_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The quickReplies to add. * @return This builder for chaining. */ - public Builder addAllQuickReplies(java.lang.Iterable values) { + public Builder addAllQuickReplies( + java.lang.Iterable values) { ensureQuickRepliesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quickReplies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, quickReplies_); onChanged(); return this; } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearQuickReplies() { @@ -9738,28 +8662,25 @@ public Builder clearQuickReplies() { return this; } /** - * - * *
          * Optional. The collection of quick replies.
          * 
* * repeated string quick_replies = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the quickReplies to add. * @return This builder for chaining. */ - public Builder addQuickRepliesBytes(com.google.protobuf.ByteString value) { + public Builder addQuickRepliesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureQuickRepliesIsMutable(); quickReplies_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9772,32 +8693,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.QuickReplies) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.QuickReplies) - private static final com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies(); } - public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuickReplies parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuickReplies(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuickReplies parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuickReplies(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9809,174 +8728,136 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.Intent.Message.QuickReplies getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CardOrBuilder - extends + public interface CardOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Message.Card) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The title of the card.
        * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
        * Optional. The title of the card.
        * 
* * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
        * Optional. The subtitle of the card.
        * 
* * string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The subtitle. */ java.lang.String getSubtitle(); /** - * - * *
        * Optional. The subtitle of the card.
        * 
* * string subtitle = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for subtitle. */ - com.google.protobuf.ByteString getSubtitleBytes(); + com.google.protobuf.ByteString + getSubtitleBytes(); /** - * - * *
        * Optional. The public URI to an image file for the card.
        * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
        * Optional. The public URI to an image file for the card.
        * 
* * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); /** - * - * *
        * Optional. The collection of card buttons.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getButtonsList(); + java.util.List + getButtonsList(); /** - * - * *
        * Optional. The collection of card buttons.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dialogflow.v2.Intent.Message.Card.Button getButtons(int index); /** - * - * *
        * Optional. The collection of card buttons.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getButtonsCount(); /** - * - * *
        * Optional. The collection of card buttons.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getButtonsOrBuilderList(); /** - * - * *
        * Optional. The collection of card buttons.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.dialogflow.v2.Intent.Message.Card.Button buttons = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.dialogflow.v2.Intent.Message.Card.ButtonOrBuilder getButtonsOrBuilder( int index); } /** - * - * *
      * The card response message.
      * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.Card} */ - public static final class Card extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Card extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.Card) CardOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Card.newBuilder() to construct. private Card(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Card() { title_ = ""; subtitle_ = ""; @@ -9986,15 +8867,16 @@ private Card() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Card(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Card( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10014,55 +8896,47 @@ private Card( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - title_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + title_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - subtitle_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + subtitle_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - buttons_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button>(); - mutable_bitField0_ |= 0x00000001; - } - buttons_.add( - input.readMessage( - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.parser(), - extensionRegistry)); - break; + imageUri_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + buttons_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + buttons_.add( + input.readMessage(com.google.cloud.dialogflow.v2.Intent.Message.Card.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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { buttons_ = java.util.Collections.unmodifiableList(buttons_); @@ -10071,98 +8945,81 @@ private Card( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.Card.class, - com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.Card.class, com.google.cloud.dialogflow.v2.Intent.Message.Card.Builder.class); } - public interface ButtonOrBuilder - extends + public interface ButtonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.Intent.Message.Card.Button) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. The text to show on the button.
          * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The text. */ java.lang.String getText(); /** - * - * *
          * Optional. The text to show on the button.
          * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
          * Optional. The text to send back to the Dialogflow API or a URI to
          * open.
          * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The postback. */ java.lang.String getPostback(); /** - * - * *
          * Optional. The text to send back to the Dialogflow API or a URI to
          * open.
          * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for postback. */ - com.google.protobuf.ByteString getPostbackBytes(); + com.google.protobuf.ByteString + getPostbackBytes(); } /** - * - * *
        * Contains information about a button.
        * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.Card.Button} */ - public static final class Button extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Button extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Intent.Message.Card.Button) ButtonOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Button.newBuilder() to construct. private Button(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Button() { text_ = ""; postback_ = ""; @@ -10170,15 +9027,16 @@ private Button() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Button(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Button( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10197,66 +9055,58 @@ private Button( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - text_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + text_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - postback_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + postback_ = 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.class, - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.class, com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private volatile java.lang.Object text_; /** - * - * *
          * Optional. The text to show on the button.
          * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The text. */ @java.lang.Override @@ -10265,29 +9115,29 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** - * - * *
          * Optional. The text to show on the button.
          * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -10298,15 +9148,12 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int POSTBACK_FIELD_NUMBER = 2; private volatile java.lang.Object postback_; /** - * - * *
          * Optional. The text to send back to the Dialogflow API or a URI to
          * open.
          * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The postback. */ @java.lang.Override @@ -10315,30 +9162,30 @@ public java.lang.String getPostback() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postback_ = s; return s; } } /** - * - * *
          * Optional. The text to send back to the Dialogflow API or a URI to
          * open.
          * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for postback. */ @java.lang.Override - public com.google.protobuf.ByteString getPostbackBytes() { + public com.google.protobuf.ByteString + getPostbackBytes() { java.lang.Object ref = postback_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postback_ = b; return b; } else { @@ -10347,7 +9194,6 @@ public com.google.protobuf.ByteString getPostbackBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10360,7 +9206,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!getTextBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } @@ -10390,16 +9236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.dialogflow.v2.Intent.Message.Card.Button)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button other = - (com.google.cloud.dialogflow.v2.Intent.Message.Card.Button) obj; + com.google.cloud.dialogflow.v2.Intent.Message.Card.Button other = (com.google.cloud.dialogflow.v2.Intent.Message.Card.Button) obj; - if (!getText().equals(other.getText())) return false; - if (!getPostback().equals(other.getPostback())) return false; + if (!getText() + .equals(other.getText())) return false; + if (!getPostback() + .equals(other.getPostback())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -10421,95 +9268,87 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button prototype) { + public static Builder newBuilder(com.google.cloud.dialogflow.v2.Intent.Message.Card.Button prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10519,32 +9358,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Contains information about a button.
          * 
* * Protobuf type {@code google.cloud.dialogflow.v2.Intent.Message.Card.Button} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Intent.Message.Card.Button) com.google.cloud.dialogflow.v2.Intent.Message.Card.ButtonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_fieldAccessorTable + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.class, - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.Builder.class); + com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.class, com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.Builder.class); } // Construct using com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.newBuilder() @@ -10552,15 +9386,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -10572,14 +9407,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.IntentProto - .internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.dialogflow.v2.IntentProto.internal_static_google_cloud_dialogflow_v2_Intent_Message_Card_Button_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.Intent.Message.Card.Button - getDefaultInstanceForType() { + public com.google.cloud.dialogflow.v2.Intent.Message.Card.Button getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.getDefaultInstance(); } @@ -10594,8 +9428,7 @@ public com.google.cloud.dialogflow.v2.Intent.Message.Card.Button build() { @java.lang.Override public com.google.cloud.dialogflow.v2.Intent.Message.Card.Button buildPartial() { - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button result = - new com.google.cloud.dialogflow.v2.Intent.Message.Card.Button(this); + com.google.cloud.dialogflow.v2.Intent.Message.Card.Button result = new com.google.cloud.dialogflow.v2.Intent.Message.Card.Button(this); result.text_ = text_; result.postback_ = postback_; onBuilt(); @@ -10606,52 +9439,46 @@ public com.google.cloud.dialogflow.v2.Intent.Message.Card.Button buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2.Intent.Message.Card.Button) { - return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Card.Button) other); + return mergeFrom((com.google.cloud.dialogflow.v2.Intent.Message.Card.Button)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.Intent.Message.Card.Button other) { - if (other - == com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.dialogflow.v2.Intent.Message.Card.Button other) { + if (other == com.google.cloud.dialogflow.v2.Intent.Message.Card.Button.getDefaultInstance()) return this; if (!other.getText().isEmpty()) { text_ = other.text_; onChanged(); @@ -10679,9 +9506,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.dialogflow.v2.Intent.Message.Card.Button) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.dialogflow.v2.Intent.Message.Card.Button) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10693,20 +9518,18 @@ public Builder mergeFrom( private java.lang.Object text_ = ""; /** - * - * *
            * Optional. The text to show on the button.
            * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The text. */ 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; @@ -10715,21 +9538,20 @@ public java.lang.String getText() { } } /** - * - * *
            * Optional. The text to show on the button.
            * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); text_ = b; return b; } else { @@ -10737,61 +9559,54 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
            * Optional. The text to show on the button.
            * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + text_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The text to show on the button.
            * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearText() { - + text_ = getDefaultInstance().getText(); onChanged(); return this; } /** - * - * *
            * Optional. The text to show on the button.
            * 
* * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; onChanged(); return this; @@ -10799,21 +9614,19 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object postback_ = ""; /** - * - * *
            * Optional. The text to send back to the Dialogflow API or a URI to
            * open.
            * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The postback. */ public java.lang.String getPostback() { java.lang.Object ref = postback_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postback_ = s; return s; @@ -10822,22 +9635,21 @@ public java.lang.String getPostback() { } } /** - * - * *
            * Optional. The text to send back to the Dialogflow API or a URI to
            * open.
            * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for postback. */ - public com.google.protobuf.ByteString getPostbackBytes() { + public com.google.protobuf.ByteString + getPostbackBytes() { java.lang.Object ref = postback_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postback_ = b; return b; } else { @@ -10845,69 +9657,61 @@ public com.google.protobuf.ByteString getPostbackBytes() { } } /** - * - * *
            * Optional. The text to send back to the Dialogflow API or a URI to
            * open.
            * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The postback to set. * @return This builder for chaining. */ - public Builder setPostback(java.lang.String value) { + public Builder setPostback( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postback_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The text to send back to the Dialogflow API or a URI to
            * open.
            * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPostback() { - + postback_ = getDefaultInstance().getPostback(); onChanged(); return this; } /** - * - * *
            * Optional. The text to send back to the Dialogflow API or a URI to
            * open.
            * 
* * string postback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for postback to set. * @return This builder for chaining. */ - public Builder setPostbackBytes(com.google.protobuf.ByteString value) { + public Builder setPostbackBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postback_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10920,32 +9724,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Intent.Message.Card.Button) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Intent.Message.Card.Button) - private static final com.google.cloud.dialogflow.v2.Intent.Message.Card.Button - DEFAULT_INSTANCE; - + private static final com.google.cloud.dialogflow.v2.Intent.Message.Card.Button DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Intent.Message.Card.Button(); } - public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button - getDefaultInstance() { + public static com.google.cloud.dialogflow.v2.Intent.Message.Card.Button getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser